Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

catch pydantic v2 schemas in dict #488

Merged
merged 3 commits into from
Sep 12, 2024
Merged

catch pydantic v2 schemas in dict #488

merged 3 commits into from
Sep 12, 2024

Conversation

ccurme
Copy link
Contributor

@ccurme ccurme commented Sep 12, 2024

PR Description

Relevant issues

Type

πŸ†• New Feature
πŸ› Bug Fix
🧹 Refactoring
πŸ“– Documentation
πŸš„ Infrastructure
βœ… Test

Changes(optional)

Testing(optional)

Note(optional)

@ccurme
Copy link
Contributor Author

ccurme commented Sep 12, 2024

@ccurme ccurme merged commit 36c122d into v0.3rc Sep 12, 2024
13 checks passed
@ccurme ccurme deleted the cc/vertex_optional_param branch September 12, 2024 22:04
ccurme added a commit that referenced this pull request Sep 13, 2024
* update deps

* delete check_pydantic script

* to_pydantic_2

* model_before_rewrite

* model_after_rewrite

* Self

* format

* clean up

* model_before_rewrite

* change VertexAI.validate_environment to pre

* lint

* update chat and embeddings validation to pre

* update some features to pydantic 2

* remove unused type ignores

* fix validate_environment in llm and chat models

* more validation updates

* change maas model garden validation to post

* add protected namespaces to embeddings

* fix embeddings init

* update docstrings

* delete check_pydantic script

* update dependencies

* to_pydantic_2

* model_after_rewrite

* Self

* revert change to _genai_extension

* format

* remove check_pydantic from MakeFile

* remove unused imports

* fix

* upgrade mypy

* fix type hints

* update serialization test

* add test_watch to makefile

* merge

* add snapshots

* schema -> model_json_schema

* update _format_json_schema_to_gapic

* support v1 function

* add test for union types

* add integration test workflow

* Revert "add integration test workflow"

This reverts commit 2589fd6.

* lock

* infra: remove pydantic compatibility checks

* delete check_pydantic script

* extra_migrate

* to_pydantic_2

* model_before_rewrite

* model_after_rewrite

* Self

* format

* update deps

* change some post validators to pre

* set private attributes with PrivateAttr instead of config

* resolve lint errors

* increment version to 2.0.0.dev1

* increment version to 2.0.0.dev1

* add snapshots for serialization standard test

* bump core dep

* json_schema_extra in test

* protected namespaces

* fix warnings

* fix warnings

* fix mistral dependency

* fix warning

* increment version to 2.0.0.dev1

* fix mistral dep and lock

* update docstrings

* todo: figure out if we need google-cloud-core in package deps

* increment version to get around test.pypi

* assign missed default

* catch pydantic v2 schemas in dict (#488)

* catch pydantic v2 schemas in dict

* lock

* update test

* fix VertexFSVectorStore

* fix equality check in community integration tests for pydantic 2

* update genai + lock

* update vertexai + lock

* update snapshots

* update genai snapshots

* update community + lock

---------

Co-authored-by: Leonid Kuligin <[email protected]>
Co-authored-by: Bagatur <[email protected]>
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