• Will Chen's avatar
    Fix auto model for engine (#2170) · 759c60f2
    Will Chen 提交于
    <!-- CURSOR_SUMMARY -->
    > [!NOTE]
    > Fixes auto/local-agent model routing and provider-specific behavior.
    > 
    > - Refactors `llm_engine_provider` to require `chatParams { providerId
    }`; wires it into custom fetch and model constructors (`provider`,
    `chatModel`, `responses`)
    > - Updates `get_model_client` to pass `providerId`, tag fallback models
    (`openai`, `anthropic`, `google`), and use `responses()` for OpenAI in
    `local-agent` and auto fallback
    > - Adds Responses API support to fake LLM server (`/v1/responses`) with
    streaming SSE handler and dump generation
    > - Extends test helper to parse Responses API dumps (`body.input`) and
    adds `localAgentUseAutoModel` setup flag
    > - New e2e test `local_agent_auto.spec.ts` with snapshot verifying
    request payload via Responses API
    > 
    > <sup>Written by [Cursor
    Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit
    e5b02d253c9842f14da0099bb11e1b05548e9245. This will update automatically
    on new commits. Configure
    [here](https://cursor.com/dashboard?tab=bugbot).</sup>
    <!-- /CURSOR_SUMMARY -->
    
    <!-- This is an auto-generated description by cubic. -->
    ---
    ## Summary by cubic
    Fixes auto model selection in the Dyad engine by passing the correct
    providerId with each request. Ensures provider-specific options are
    applied and avoids incorrect defaults.
    
    - **Bug Fixes**
    - Pass providerId to chat/responses models and into the fetch layer for
    getExtraProviderOptions.
    - Remove originalProviderId from createDyadEngine; add ChatParams and
    update provider API signatures.
    - Tag fallback models with providerId (openai, anthropic, google) and
    forward model.provider in getModelClient.
    
    <sup>Written for commit e5b02d253c9842f14da0099bb11e1b05548e9245.
    Summary will update on new commits.</sup>
    
    <!-- End of auto-generated description by cubic. -->
    759c60f2
名称
最后提交
最后更新
.claude 正在载入提交数据...
.cursor/rules 正在载入提交数据...
.devcontainer 正在载入提交数据...
.github 正在载入提交数据...
.husky 正在载入提交数据...
assets 正在载入提交数据...
docs 正在载入提交数据...
drizzle 正在载入提交数据...
e2e-tests 正在载入提交数据...
packages/@dyad-sh 正在载入提交数据...
scaffold 正在载入提交数据...
scripts 正在载入提交数据...
shared 正在载入提交数据...
src 正在载入提交数据...
testing 正在载入提交数据...
tools 正在载入提交数据...
worker 正在载入提交数据...
workers/tsc 正在载入提交数据...
.cursorignore 正在载入提交数据...
.env.example 正在载入提交数据...
.eslintrc.json 正在载入提交数据...
.gitattributes 正在载入提交数据...
.gitignore 正在载入提交数据...
.oxlintrc.json 正在载入提交数据...
.prettierignore 正在载入提交数据...
.prettierrc 正在载入提交数据...
AGENTS.md 正在载入提交数据...
CLA.md 正在载入提交数据...
CONTRIBUTING.md 正在载入提交数据...
LICENSE 正在载入提交数据...
README.md 正在载入提交数据...
SECURITY.md 正在载入提交数据...
biome.json 正在载入提交数据...
components.json 正在载入提交数据...
drizzle.config.ts 正在载入提交数据...
forge.config.ts 正在载入提交数据...
forge.env.d.ts 正在载入提交数据...
index.html 正在载入提交数据...
lint-staged.config.js 正在载入提交数据...
merge.config.ts 正在载入提交数据...
package-lock.json 正在载入提交数据...
package.json 正在载入提交数据...
playwright.config.ts 正在载入提交数据...
tsconfig.app.json 正在载入提交数据...
tsconfig.json 正在载入提交数据...
tsconfig.node.json 正在载入提交数据...
vite.main.config.mts 正在载入提交数据...
vite.preload.config.mts 正在载入提交数据...
vite.renderer.config.mts 正在载入提交数据...
vite.worker.config.mts 正在载入提交数据...
vitest.config.ts 正在载入提交数据...