• 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
language_model_constants.ts 16.7 KB