mirror of
https://github.com/qdrant/qdrant-client.git
synced 2026-07-31 23:20:54 -05:00
* new: update autogenerated code * fix: fix config conversions * new: add pydantic compat * new: add types to pydantic_compat * new: update dependencies * new: use pydantic compat functions * new: add pydantic v2 field check * fix typing * fix typing --------- Co-authored-by: generall <andrey@vasnetsov.com>
17 lines
567 B
Python
17 lines
567 B
Python
import inspect
|
|
|
|
from pydantic import BaseModel
|
|
from qdrant_client._pydantic_compat import update_forward_refs
|
|
from qdrant_client.http.api_client import ( # noqa F401
|
|
ApiClient as ApiClient,
|
|
AsyncApis as AsyncApis,
|
|
SyncApis as SyncApis,
|
|
)
|
|
from qdrant_client.http.models import models as models # noqa F401
|
|
|
|
for model in inspect.getmembers(models, inspect.isclass):
|
|
if model[1].__module__ == "qdrant_client.http.models.models":
|
|
model_class = model[1]
|
|
if issubclass(model_class, BaseModel):
|
|
update_forward_refs(model_class)
|