fix(vertex_ai.py): move to only passing in accepted keys by vertex ai response schema (#8992)

* fix(vertex_ai.py): common_utils.py

move to only passing in accepted keys by vertex ai

prevent json schema compatible keys like $id, and $comment from causing vertex ai openapi calls to fail

* fix(test_vertex.py): add testing to ensure only accepted schema params passed in

* fix(common_utils.py): fix linting error

* test: update test

* test: accept function
This commit is contained in:
Krish Dholakia 2025-04-07 18:07:01 -07:00 committed by GitHub
parent 4a128cfd64
commit 8e3c7b2de0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 78 additions and 30 deletions

View file

@ -5,6 +5,7 @@ IGNORE_FUNCTIONS = [
"_format_type",
"_remove_additional_properties",
"_remove_strict_from_schema",
"filter_schema_fields",
"text_completion",
"_check_for_os_environ_vars",
"clean_message",