Skip to content

Commit

Permalink
fix: exclude id when getting tools to match openai tools schema
Browse files Browse the repository at this point in the history
  • Loading branch information
alt-glitch committed Apr 16, 2024
1 parent 884ab9e commit 1b14574
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion agents-api/agents_api/routers/sessions/session.py
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ async def generate(
]
tools = None
if settings.tools:
tools = [tool.model_dump(mode="json") for tool in settings.tools]
tools = [(tool.model_dump(exclude="id")) for tool in settings.tools]
model_client = get_model_client(settings.model)
extra_body = (
dict(
Expand Down

0 comments on commit 1b14574

Please sign in to comment.