feat(llm调度平台): 初始化完整的LLM调用调度平台代码库
本次提交初始化了完整的LLM调用调度平台代码库,包含: - 后端FastAPI服务,集成模型适配、账号管理、调用策略、异步任务处理等核心模块 - 前端React管理后台,覆盖全功能管理页面 - Alembic数据库迁移脚本 - Docker与docker-compose部署配置 - 开发及生产环境配置文件 - 核心功能包括敏感词过滤、提示词模板管理、调用日志监控等
0 parents
Showing
365 changed files
with
4797 additions
and
0 deletions
.gitignore
0 → 100644
Dockerfile
0 → 100644
backend/alembic.ini
0 → 100644
backend/alembic/env.py
0 → 100644
backend/app/__init__.py
0 → 100644
File mode changed
backend/app/api/__init__.py
0 → 100644
backend/app/api/accounts.py
0 → 100644
backend/app/api/adapter.py
0 → 100644
backend/app/api/async_tasks.py
0 → 100644
backend/app/api/auth.py
0 → 100644
backend/app/api/calls.py
0 → 100644
backend/app/api/log_storage.py
0 → 100644
backend/app/api/orchestration.py
0 → 100644
backend/app/api/prompts.py
0 → 100644
backend/app/api/providers.py
0 → 100644
backend/app/api/statistics.py
0 → 100644
backend/app/api/strategies.py
0 → 100644
backend/app/api/word_bank.py
0 → 100644
backend/app/celery_app.py
0 → 100644
backend/app/core/__init__.py
0 → 100644
File mode changed
backend/app/core/config.py
0 → 100644
backend/app/core/database.py
0 → 100644
backend/app/core/security.py
0 → 100644
backend/app/main.py
0 → 100644
backend/app/models/__init__.py
0 → 100644
backend/app/models/_types.py
0 → 100644
backend/app/models/account.py
0 → 100644
backend/app/models/api_token.py
0 → 100644
backend/app/models/async_task.py
0 → 100644
backend/app/models/call_record.py
0 → 100644
backend/app/models/prompt.py
0 → 100644
backend/app/models/prompt_version.py
0 → 100644
backend/app/models/provider.py
0 → 100644
backend/app/models/statistics.py
0 → 100644
backend/app/models/strategy.py
0 → 100644
backend/app/models/user.py
0 → 100644
backend/app/models/word_bank.py
0 → 100644
backend/app/schemas/__init__.py
0 → 100644
backend/app/schemas/account.py
0 → 100644
backend/app/schemas/async_task.py
0 → 100644
backend/app/schemas/call_record.py
0 → 100644
backend/app/schemas/orchestration.py
0 → 100644
backend/app/schemas/prompt.py
0 → 100644
backend/app/schemas/provider.py
0 → 100644
backend/app/schemas/strategy.py
0 → 100644
backend/app/schemas/word_bank.py
0 → 100644
backend/app/services/__init__.py
0 → 100644
File mode changed
backend/app/services/account_matcher.py
0 → 100644
backend/app/services/account_service.py
0 → 100644
backend/app/services/adapter/__init__.py
0 → 100644
backend/app/services/adapter/baidu.py
0 → 100644
backend/app/services/adapter/base.py
0 → 100644
backend/app/services/adapter/dify.py
0 → 100644
backend/app/services/adapter/factory.py
0 → 100644
backend/app/services/adapter/qwen.py
0 → 100644
backend/app/services/adapter/zhipu.py
0 → 100644
backend/app/services/adapter_service.py
0 → 100644
backend/app/services/async_task_service.py
0 → 100644
This diff is collapsed.
Click to expand it.
backend/app/services/auth_service.py
0 → 100644
This diff is collapsed.
Click to expand it.
backend/app/services/call_record_service.py
0 → 100644
This diff is collapsed.
Click to expand it.
backend/app/services/log_storage_service.py
0 → 100644
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
backend/app/services/prompt_renderer.py
0 → 100644
This diff is collapsed.
Click to expand it.
backend/app/services/prompt_service.py
0 → 100644
This diff is collapsed.
Click to expand it.
backend/app/services/provider_service.py
0 → 100644
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
backend/app/services/statistics_service.py
0 → 100644
This diff is collapsed.
Click to expand it.
backend/app/services/strategy_service.py
0 → 100644
This diff is collapsed.
Click to expand it.
backend/app/services/word_bank_service.py
0 → 100644
This diff is collapsed.
Click to expand it.
backend/app/tasks/__init__.py
0 → 100644
This diff is collapsed.
Click to expand it.
backend/app/tasks/llm_tasks.py
0 → 100644
This diff is collapsed.
Click to expand it.
backend/config/default.yaml
0 → 100644
This diff is collapsed.
Click to expand it.
backend/config/development.yaml
0 → 100644
This diff is collapsed.
Click to expand it.
backend/config/production.yaml
0 → 100644
This diff is collapsed.
Click to expand it.
backend/ref/qwen-adpter.py
0 → 100644
This diff is collapsed.
Click to expand it.
backend/requirements.txt
0 → 100644
This diff is collapsed.
Click to expand it.
backend/test.db
0 → 100644
No preview for this file type
backend/test.db-journal
0 → 100644
No preview for this file type
backend/tests/conftest.py
0 → 100644
This diff is collapsed.
Click to expand it.
backend/tests/test_accounts_api.py
0 → 100644
This diff is collapsed.
Click to expand it.
backend/tests/test_adapter_engine.py
0 → 100644
This diff is collapsed.
Click to expand it.
backend/tests/test_async_task_worker.py
0 → 100644
This diff is collapsed.
Click to expand it.
backend/tests/test_async_tasks_api.py
0 → 100644
This diff is collapsed.
Click to expand it.
backend/tests/test_auth_api.py
0 → 100644
This diff is collapsed.
Click to expand it.
backend/tests/test_call_orchestration_api.py
0 → 100644
This diff is collapsed.
Click to expand it.
backend/tests/test_call_records_api.py
0 → 100644
This diff is collapsed.
Click to expand it.
backend/tests/test_log_storage.py
0 → 100644
This diff is collapsed.
Click to expand it.
backend/tests/test_prompts_api.py
0 → 100644
This diff is collapsed.
Click to expand it.
backend/tests/test_providers_api.py
0 → 100644
This diff is collapsed.
Click to expand it.
backend/tests/test_security.py
0 → 100644
This diff is collapsed.
Click to expand it.
backend/tests/test_statistics.py
0 → 100644
This diff is collapsed.
Click to expand it.
backend/tests/test_strategies_api.py
0 → 100644
This diff is collapsed.
Click to expand it.
backend/tests/test_word_bank.py
0 → 100644
This diff is collapsed.
Click to expand it.
docker-compose.yml
0 → 100644
This diff is collapsed.
Click to expand it.
docker-entrypoint.sh
0 → 100644
This diff is collapsed.
Click to expand it.
dump.rdb
0 → 100644
No preview for this file type
frontend/.gitignore
0 → 100644
This diff is collapsed.
Click to expand it.
frontend/Dockerfile
0 → 100644
This diff is collapsed.
Click to expand it.
frontend/README.md
0 → 100644
This diff is collapsed.
Click to expand it.
frontend/eslint.config.js
0 → 100644
This diff is collapsed.
Click to expand it.
frontend/index.html
0 → 100644
This diff is collapsed.
Click to expand it.
frontend/package-lock.json
0 → 100644
This diff could not be displayed because it is too large.
frontend/package.json
0 → 100644
This diff is collapsed.
Click to expand it.
frontend/public/favicon.svg
0 → 100644
This diff is collapsed.
Click to expand it.
frontend/public/icons.svg
0 → 100644
This diff is collapsed.
Click to expand it.
frontend/src/App.tsx
0 → 100644
This diff is collapsed.
Click to expand it.
frontend/src/__tests__/AccountList.test.tsx
0 → 100644
This diff is collapsed.
Click to expand it.
frontend/src/__tests__/App.test.tsx
0 → 100644
This diff is collapsed.
Click to expand it.
frontend/src/__tests__/CallMonitor.test.tsx
0 → 100644
This diff is collapsed.
Click to expand it.
frontend/src/__tests__/DebugConsole.test.tsx
0 → 100644
This diff is collapsed.
Click to expand it.
frontend/src/__tests__/PromptDetail.test.tsx
0 → 100644
This diff is collapsed.
Click to expand it.
frontend/src/__tests__/PromptList.test.tsx
0 → 100644
This diff is collapsed.
Click to expand it.
frontend/src/__tests__/ProviderList.test.tsx
0 → 100644
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
frontend/src/__tests__/StrategyList.test.tsx
0 → 100644
This diff is collapsed.
Click to expand it.
frontend/src/assets/hero.png
0 → 100644
12.8 KB
frontend/src/assets/vite.svg
0 → 100644
This diff is collapsed.
Click to expand it.
frontend/src/design-tokens.css
0 → 100644
This diff is collapsed.
Click to expand it.
frontend/src/main.tsx
0 → 100644
This diff is collapsed.
Click to expand it.
frontend/src/pages/Accounts/AccountForm.tsx
0 → 100644
This diff is collapsed.
Click to expand it.
frontend/src/pages/Accounts/AccountList.tsx
0 → 100644
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
frontend/src/pages/Calls/CallMonitor.tsx
0 → 100644
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
frontend/src/pages/Prompts/PromptDetail.tsx
0 → 100644
This diff is collapsed.
Click to expand it.
frontend/src/pages/Prompts/PromptForm.tsx
0 → 100644
This diff is collapsed.
Click to expand it.
frontend/src/pages/Prompts/PromptList.tsx
0 → 100644
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
frontend/src/pages/WordBank/WordBankForm.tsx
0 → 100644
This diff is collapsed.
Click to expand it.
frontend/src/pages/WordBank/WordBankList.tsx
0 → 100644
This diff is collapsed.
Click to expand it.
frontend/src/services/accountService.ts
0 → 100644
This diff is collapsed.
Click to expand it.
frontend/src/services/api.ts
0 → 100644
This diff is collapsed.
Click to expand it.
frontend/src/services/asyncTaskService.ts
0 → 100644
This diff is collapsed.
Click to expand it.
frontend/src/services/callRecordService.ts
0 → 100644
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
frontend/src/services/promptService.ts
0 → 100644
This diff is collapsed.
Click to expand it.
frontend/src/services/providerService.ts
0 → 100644
This diff is collapsed.
Click to expand it.
frontend/src/services/statisticsService.ts
0 → 100644
This diff is collapsed.
Click to expand it.
frontend/src/services/strategyService.ts
0 → 100644
This diff is collapsed.
Click to expand it.
frontend/src/services/wordBankService.ts
0 → 100644
This diff is collapsed.
Click to expand it.
frontend/src/stores/accountStore.ts
0 → 100644
This diff is collapsed.
Click to expand it.
frontend/src/stores/asyncTaskStore.ts
0 → 100644
This diff is collapsed.
Click to expand it.
frontend/src/stores/callRecordStore.ts
0 → 100644
This diff is collapsed.
Click to expand it.
frontend/src/stores/promptStore.ts
0 → 100644
This diff is collapsed.
Click to expand it.
frontend/src/stores/providerStore.ts
0 → 100644
This diff is collapsed.
Click to expand it.
frontend/src/stores/simpleCallStore.ts
0 → 100644
This diff is collapsed.
Click to expand it.
frontend/src/stores/strategyStore.ts
0 → 100644
This diff is collapsed.
Click to expand it.
frontend/src/test-setup.ts
0 → 100644
This diff is collapsed.
Click to expand it.
frontend/src/types/index.ts
0 → 100644
This diff is collapsed.
Click to expand it.
frontend/tsconfig.app.json
0 → 100644
This diff is collapsed.
Click to expand it.
frontend/tsconfig.json
0 → 100644
This diff is collapsed.
Click to expand it.
frontend/tsconfig.node.json
0 → 100644
This diff is collapsed.
Click to expand it.
frontend/vite.config.ts
0 → 100644
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff could not be displayed because it is too large.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff could not be displayed because it is too large.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
magic-vision-align-spec/5-api-spec/render.py
0 → 100644
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
magic-vision-align-spec/_build.py
0 → 100644
This diff is collapsed.
Click to expand it.
magic-vision-align-spec/_build_index.py
0 → 100644
This diff is collapsed.
Click to expand it.
magic-vision-align-spec/_resolve.py
0 → 100644
This diff is collapsed.
Click to expand it.
magic-vision-align-spec/index.html
0 → 100644
This diff is collapsed.
Click to expand it.
magic-vision-align-spec/server.py
0 → 100644
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
-
Please register or sign in to post a comment