mirror of
https://github.com/placeholder-soft/chroma.git
synced 2026-01-12 17:02:54 +08:00
## Description of changes Closes #893 *Summarize the changes made by this PR.* - Improvements & Bug fixes - Adds support for pydantic v2.0 by changing how Collection model inits - this simple change fixes pydantic v2 - Fixes the cross version tests to handle pydantic specifically - Conditionally imports pydantic-settings based on what is available. In v2 BaseSettings was moved to a new package. - New functionality - N/A ## Test plan Existing tests were run with the following configs 1. Fastapi < 0.100, Pydantic >= 2.0 - Unsupported as the fastapi dependencies will not allow it. They likely should, as pydantic.v1 imports would support this, but this is a downstream issue. 2. Fastapi >= 0.100, Pydantic >= 2.0, Supported via normal imports ✅ (Tested with fastapi==0.103.1, pydantic==2.3.0) 3. Fastapi < 0.100 Pydantic < 2.0, Supported via normal imports ✅ (Tested with fastapi==0.95.2, pydantic==1.9.2) 4. Fastapi >= 0.100, Pydantic < 2.0, Supported via normal imports ✅ (Tested with latest fastapi, pydantic==1.9.2) - [x] Tests pass locally with `pytest` for python, `yarn test` for js ## Documentation Changes None required.
20 lines
413 B
Plaintext
20 lines
413 B
Plaintext
bcrypt==4.0.1
|
|
chroma-hnswlib==0.7.3
|
|
fastapi>=0.95.2
|
|
graphlib_backport==1.0.3; python_version < '3.9'
|
|
importlib-resources
|
|
numpy==1.21.6; python_version < '3.8'
|
|
numpy==1.22.4; python_version >= '3.8'
|
|
onnxruntime==1.14.1
|
|
overrides==7.3.1
|
|
posthog==2.4.0
|
|
pulsar-client==3.1.0
|
|
pydantic>=1.9
|
|
pypika==0.48.9
|
|
requests==2.28.1
|
|
tokenizers==0.13.2
|
|
tqdm==4.65.0
|
|
typer>=0.9.0
|
|
typing_extensions>=4.5.0
|
|
uvicorn[standard]==0.18.3
|