feat(ai): 页面可配置云端或本地 OpenAI 兼容模型 #4

Open
jianwel wants to merge 1 commits from feat/ai-model-config into main
Owner

堆叠 PR 第 1/5 个,合并顺序:本 PR → fix/evidence-display-ui → fix/formula-export-reliability → feat/web-custom-columns → docs/user-guide-and-gaps。

  • 新增 AIConfig 模型(每组织一份,迁移 0005)与 /api/ai-config、/api/ai-models 接口;密钥只存后端、读取脱敏、修改记审计
  • 支持 OpenAI 及本地 OpenAI 兼容服务(Ollama/LM Studio/vLLM),可从 /v1/models 一键获取模型列表多选一;数据库配置优先于环境变量
  • 助手调用走生效配置;全权限管理员在「管理 → AI 模型」配置
  • 验证:ruff、迁移检查、pytest 64 passed、npm run build 通过
堆叠 PR 第 1/5 个,合并顺序:本 PR → fix/evidence-display-ui → fix/formula-export-reliability → feat/web-custom-columns → docs/user-guide-and-gaps。 - 新增 AIConfig 模型(每组织一份,迁移 0005)与 /api/ai-config、/api/ai-models 接口;密钥只存后端、读取脱敏、修改记审计 - 支持 OpenAI 及本地 OpenAI 兼容服务(Ollama/LM Studio/vLLM),可从 /v1/models 一键获取模型列表多选一;数据库配置优先于环境变量 - 助手调用走生效配置;全权限管理员在「管理 → AI 模型」配置 - 验证:ruff、迁移检查、pytest 64 passed、npm run build 通过
jianwel added 1 commit 2026-10-11 01:45:59 +00:00
feat(ai): 页面可配置云端或本地 OpenAI 兼容模型
Verify / verify (pull_request) Failing after 0s
AI Review / review (pull_request) Successful in 9s
Verify / verify (push) Failing after 1s
dd8912f7ae
- 新增 AIConfig 模型(每组织一份,迁移 0005)与 /api/ai-config、
  /api/ai-models 接口;密钥只存后端、读取脱敏、修改记审计
- 支持 OpenAI 及本地 OpenAI 兼容服务(Ollama/LM Studio/vLLM),
  可从 /v1/models 一键获取模型列表多选一;数据库配置优先于环境变量
- 助手调用走生效配置,Copilot 文案同步更新
- 全权限管理员可在「管理 → AI 模型」配置;补接口级测试
Some required checks failed
Verify / verify (pull_request) Failing after 0s
AI Review / review (pull_request) Successful in 9s
Verify / verify (push) Failing after 1s
You are not authorized to merge this pull request.
This pull request can be merged automatically.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin feat/ai-model-config:feat/ai-model-config
git checkout feat/ai-model-config
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: jianwel/fa-agent#4