Skip to content

Commit 92b9842

Browse files
[Fix] Fix tools calls issue with openai models (#73)
Fix tools calls issue with openai models Co-authored-by: Vipul Mittal <[email protected]>
1 parent 4271c36 commit 92b9842

File tree

4 files changed

+53
-43
lines changed

4 files changed

+53
-43
lines changed

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ ui = [
7171
"streamlit-autorefresh>=1.0,<2.0",
7272
"streamlit-flow-component>=1.6,<2.0",
7373
"watchdog>=6.0,<7.0",
74+
"plotly>=6.5.0"
7475
]
7576
dev = [
7677
"pytest>=8.4,<9.0",

sygra/core/models/lite_llm/azure_openai_model.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ async def _generate_response(
7474
elif should_route_to_image(self.model_config):
7575
return await self._generate_image(input, model_params)
7676
else:
77-
return await self._generate_text(input, model_params, **kwargs)
77+
return await self._generate_text(input, model_params)
7878

7979
async def _generate_speech(
8080
self, input: ChatPromptValue, model_params: ModelParams, **kwargs: Any

sygra/core/models/lite_llm/openai_model.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ async def _generate_response(
7676
elif should_route_to_image(self.model_config):
7777
return await self._generate_image(input, model_params)
7878
else:
79-
return await self._generate_text(input, model_params, **kwargs)
79+
return await self._generate_text(input, model_params)
8080

8181
async def _generate_speech(
8282
self, input: ChatPromptValue, model_params: ModelParams, **kwargs: Any

0 commit comments

Comments
 (0)