Public synchronous entrypoint, required by the abstract base.
(
self,
messages: List[OpenAIMessage],
response_format: Optional[type[BaseModel]] = None,
tools: Optional[List[Dict[str, Any]]] = None,
)
| 165 | return response |
| 166 | |
| 167 | def run( |
| 168 | self, |
| 169 | messages: List[OpenAIMessage], |
| 170 | response_format: Optional[type[BaseModel]] = None, |
| 171 | tools: Optional[List[Dict[str, Any]]] = None, |
| 172 | ) -> Union[ChatCompletion, Stream[ChatCompletionChunk]]: |
| 173 | """ |
| 174 | Public synchronous entrypoint, required by the abstract base. |
| 175 | """ |
| 176 | return self._run(messages, response_format=response_format, tools=tools) |
| 177 | |
| 178 | async def arun( |
| 179 | self, |