• Will Chen's avatar
    Update language model constants with latest configurations (#2633) · a335e96d
    Will Chen 提交于
    ## Summary
    - Update language model constants with latest model configurations and
    pricing
    - Add support for new model versions across multiple providers
    - Improve model descriptions and configuration parameters
    
    ## Test plan
    - Verify that the application loads with all model configurations
    - Test model selection in the UI
    - Confirm no TypeScript or lint errors
    
    🤖 Generated with [Claude Code](https://claude.com/claude-code)
    <!-- devin-review-badge-begin -->
    
    ---
    
    <a href="https://app.devin.ai/review/dyad-sh/dyad/pull/2633"
    target="_blank">
      <picture>
    <source media="(prefers-color-scheme: dark)"
    srcset="https://static.devin.ai/assets/gh-open-in-devin-review-dark.svg?v=1">
    <img
    src="https://static.devin.ai/assets/gh-open-in-devin-review-light.svg?v=1"
    alt="Open with Devin">
      </picture>
    </a>
    <!-- devin-review-badge-end -->
    
    <!-- CURSOR_SUMMARY -->
    ---
    
    > [!NOTE]
    > **Low Risk**
    > Primarily updates configuration/constants for model selection; main
    behavioral change is the expanded free-model name matching which could
    alter which OpenRouter models are used in fallback.
    > 
    > **Overview**
    > Adds the new Anthropic model `claude-opus-4-6` (with updated token
    limits/pricing metadata) to the selectable model options.
    > 
    > Refreshes OpenRouter model options by introducing a generic
    `openrouter/free` entry, adding `z-ai/glm-5`, tweaking `glm-4.7`
    description, and removing older explicit free-model entries and
    `moonshotai/kimi-k2-0905`. Updates `FREE_OPENROUTER_MODEL_NAMES` to
    treat both `:free` and `/free` model names as free, which changes which
    models can be selected in the auto free fallback.
    > 
    > <sup>Written by [Cursor
    Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit
    d192033357d87355a9d414269a19a348c3faef6d. 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
    Updated language model constants with the latest configs and pricing to
    keep model selection current. Adds new models and improves free model
    detection for OpenRouter.
    
    - **New Features**
      - Added Claude Opus 4.6 (1M context, 32k max output).
    - Added OpenRouter “free” model and Z‑AI GLM 5; updated GLM 4.7
    description.
    - Updated context windows, temperatures, and pricing; removed deprecated
    free entries and Kimi K2 0905.
    
    - **Bug Fixes**
    - Free model detection now supports names ending with “/free” (not just
    “:free”).
    
    <sup>Written for commit d192033357d87355a9d414269a19a348c3faef6d.
    Summary will update on new commits.</sup>
    
    <!-- End of auto-generated description by cubic. -->
    a335e96d
名称
最后提交
最后更新
.claude 正在载入提交数据...
.cursor/rules 正在载入提交数据...
.devcontainer 正在载入提交数据...
.github 正在载入提交数据...
.husky 正在载入提交数据...
.storybook 正在载入提交数据...
assets 正在载入提交数据...
docs 正在载入提交数据...
drizzle 正在载入提交数据...
e2e-tests 正在载入提交数据...
makers 正在载入提交数据...
packages/@dyad-sh 正在载入提交数据...
rules 正在载入提交数据...
scaffold 正在载入提交数据...
scripts 正在载入提交数据...
shared 正在载入提交数据...
src 正在载入提交数据...
testing 正在载入提交数据...
tools 正在载入提交数据...
worker 正在载入提交数据...
workers/tsc 正在载入提交数据...
.cursorignore 正在载入提交数据...
.env.example 正在载入提交数据...
.eslintrc.json 正在载入提交数据...
.gitattributes 正在载入提交数据...
.gitignore 正在载入提交数据...
.npmrc 正在载入提交数据...
.oxfmtrc.json 正在载入提交数据...
.oxlintrc.json 正在载入提交数据...
.prettierignore 正在载入提交数据...
.prettierrc 正在载入提交数据...
AGENTS.md 正在载入提交数据...
CLA.md 正在载入提交数据...
CLAUDE.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 正在载入提交数据...
windowsSign.ts 正在载入提交数据...