Skip to content

Commit

Permalink
fix: bug in pinecone index for func schema
Browse files Browse the repository at this point in the history
  • Loading branch information
jamescalam committed Sep 5, 2024
1 parent 16001d2 commit 9ffb1af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion semantic_router/index/pinecone.py
Original file line number Diff line number Diff line change
Expand Up @@ -799,7 +799,7 @@ async def _async_get_routes(self) -> List[Tuple]:
data.get("sr_utterance", ""),
(
json.loads(data["sr_function_schema"])
if data["sr_function_schema"]
if data.get("sr_function_schema", "")
else {}
),
{
Expand Down

0 comments on commit 9ffb1af

Please sign in to comment.