You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using the semantic_router.encoders.AzureOpenAIEncoder and semantic_router.llms.AzureOpenAILLM.
When trying to reproduce the examples from docs/02-dynamic-routes.ipynb, but with those encoder/llm.
When using semantic_route.llms.openai.get_schemas_openai, asking a RouteLayer will fail with a ValueError.
(Logger says: 2024-06-05 18:14:46 ERROR semantic_router.utils.logger Single input validation error: 'signature')
The error comes from semantic_router/llms/base.py:76 (in v0.0.46) where a 'signature' key is requested from the function schema.
When exchanging for semantic_router.utils.function_call.get_schema, the RouteChoice ouput is incomplete, missing the function name. Multi function routes don't work at all with this llm/encoder.
The text was updated successfully, but these errors were encountered:
Hi @Thomasillo , please can you share your altered version of the 02 notebook, just so I can try and reproduce the error? I think I've got an idea of what's causing this but it would be good to replicate the exact same situation.
I am using the semantic_router.encoders.AzureOpenAIEncoder and semantic_router.llms.AzureOpenAILLM.
When trying to reproduce the examples from docs/02-dynamic-routes.ipynb, but with those encoder/llm.
When using semantic_route.llms.openai.get_schemas_openai, asking a RouteLayer will fail with a ValueError.
(Logger says: 2024-06-05 18:14:46 ERROR semantic_router.utils.logger Single input validation error: 'signature')
The error comes from semantic_router/llms/base.py:76 (in v0.0.46) where a 'signature' key is requested from the function schema.
When exchanging for semantic_router.utils.function_call.get_schema, the RouteChoice ouput is incomplete, missing the function name. Multi function routes don't work at all with this llm/encoder.
The text was updated successfully, but these errors were encountered: