Improve error handling on Arch-Intent

This commit is contained in:
Shuguang Chen 2025-02-04 11:28:08 -08:00
parent 0bd0e86972
commit d00034dab0

View file

@ -113,6 +113,7 @@ async def function_calling(req: ChatMessage, res: Response):
error_messages = f"[Arch-Intent] - Error in ChatCompletion: {e}"
if error_messages is not None:
# TODO: make a call to default LLM to get responses
logger.error(error_messages)
final_response = ChatCompletionResponse(metadata={"error": error_messages})