(response: Any)
| 1267 | return client.chat.completions.create(**kwargs) |
| 1268 | |
| 1269 | def _parse_response(response: Any) -> Optional[Dict[str, Any]]: |
| 1270 | try: |
| 1271 | content = response.choices[0].message.content |
| 1272 | except Exception: |
| 1273 | return None |
| 1274 | return _extract_json_object(content) |
| 1275 | |
| 1276 | try: |
| 1277 | response = _create_completion(max_tokens, use_response_format=True) |
no test coverage detected