Skip to content

Commit ca5291b

Browse files
committed
fix(cli): default db_url for chroma0
1 parent 6155fb5 commit ca5291b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/vectorcode/database/chroma0.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,7 @@ async def _create_client(self, configs: Config) -> AsyncClientAPI:
210210
}
211211
settings.update(valid_settings)
212212
parsed_url = urlparse(configs.db_params["db_url"])
213+
logger.debug(f"Creating chromadb0 client from {db_settings}")
213214
settings["chroma_server_host"] = parsed_url.hostname or "127.0.0.1"
214215
settings["chroma_server_http_port"] = parsed_url.port or 8000
215216
settings["chroma_server_ssl_enabled"] = parsed_url.scheme == "https"
@@ -226,7 +227,7 @@ def clear(self):
226227

227228

228229
_default_settings: dict[str, Any] = {
229-
"db_url": "http://127.0.0.1",
230+
"db_url": "http://127.0.0.1:8000",
230231
"db_path": os.path.expanduser("~/.local/share/vectorcode/chromadb/"),
231232
"db_log_path": os.path.expanduser("~/.local/share/vectorcode/"),
232233
"db_settings": {},

0 commit comments

Comments
 (0)