Skip to content

fix(gemini): remove unsupported propertyNames schemas - #923

Open
christophertjiattas wants to merge 1 commit into
mpfaffenberger:mainfrom
christophertjiattas:fix/gemini-propertynames-schema
Open

fix(gemini): remove unsupported propertyNames schemas#923
christophertjiattas wants to merge 1 commit into
mpfaffenberger:mainfrom
christophertjiattas:fix/gemini-propertynames-schema

Conversation

@christophertjiattas

Copy link
Copy Markdown
Contributor

Summary

  • remove the JSON Schema propertyNames keyword while building Gemini function declarations
  • preserve the existing recursive sanitization behavior for nested object schemas
  • add a regression test covering nested free-form map parameters, such as Playwright MCP tool data

Gemini rejects propertyNames in function-declaration parameters with HTTP 400 (Unknown name "propertyNames").

Testing

  • uv run pytest tests/test_gemini_model_full_coverage.py
  • uv run pytest -q
  • uv run ruff check .
  • uv run ruff format --check .

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.

1 participant