Method
_run_batch
(self, messages: list, delay_batch: bool = False)
Source from the content-addressed store, hash-verified
| 170 | return f"LLM(model={self.model}, api_base={self.api_base})" |
| 171 | |
| 172 | async def _run_batch(self, messages: list, delay_batch: bool = False): |
| 173 | await self.oai_batch.add( |
| 174 | "chat.completions.create", |
| 175 | model=self.model, |
| 176 | messages=messages, |
| 177 | ) |
| 178 | if delay_batch: |
| 179 | return |
| 180 | return await self.oai_batch.run() |
| 181 | |
| 182 | def format_message( |
| 183 | self, |
Tested by
no test coverage detected