mirror of
https://github.com/katanemo/plano.git
synced 2026-05-09 15:52:44 +02:00
Handle intent matching better in arch gateway (#391)
This commit is contained in:
parent
10cad4d0b7
commit
e77fc47225
10 changed files with 653 additions and 309 deletions
|
|
@ -104,6 +104,7 @@ async def function_calling(req: ChatMessage, res: Response):
|
|||
res.status_code = 500
|
||||
error_messages = f"[Arch-Function] - Error in ChatCompletion: {e}"
|
||||
else:
|
||||
# no intent matched
|
||||
intent_response.metadata = {
|
||||
"intent_latency": str(round(intent_latency * 1000, 3)),
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue