mirror of
https://github.com/katanemo/plano.git
synced 2026-06-17 15:25:17 +02:00
Improve error handling on Arch-Intent
This commit is contained in:
parent
0bd0e86972
commit
d00034dab0
1 changed files with 1 additions and 0 deletions
|
|
@ -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})
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue