Browse Source
The LLM selector exposed display-style Doubao model names that the NewApiWG test gateway cannot route. The UI now stores the gateway model ids returned by /models, while the API route maps legacy saved selector values to those ids so existing workflows do not keep failing. Constraint: Preserve GPT-4.1 Mini as the NewApiWG default and keep old workflow JSON compatible. Rejected: Remove Doubao from the LLM selector | the gateway exposes working Doubao chat model ids, so the issue is stale ids rather than product support. Confidence: high Scope-risk: narrow Directive: LLM selector values must be callable provider ids; use labels only for display text. Tested: Live NewApiWG chat completion with doubao-seed-2-0-lite-260428 and doubao-seed-2-0-pro-260215. Tested: npm run test:run -- src/lib/__tests__/llmModels.test.ts src/app/api/llm/__tests__/route.test.ts src/components/__tests__/LLMGenerateNode.test.tsx src/store/utils/__tests__/nodeDefaults.test.ts Tested: npm run build Tested: git diff --checkfeature/canvas-chatbot-copilot
7 changed files with 99 additions and 9 deletions
Loading…
Reference in new issue