Skip to content

Conversation

@toubatbrian
Copy link
Contributor

Support strict openai tool schema, marked as false by default to remain backward competible.

@changeset-bot
Copy link

changeset-bot bot commented Nov 10, 2025

🦋 Changeset detected

Latest commit: 505e79d

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 14 packages
Name Type
@livekit/agents-plugin-openai Patch
@livekit/agents-plugins-test Patch
@livekit/agents Patch
@livekit/agents-plugin-anam Patch
@livekit/agents-plugin-cartesia Patch
@livekit/agents-plugin-elevenlabs Patch
@livekit/agents-plugin-google Patch
@livekit/agents-plugin-neuphonic Patch
@livekit/agents-plugin-resemble Patch
@livekit/agents-plugin-rime Patch
@livekit/agents-plugin-deepgram Patch
@livekit/agents-plugin-bey Patch
@livekit/agents-plugin-livekit Patch
@livekit/agents-plugin-silero Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@toubatbrian toubatbrian changed the base branch from main to brian/bump-oai November 10, 2025 10:16
Comment on lines +302 to +304
if (this.strictToolSchema) {
oaiParams.function.strict = true;
}
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we dynamically assign the strict property

apiKey,
apiSecret,
modelOptions,
strictToolSchema = false,
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

disable strict to remain backward competibility

@toubatbrian toubatbrian mentioned this pull request Nov 10, 2025
7 tasks
Copy link
Contributor

@simllll simllll left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice 👍🏼 looking forward to this :)

@toubatbrian
Copy link
Contributor Author

Wait for #813

Base automatically changed from brian/bump-oai to main November 12, 2025 08:51
@toubatbrian toubatbrian merged commit 21b25dc into main Nov 12, 2025
8 checks passed
@toubatbrian toubatbrian deleted the brian/strict-oai-tool-schema branch November 12, 2025 08:59
@github-actions github-actions bot mentioned this pull request Nov 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants