2026-04-17 01:22:05 +08:00
|
|
|
# Required - fill in before running
|
|
|
|
|
ZHIPUAI_API_KEY=b11404531c574043b1b0750186cd9d79.LfoyJjtj1fnGbTLl
|
|
|
|
|
DASHSCOPE_API_KEY=sk-d0ebc07bad2d4666bcd284f80d3fe138
|
|
|
|
|
STORAGE_ACCESS_KEY=admin
|
|
|
|
|
STORAGE_SECRET_KEY=your_strong_password
|
|
|
|
|
STORAGE_ENDPOINT=http://39.107.112.174:9000
|
feat: Phase 1+2 — project setup and core infrastructure
- requirements.txt, config.yaml, .env, Dockerfile, docker-compose.yml
- app/core: config (YAML+env override), logging (JSON structured),
exceptions (typed hierarchy), json_utils (Markdown fence stripping)
- app/clients: LLMClient ABC + ZhipuAIClient (run_in_executor),
StorageClient ABC + RustFSClient (boto3 head_object for size check)
- app/main.py: FastAPI app with health endpoint and router registration
- app/core/dependencies.py: lru_cache singleton factories
- tests/conftest.py: mock_llm, mock_storage, test_app, client fixtures
- pytest.ini: asyncio_mode=auto
- 11 unit tests passing
2026-04-10 15:22:45 +08:00
|
|
|
|
|
|
|
|
# Optional overrides
|
2026-04-17 01:22:05 +08:00
|
|
|
DASHSCOPE_BASE_URL=https://dashscope.aliyuncs.com/compatible-mode/v1
|
|
|
|
|
DASHSCOPE_FINE_TUNE_BASE_URL=https://dashscope.aliyuncs.com/api/v1
|
|
|
|
|
BACKEND_CALLBACK_URL=http://localhost:18082/api/ai/callback
|
feat: Phase 1+2 — project setup and core infrastructure
- requirements.txt, config.yaml, .env, Dockerfile, docker-compose.yml
- app/core: config (YAML+env override), logging (JSON structured),
exceptions (typed hierarchy), json_utils (Markdown fence stripping)
- app/clients: LLMClient ABC + ZhipuAIClient (run_in_executor),
StorageClient ABC + RustFSClient (boto3 head_object for size check)
- app/main.py: FastAPI app with health endpoint and router registration
- app/core/dependencies.py: lru_cache singleton factories
- tests/conftest.py: mock_llm, mock_storage, test_app, client fixtures
- pytest.ini: asyncio_mode=auto
- 11 unit tests passing
2026-04-10 15:22:45 +08:00
|
|
|
LOG_LEVEL=INFO
|
2026-04-17 01:22:05 +08:00
|
|
|
MAX_VIDEO_SIZE_MB=500MB
|