log main_model_group when router.acompletion has an unexpected error (#249)

This commit is contained in:
Shuchang Zheng
2024-05-02 11:20:49 -07:00
committed by GitHub
parent b6a85cf3a5
commit a1fa5ee4e0

View File

@@ -99,7 +99,7 @@ class LLMAPIHandlerFactory:
except openai.OpenAIError as e:
raise LLMProviderError(llm_key) from e
except Exception as e:
LOG.exception("LLM request failed unexpectedly", llm_key=llm_key)
LOG.exception("LLM request failed unexpectedly", llm_key=llm_key, model=main_model_group)
raise LLMProviderError(llm_key) from e
if step: