chore: pin deps to production versions, replace toml with tomllib
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
# app/config.py
|
||||
import toml
|
||||
import tomllib
|
||||
import os
|
||||
from pathlib import Path
|
||||
from dataclasses import dataclass, field
|
||||
@@ -83,8 +83,8 @@ class Config:
|
||||
config = cls()
|
||||
|
||||
if config_path.exists():
|
||||
with open(config_path, "r") as f:
|
||||
data = toml.load(f)
|
||||
with open(config_path, "rb") as f:
|
||||
data = tomllib.load(f)
|
||||
|
||||
if "general" in data:
|
||||
config.ollama_host = data["general"].get("ollama_host", config.ollama_host)
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
fastapi>=0.104.0
|
||||
uvicorn[standard]>=0.24.0
|
||||
httpx>=0.25.0
|
||||
qdrant-client>=1.6.0
|
||||
ollama>=0.1.0
|
||||
toml>=0.10.2
|
||||
tiktoken>=0.5.0
|
||||
apscheduler>=3.10.0
|
||||
pytest>=7.0.0
|
||||
pytest-asyncio>=0.21.0
|
||||
pytest-cov>=4.0.0
|
||||
fastapi==0.135.2
|
||||
uvicorn[standard]==0.42.0
|
||||
httpx==0.28.1
|
||||
qdrant-client==1.17.1
|
||||
ollama==0.6.1
|
||||
tiktoken==0.12.0
|
||||
apscheduler==3.11.2
|
||||
portalocker==3.2.0
|
||||
pytest==9.0.2
|
||||
pytest-asyncio==1.3.0
|
||||
pytest-cov==7.1.0
|
||||
|
||||
Reference in New Issue
Block a user