Skip to content

fix(base_model): only fall back on schema kwarg TypeError - #3559

Open
user-Param wants to merge 14 commits into
confident-ai:mainfrom
user-Param:fix/3396-generate-with-schema
Open

user-Param wants to merge 14 commits into
confident-ai:mainfrom
user-Param:fix/3396-generate-with-schema

Conversation

@user-Param

Copy link
Copy Markdown

Fixes #3396 - generate_with_schema was silently dropping the schema when a provider raised TypeError internally. The fix only falls back when the TypeError is about the schema kwarg, re-raising otherwise.

@vercel

vercel Bot commented Oct 30, 2026

Copy link
Copy Markdown

@def-Param is attempting to deploy a commit to the Confident AI Team on Vercel.

A member of the Team first needs to authorize it.

@user-Param

Copy link
Copy Markdown
Author

All tests pass and the fix addresses a real issue. Would appreciate a review!

This branch has not been deployed

No deployments
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.

generate_with_schema silently drops the schema when a provider raises TypeError internally

2 participants