Skip to content

Commit a42bc19

Browse files
authored
fix: quota exhaused error message for openai (#233)
Fixed the error message from https://github.com/typedef-ai/fenic/pull/231/files to be more accurate
1 parent deef3a6 commit a42bc19

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/fenic/_inference/common_openai/openai_chat_completions_core.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ async def make_single_request(
183183

184184
except RateLimitError as e:
185185
if e.response and e.response.json()["error"]["type"] == "insufficient_quota":
186-
logger.error(f"Insufficient quota for model {self._model_provider.value}:{self._model}: {e}")
186+
logger.error(f"Insufficient quota on {self._model_provider.value} provider: {e}")
187187
return FatalException(e)
188188
return TransientException(e)
189189

0 commit comments

Comments
 (0)