(self)
| 184 | return client |
| 185 | |
| 186 | def init_async_client(self): |
| 187 | api_key, workspace_id, base_url = self._prepare_client_config() |
| 188 | |
| 189 | client = AsyncOpenAI(api_key=api_key, base_url=base_url) |
| 190 | |
| 191 | # Store workspace_id for later use in requests |
| 192 | if workspace_id: |
| 193 | client._workspace_id = workspace_id |
| 194 | |
| 195 | return client |
| 196 | |
| 197 | def parse_chat_completion( |
| 198 | self, |
no test coverage detected