Bug:自动化任务保存 LLM 设置后“立即运行”未使用所选模型
- Dominant language
- TypeScript
- Stars
- 2.7k
- Forks
- 401
- Avg merge
- 21h 48m
- Merged PRs (30d)
- 776
Description
**提交人**: 匿名
**客户端版本**: 0.1.31
---
## 现象
在“自动化编辑”页面右下角的 LLM 设置中选择并保存自定义 LLM 后,点击“立即运行”,自动化任务没有使用刚刚选中的模型,而是调用了其他模型。
此外,自动化任务有时会返回 400 错误:
```json
{"error":{"message":"/responses: Invalid model name passed in model=gpt-5.6-luna. Call `/v1/models` to view available models for your key.","type":"None","param":"None","code":"400","provider_specific_fields":{"error":"/responses: Invalid model name passed in model=gpt-5.6-luna. Call `/v1/models` to view available models for your key."}}}
```
普通对话中选择和使用模型均正常,目前看起来问题只发生在自动化任务。
## 复现步骤
1. 进入“自动化编辑”。
2. 点击右下角的 LLM 设置。
3. 选择一个自定义 LLM 并保存。
4. 保存后立即点击“立即运行”。
5. 检查自动化任务实际调用的模型,或观察是否出现 400 报错。
## 期望行为
保存自动化右下角的 LLM 设置后,点击“立即运行”应始终使用刚刚选中的模型,并正常执行自动化任务。若模型不可用,应明确提示模型不可用及原因,而不应静默切换到其他模型或产生未处理的 400 错误。
## 实际行为
- 自动化任务实际使用了其他模型,而不是刚保存时选中的模型。
- 部分情况下请求使用了不可用的模型名 `gpt-5.6-luna`,导致接口返回 400。
- 同一模型在普通对话中使用正常。
---
**版本区域**: CN
**OS**: win32 x64 (10.0.19045)
**界面语言**: zh-CN
Contributor guide
Research direction
Start at the automation editor's LLM settings save flow and the “立即运行” entry point, then trace how the selected model is passed into the task request. Reproduce the issue with a custom LLM and inspect the request model and 400 response. Done means immediate execution consistently uses the saved model and reports unavailable models clearly instead of silently switching or leaving the error unhandled.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- ai, frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 55/100