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

This reverts commit 27e66ba6dd.
This commit is contained in:
Andreas Köpf 2025-03-01 23:56:42 +01:00 committed by GitHub
parent 1b1c04bb70
commit 16a4ea1193

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: