Revert "log error message on bad api response (#243)" (#249)

This reverts commit 8e2089b6c0.
This commit is contained in:
Andreas Köpf 2025-03-01 23:56:42 +01:00 committed by GitHub
parent e71d2a96b6
commit a66a7e7965
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -146,9 +146,6 @@ class AsyncModelEvaluator:
params["extra_body"] = {"provider": {"order": [self.config.provider], "allow_fallbacks": False}}
completion = await self.client.chat.completions.create(**params)
if completion.error:
raise Exception(completion.error["message"])
response = completion.choices[0].message.content
if self.verbose: