[PR #95] [MERGED] Update server.py for new chroma #188

Closed
opened 2026-10-15 18:05:25 +00:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/SillyTavern/SillyTavern-Extras/pull/95
Author: @donlinglok1
Created: 7/31/2023
Status: ✅ Merged
Merged: 7/31/2023
Merged by: @Cohee1207

Base: main ← Head: patch-1


📝 Commits (4)

📊 Changes

1 file changed (+6 additions, -8 deletions)

View changed files

📝 server.py (+6 -8)

📄 Description

Hi, i got this error during docker launch:

I try to migrate but seems it is hard to done.
So i just upgrade the code and start a new Chroma, at least i can launch the extras server now.

!!!This code may replace you old chroma db!!!

llm-sillytavern-extras-1  | Initializing ChromaDB
llm-sillytavern-extras-1  | Traceback (most recent call last):
llm-sillytavern-extras-1  |   File "/sillytavern-extras/server.py", line 268, in <module>
llm-sillytavern-extras-1  |     chromadb_client = chromadb.Client(Settings(anonymized_telemetry=False, persist_directory=args.chroma_folarquet'))
llm-sillytavern-extras-1  |   File "/root/miniconda3/lib/python3.10/site-packages/chromadb/__init__.py", line 107, in Client
llm-sillytavern-extras-1  |     system = System(settings)
llm-sillytavern-extras-1  |   File "/root/miniconda3/lib/python3.10/site-packages/chromadb/config.py", line 175, in __init__
llm-sillytavern-extras-1  |     if settings[key] is not None:
llm-sillytavern-extras-1  |   File "/root/miniconda3/lib/python3.10/site-packages/chromadb/config.py", line 110, in __getitem__
llm-sillytavern-extras-1  |     raise ValueError(LEGACY_ERROR)
llm-sillytavern-extras-1  | ValueError: You are using a deprecated configuration of Chroma.
llm-sillytavern-extras-1  | 
llm-sillytavern-extras-1  | If you do not have data you wish to migrate, you only need to change how you construct
llm-sillytavern-extras-1  | your Chroma client. Please see the "New Clients" section of https://docs.trychroma.com/migration.
llm-sillytavern-extras-1  | ________________________________________________________________________________________________
llm-sillytavern-extras-1  |
llm-sillytavern-extras-1  | If you do have data you wish to migrate, we have a migration tool you can use in order to
llm-sillytavern-extras-1  | migrate your data to the new Chroma architecture.
llm-sillytavern-extras-1  | Please `pip install chroma-migrate` and run `chroma-migrate` to migrate your data and then
llm-sillytavern-extras-1  | change how you construct your Chroma client.
llm-sillytavern-extras-1  |
llm-sillytavern-extras-1  | See https://docs.trychroma.com/migration for more information or join our discord at https://discord.gg/8g5FESbj for help!
llm-sillytavern-extras-1  |
llm-sillytavern-extras-1 exited with code 0

After:
image


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/SillyTavern/SillyTavern-Extras/pull/95 **Author:** [@donlinglok1](https://github.com/donlinglok1) **Created:** 7/31/2023 **Status:** ✅ Merged **Merged:** 7/31/2023 **Merged by:** [@Cohee1207](https://github.com/Cohee1207) **Base:** `main` ← **Head:** `patch-1` --- ### 📝 Commits (4) - [`1dce099`](https://github.com/SillyTavern/SillyTavern-Extras/commit/1dce09959ed2493365ce475fd07df3aaad517cbb) Update server.py for new chroma - [`17d622d`](https://github.com/SillyTavern/SillyTavern-Extras/commit/17d622d7bf5de1d665b92dcb1868b6724c9b4c8a) Update server.py - [`c19e6d3`](https://github.com/SillyTavern/SillyTavern-Extras/commit/c19e6d388109046f6747aefc1be6b492361822b5) Update server.py - [`abecb1c`](https://github.com/SillyTavern/SillyTavern-Extras/commit/abecb1ca5b12b0d6264afbb3fdcf076b70abc052) Update server.py ### 📊 Changes **1 file changed** (+6 additions, -8 deletions) <details> <summary>View changed files</summary> 📝 `server.py` (+6 -8) </details> ### 📄 Description Hi, i got this error during docker launch: I try to [migrate ](https://docs.trychroma.com/migration)but seems it is hard to done. So i just upgrade the code and start a new Chroma, at least i can launch the extras server now. **!!!This code may replace you old chroma db!!!** ``` llm-sillytavern-extras-1 | Initializing ChromaDB llm-sillytavern-extras-1 | Traceback (most recent call last): llm-sillytavern-extras-1 | File "/sillytavern-extras/server.py", line 268, in <module> llm-sillytavern-extras-1 | chromadb_client = chromadb.Client(Settings(anonymized_telemetry=False, persist_directory=args.chroma_folarquet')) llm-sillytavern-extras-1 | File "/root/miniconda3/lib/python3.10/site-packages/chromadb/__init__.py", line 107, in Client llm-sillytavern-extras-1 | system = System(settings) llm-sillytavern-extras-1 | File "/root/miniconda3/lib/python3.10/site-packages/chromadb/config.py", line 175, in __init__ llm-sillytavern-extras-1 | if settings[key] is not None: llm-sillytavern-extras-1 | File "/root/miniconda3/lib/python3.10/site-packages/chromadb/config.py", line 110, in __getitem__ llm-sillytavern-extras-1 | raise ValueError(LEGACY_ERROR) llm-sillytavern-extras-1 | ValueError: You are using a deprecated configuration of Chroma. llm-sillytavern-extras-1 | llm-sillytavern-extras-1 | If you do not have data you wish to migrate, you only need to change how you construct llm-sillytavern-extras-1 | your Chroma client. Please see the "New Clients" section of https://docs.trychroma.com/migration. llm-sillytavern-extras-1 | ________________________________________________________________________________________________ llm-sillytavern-extras-1 | llm-sillytavern-extras-1 | If you do have data you wish to migrate, we have a migration tool you can use in order to llm-sillytavern-extras-1 | migrate your data to the new Chroma architecture. llm-sillytavern-extras-1 | Please `pip install chroma-migrate` and run `chroma-migrate` to migrate your data and then llm-sillytavern-extras-1 | change how you construct your Chroma client. llm-sillytavern-extras-1 | llm-sillytavern-extras-1 | See https://docs.trychroma.com/migration for more information or join our discord at https://discord.gg/8g5FESbj for help! llm-sillytavern-extras-1 | llm-sillytavern-extras-1 exited with code 0 ``` After: ![image](https://github.com/SillyTavern/SillyTavern-extras/assets/6138806/d7e0f40a-1c6a-4441-9072-cb6570df59ca) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-15 18:05:25 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
SillyTavern/SillyTavern-Extras#188
No description provided.