qihu-bot
54b444b651
#967 implement media_relay endpoint - fix WeChat bot image relay
...
media_relay was a stub (empty function body). Now implements actual image/video streaming relay from S3 to WeChat clients, with domain whitelist and httpx streaming. Fixes WeChat bot image generation responses not rendered.
2026-08-11 21:31:15 +08:00
qihu-bot
75be24ce9c
#966 fix - litellm_sync import + IndentationError
...
## Root cause: ImportError sync_health_check not defined. ## Also IndentationError on L467/L590 in nested sync blocks. ## Container stable, public URL 200 OK.
2026-08-11 21:12:56 +08:00
qihu-bot
fd84fec5b1
#965 LiteLLM model sync - STORE_MODEL_IN_DB + API integration
...
docker-compose.yml +STORE_MODEL_IN_DB=True enables LiteLLM dynamic model management via REST API. models.py admin CRUD now syncs to LiteLLM via threading.
2026-08-11 15:27:57 +08:00
qihu-bot
fa38d2c57a
#964 修复 React error #321 模块级 useState 调用
...
Models.tsx L31 const [lockedCapDefaults, setLockedCapDefaults] = useState(...) 在模块顶层,违反 React Hooks 规则. 移到 Models component 函数体内 (L56). 解决 production 报 React error #321 Invalid hook call.
2026-08-11 13:57:51 +08:00
qihu-bot
679f23ff93
#963 safeLazy 包裹 React.lazy 防 chunk 加载失败导致 element undefined
...
App.tsx 所有 React.lazy 改为 safeLazy(loader).catch(...) 保证 chunk load 失败时 element 有 fallback 不会是 undefined. 防 React error #231 .
2026-08-11 13:06:42 +08:00
qihu-bot
420e0f6603
#962 全局 ErrorBoundary 隔离组件渲染错误
...
main.tsx 加 ErrorBoundary 包裹 App,任何组件抛错都会显示在页面上而不是让 root 空白. 基于 #961 诊断:React 18 mount 正常,问题在 App.tsx 组件树.
2026-08-11 12:53:04 +08:00
qihu-bot
4cf910ee3e
#961 /admin/models React #425 hydration mismatch 修复
...
main.tsx 加全局错误处理 + #root 清空 + try-catch 包裹 createRoot. 解决 React 18.3.1 在空 #root 容器中误触发 hydration 警告导致 mount 失败.
2026-08-11 12:43:40 +08:00
qihu-bot
45b6939ab3
#959 /admin/models 空白页修复 - nginx index.html 加 no-store 头
...
nginx index.html 加 Cache-Control: no-store + Pragma: no-cache + Expires: 0,强制浏览器每次拉新版 SPA. 修复 #957 修复后浏览器仍缓存旧 615 bytes nginx welcome 导致的空白页.
2026-08-11 09:31:50 +08:00
qihu-bot
53bbbf3195
#957 nginx 容器 root 修复 - ai.qihuyun.com 显示 nginx 默认页
...
aiflow.conf 缺 server 级 root 指令导致 SPA fallback 走 nginx 默认 /usr/share/nginx/html. 修复后容器 8080 / host 12888 / 外部 ai.qihuyun.com 全部正确返回 544 bytes 七虎AI 前端页.
2026-08-11 08:55:49 +08:00
qihu-bot
b415a0b62e
#937 LiteLLM 副 key 启用脚本 + 计划 (20260810-154721)
...
新增 litellm/apply_secondary_key.sh + rollback + verify + README + docs/observability/litellm-failover-activation.md. 代码层已就绪(commit 84d89ab ),等用户提供 SiliconFlow 副 key 后,单次低峰会话完成切换.
2026-08-10 15:47:21 +08:00
qihu-bot
e50d006ef4
#952 alloy traces 配置 bake Dockerfile + 计划 (20260810-154537)
...
新增 alloy/Dockerfile + config.alloy + build.sh + README + docs/observability/alloy-bake-plan.md. 当前 bind mount /tmp/alloy 仍稳定,本会话仅交付可执行件,实际 build 待低峰期执行.
2026-08-10 15:45:37 +08:00
qihu-bot
7e002ac2b5
P1-1 后端核心模块单测 (20260810-154318)
...
新增 test_capability_discovery.py (30) + test_llm_router.py (21) 共 51 个哨兵单测,覆盖 #874 双 Claw 能力发现 / #875 LLM 路由熔断 / #876 OTel 桥接关键路径. 套件: 116 -> 165 passed.
2026-08-10 15:43:19 +08:00
qihu-bot
cee260d4bd
P1-2 nginx 限流 + 扫描器拦截 (20260810-153624)
...
三档限流 (api 30r/s, admin 5r/s, login 1r/s) + UA / path 黑名单 (return 444) + 自动黑名单脚本 (5min cron, 24h TTL). 实测首跑封禁 222.128.55.233 (4xx=31) 和 120.55.61.72 (UA=zgrab).
2026-08-10 15:36:25 +08:00
qihu-bot
d274733fb3
feat(chat): 外部Agent(Dify/n8n/Coze)运行期真实远程调用
...
- _resolve_market_agents 补齐 platform/agent_endpoint/agent_api_key 字段
- 新增 _call_external_agent 及 dify/n8n/coze 分支; Dify 走SSE流式,兼容
chat/agent(message)与chatflow/workflow(text_chunk/workflow_finished)事件,
失败时surface真实错误; n8n走webhook POST; coze走v3 chat+轮询
- send_message 选中带endpoint的外部Agent时直接远程调用,跳过本地LLM扮演
- Conversation新增ext_agent_conversation_id维持Dify/Coze多轮(迁移016)
- 出网统一trust_env=False+_proxy_for_url直连,规避坏代理502
2026-07-15 13:55:04 +08:00