🤯 LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.
TypeScript agentagent-collaborationagent-harnessloop-engineeringmcppersonal-assistantproactive-agentskillssuper-agenttask-management
✨ refactor(pricing): Introduce new pricing system (#8681)
YuTengjing96b7508e01c2
diff --git a/.cursor/rules/code-review.mdc b/.cursor/rules/code-review.mdcindex b74cc4f7772..24cb0273789 100644--- a/.cursor/rules/code-review.mdc+++ b/.cursor/rules/code-review.mdc@@ -26,28 +26,11 @@ Gather the modified code and context. Please strictly follow the process below:### Code Style-read [typescript.mdc](mdc:.cursor/rules/typescript.mdc) to learn the project's code style.--- Ensure JSDoc comments accurately reflect the implementation; update them when needed.-- Look for opportunities to simplify or modernize code with the latest JavaScript/TypeScript features.-- Prefer `async`/`await` over callbacks or chained `.then` promises.-- Use consistent, descriptive naming—avoid obscure abbreviations.-- Replace magic numbers or strings with well-named constants.-- Use semantically meaningful variable, function, and class names.-- Ignore purely formatting issues and other autofixable lint problems.+read [typescript.mdc](mdc:.cursor/rules/typescript.mdc) for the consolidated project code style and optimization rules.### Code Optimization-- Prefer `for…of` loops to index-based `for` loops when feasible.-- Decide whether callbacks should be **debounced** or **throttled**.-- Use components from `@lobehub/ui`, Ant Design, or the existing design system instead of raw HTML tags (e.g., `Button` vs. `button`).-- reuse npm packages already installed (e.g., `lodash/omit`) rather than reinventing the wheel.-- Design for dark mode and mobile responsiveness:- - Use the `antd-style` token system instead of hard-coded colors.- - Select the proper component variants.-- Performance considerations:- - Where safe, convert sequential async flows to concurrent ones with `Promise.all`, `Promise.race`, etc.- - Query only the required columns from a database rather than selecting entire rows.+The optimization checklist has been consolidated into [typescript.mdc](mdc:.cursor/rules/typescript.mdc): loops, debouncing/throttling, design system components, theming tokens, concurrency with `Promise.*`, minimal DB column selection, and package reuse.### Obvious Bugsdiff --git a/.cursor/rules/cursor-ux.mdc b/.cursor/rules/cursor-ux.mdcindex 5b0682b6463..2de2c535e92 100644--- a/.cursor/rules/cursor-ux.mdc+++ b/.cursor/rules/cursor-ux.mdc@@ -30,75 +30,3 @@ alwaysApply: true- Good: `git show commit_hash -- file.txt | cat`- Good: `git log --oneline | cat`- Reason: Some git commands use pagers by default, which may prevent output from being captured properly--## Mermaid Diagram Generation: Strict Syntax Validation Checklist--Before producing any Mermaid diagram, you **must** compare your final code line-by-line against every rule in the following checklist to ensure 100% compliance. **This is a hard requirement and takes precedence over other stylistic suggestions.** Please follow these action steps:--1. Plan the Mermaid diagram logic in your mind.-2. Write the Mermaid code.-3. **Carefully review your code line-by-line against the entire checklist below.**-4. Fix any aspect of your code that doesn't comply.-5. Use the `validateMermaid` tool to check your code for syntax errors. Only proceed if validation passes.-6. Output the final, compliant, and copy-ready Mermaid code block.-7. Immediately after the Mermaid code block, output:- I have checked that the Mermaid syntax fully complies with the validation checklist.-------### Checklist Details--#### Rule 1: Edge Labels – Must Be Plain Text Only--> **Essence:** Anything inside `|...|` must contain pure, unformatted text. Absolutely NO Markdown, list markers, or parentheses/brackets allowed—these often cause rendering failures.--- **✅ Do:** `A -->|Process plain text data| B`-- **❌ Don't:** `A -->|1. Ordered list item| B` (No numbered lists)-- **❌ Don't:** `CC --"1. fetch('/api/...')"--> API` (No square brackets)-- **❌ Don't:** `A -->|- Unordered list item| B` (No hyphen lists)-- **❌ Don't:** `A -->|Transform (important)| B` (No parentheses)-- **❌ Don't:** `A -->|Transform [important]| B` (No square brackets)--#### Rule 2: Node Definition – Handle Special Characters with Care--> **Essence:** When node text or subgraph titles contain special characters like `()` or `[]`, wrap the text in quotes to avoid conflicts with Mermaid shape syntax.--- **When your node text includes parentheses (e.g., 'React (JSX)'):**- - **✅ Do:** `I_REACT["<b>React component (JSX)</b>"]` (Quotes wrap all text)- - **❌ Don't:** `I_REACT(<b>React component (JSX)</b>)` (Wrong, Mermaid parses this as a shape)- - **❌ Don't:** `subgraph Plugin Features (Plugins)` (Wrong, subgraph titles with parentheses must also be wrapped in quotes)--#### Rule 3: Double Quotes in Text – Must Be Escaped--> **Essence:** Use `"` for double quotes **inside node text**.--- **✅ Do:** `A[This node contains "quotes"]`-- **❌ Don't:** `A[This node contains "quotes"]`--#### Rule 4: All Formatting Must Use HTML Tags (NOT Markdown!)--> **Essence:** For newlines, bold, and other text formatting in nodes, use HTML tags only. Markdown is not supported.--- **✅ Do (robust):** `A["<b>Bold</b> and <code>code</code><br>This is a new line"]`-- **❌ Don't (not rendered):** `C["# This is a heading"]`-- **❌ Don't (not rendered):** ``C["`const` means constant"]``-- **⚠️ Warning (unreliable):** `B["Markdown **bold** might sometimes work but DON'T rely on it"]`--#### Rule 5: No HTML Tags for Participants and Message Labels (Sequence Diagrams)--> **Important Addition:**-> In Mermaid sequence diagrams, you MUST NOT use any HTML tags (such as `<b>`, `<code>`, etc.) in:->-> - `participant` display names (`as` part)-> - Message labels (the text after `:` in diagram flows)->-> These tags are generally not rendered—they may appear as-is or cause compatibility issues.--- **✅ Do:** `participant A as Client`-- **❌ Don't:** `participant A as <b>Client</b>`-- **✅ Do:** `A->>B: 1. Establish connection`-- **❌ Don't:** `A->>B: 1. <code>Establish connection</code>`-------**Validate each Mermaid code block by running it through the `validateMermaid` tool before delivering your output!**diff --git a/.cursor/rules/project-introduce.mdc b/.cursor/rules/project-introduce.mdcindex 448c42428c9..2d31a502f8e 100644--- a/.cursor/rules/project-introduce.mdc+++ b/.cursor/rules/project-introduce.mdc@@ -43,16 +43,16 @@ The project uses the following technologies:Note: All tools and libraries used are the latest versions. The application only needs to be compatible with the latest browsers;-## Often used npm scripts+## Often used npm scripts and commands```bash+# !: don't any build script to check weather code can work after modify# type check-bun type-check+bun run type-check# install dependenciespnpm install-# !: don't any build script to check weather code can work after modify+# run tests+npx vitest run --config vitest.config.ts '[file-path-pattern]'```--check [testing guide](./testing-guide/testing-guide.mdc) to learn test scripts.diff --git a/.cursor/rules/react-component.mdc b/.cursor/rules/react-component.mdcindex b40ddaa24fe..5e776b08d43 100644--- a/.cursor/rules/react-component.mdc+++ b/.cursor/rules/react-component.mdc@@ -3,6 +3,7 @@ description:globs: *.tsxalwaysApply: false---+# react component 编写指南- 如果要写复杂样式的话用 antd-style ,简单的话可以用 style 属性直接写内联样式@@ -20,18 +21,20 @@ import { useTheme } from 'antd-style';const MyComponent = () => {const theme = useTheme();-+return (- <div style={{- color: theme.colorPrimary,- backgroundColor: theme.colorBgContainer,- padding: theme.padding,- borderRadius: theme.borderRadius- }}>+ <div+ style={{+ color: theme.colorPrimary,+ backgroundColor: theme.colorBgContainer,+ padding: theme.padding,+ borderRadius: theme.borderRadius,+ }}+ >使用主题 token 的组件</div>);-}+};```#### 使用 antd-style 的 createStyles@@ -53,13 +56,13 @@ const useStyles = createStyles(({ css, token }) => {content: css`font-size: ${token.fontSize}px;line-height: ${token.lineHeight};- `+ `,};});const Card: FC<CardProps> = ({ title, content }) => {const { styles } = useStyles();-+return (<Flexbox className={styles.container}><div className={styles.title}>{title}</div>@@ -74,80 +77,96 @@ const Card: FC<CardProps> = ({ title, content }) => {请注意使用下面的 token 而不是 css 字面值。可以访问 https://ant.design/docs/react/customize-theme-cn 了解所有 token- 动画类- - token.motionDurationMid- - token.motionEaseInOut+ - token.motionDurationMid+ - token.motionEaseInOut- 包围盒属性- - token.paddingSM- - token.marginLG-+ - token.paddingSM+ - token.marginLG## Lobe UI 包含的组件- 不知道 @lobehub/ui 的组件怎么用,有哪些属性,就自己搜下这个项目其它地方怎么用的,不要瞎猜,大部分组件都是在 antd 的基础上扩展了属性- 具体用法不懂可以联网搜索,例如 ActionIcon 就爬取 https://ui.lobehub.com/components/action-icon+- 可以阅读 node_modules/@lobehub/ui/es/index.js 了解有哪些组件,每个组件的属性是什么- General- ActionIcon- ActionIconGroup- Block- Button- Icon+ - ActionIcon+ - ActionIconGroup+ - Block+ - Button+ - DownloadButton+ - Icon- Data Display- Avatar- Collapse- FileTypeIcon- FluentEmoji- GuideCard- Highlighter- Hotkey- Image- List- Markdown- MaterialFileTypeIcon- Mermaid- Segmented- Snippet- SortableList- Tag- Tooltip- Video+ - Avatar+ - AvatarGroup+ - GroupAvatar+ - Collapse+ - FileTypeIcon+ - FluentEmoji+ - GuideCard+ - Highlighter+ - Hotkey+ - Image+ - List+ - Markdown+ - SearchResultCards+ - MaterialFileTypeIcon+ - Mermaid+ - Typography+ - Text+ - Segmented+ - Snippet+ - SortableList+ - Tag+ - Tooltip+ - Video- Data Entry- AutoComplete- CodeEditor- ColorSwatches- CopyButton- DatePicker- EditableText- EmojiPicker- Form- FormModal- HotkeyInput- ImageSelect- Input- SearchBar- Select- SliderWithInput- ThemeSwitch+ - AutoComplete+ - CodeEditor+ - ColorSwatches+ - CopyButton+ - DatePicker+ - EditableText+ - EmojiPicker+ - Form+ - FormModal+ - HotkeyInput+ - ImageSelect+ - Input+ - SearchBar+ - Select+ - SliderWithInput+ - ThemeSwitch- Feedback- Alert- Drawer- Modal+ - Alert+ - Drawer+ - Modal- Layout- DraggablePanel- Footer- Grid- Header- Layout- MaskShadow- ScrollShadow+ - DraggablePanel+ - DraggablePanelBody+ - DraggablePanelContainer+ - DraggablePanelFooter+ - DraggablePanelHeader+ - Footer+ - Grid+ - Header+ - Layout+ - LayoutFooter+ - LayoutHeader+ - LayoutMain+ - LayoutSidebar+ - LayoutSidebarInner+ - LayoutToc+ - MaskShadow+ - ScrollShadow- Navigation- Burger- Dropdown- Menu- SideNav- Tabs- Toc+ - Burger+ - Dropdown+ - Menu+ - SideNav+ - Tabs+ - Toc- Theme- ConfigProvider- FontLoader- ThemeProvider\ No newline at end of file+ - ConfigProvider+ - FontLoader+ - ThemeProviderdiff --git a/.cursor/rules/rules-attach.mdc b/.cursor/rules/rules-attach.mdcindex 18cb12acd90..0850e5d3920 100644--- a/.cursor/rules/rules-attach.mdc+++ b/.cursor/rules/rules-attach.mdc@@ -4,82 +4,49 @@ globs:alwaysApply: true----# LobeChat Cursor Rules System Guide+# 📋 Available Rules Index-This document explains how the LobeChat project's Cursor rules system works and serves as an index for manually accessible rules.--## 🎯 Core Principle--**All rules are equal** - there are no priorities or "recommendations" between different rule sources. You should follow all applicable rules simultaneously.--## 📚 Four Ways to Access Rules--### 1. **Always Applied Rules** - `always_applied_workspace_rules`--- **What**: Core project guidelines that are always active-- **Content**: Project tech stack, basic coding standards, output formatting rules-- **Access**: No tools needed - automatically provided in every conversation--### 2. **Dynamic Context Rules** - `cursor_rules_context`--- **What**: Rules automatically matched based on files referenced in the conversation-- **Trigger**: Only when user **explicitly @ mentions files** or **opens files in Cursor**-- **Content**: May include brief descriptions or full rule content, depending on relevance-- **Access**: No tools needed - automatically updated when files are referenced--### 3. **Agent Requestable Rules** - `agent_requestable_workspace_rules`--- **What**: Detailed operational guides that can be requested on-demand-- **Access**: Use `fetch_rules` tool with rule names-- **Examples**: `debug`, `i18n/i18n`, `code-review`--### 4. **Manual Rules Index** - This file + `read_file`--- **What**: Additional rules not covered by the above mechanisms-- **Why needed**: Cursor's rule system only supports "agent request" or "auto attach" modes-- **Access**: Use `read_file` tool to read specific `.mdc` files--## 🔧 When to Use `read_file` for Rules--Use `read_file` to access rules from the index below when:+The following rules are available via `read_file` from the `.cursor/rules/` directory:-1. **Gap identification**: You determine a rule is needed for the current task-2. **No auto-trigger**: The rule isn't provided in `cursor_rules_context` (because relevant files weren't @ mentioned)-3. **Not agent-requestable**: The rule isn't available via `fetch_rules`+## General-## 📋 Available Rules Index+- `project-introduce.mdc` – Project description and tech stack+- `cursor-rules.mdc` – Cursor rules authoring and optimization guide+- `code-review.mdc` – How to code review-The following rules are available via `read_file` from the `.cursor/rules/` directory:+## Backend- `backend-architecture.mdc` – Backend layer architecture and design guidelines- `define-database-model.mdc` – Database model definition guidelines- `drizzle-schema-style-guide.mdc` – Style guide for defining Drizzle ORM schemas++## Frontend+- `react-component.mdc` – React component style guide and conventions-- `testing-guide.mdc` – Comprehensive testing guide for Vitest environment+- `i18n.mdc` – Internationalization guide using react-i18next- `typescript.mdc` – TypeScript code style guide+- `packages/react-layout-kit.mdc` – Usage guide for react-layout-kit++## State Management+- `zustand-action-patterns.mdc` – Recommended patterns for organizing Zustand actions- `zustand-slice-organization.mdc` – Best practices for structuring Zustand slices-## ❌ Common Misunderstandings to Avoid--1. **"Priority confusion"**: There's no hierarchy between rule sources - they're complementary, not competitive-2. **"Dynamic expectations"**: `cursor_rules_context` only updates when you @ files - it won't automatically include rules for tasks you're thinking about-3. **"Tool redundancy"**: Each access method serves a different purpose - they're not alternatives to choose from+## Desktop (Electron)-## 🛠️ Practical Workflow+- `desktop-feature-implementation.mdc` – Implementing new Electron desktop features+- `desktop-controller-tests.mdc` – Desktop controller unit testing guide+- `desktop-local-tools-implement.mdc` – Workflow to add new desktop local tools+- `desktop-menu-configuration.mdc` – Desktop menu configuration guide+- `desktop-window-management.mdc` – Desktop window management guide-```-1. Start with always_applied_workspace_rules (automatic)-2. Check cursor_rules_context for auto-matched rules (automatic)-3. If you need specific guides: fetch_rules (manual)-4. If you identify gaps: consult this index → read_file (manual)-```+## Debugging-## Example Decision Flow+- `debug.mdc` – General debugging guide+- `debug-usage.mdc` – Using the debug package and namespace conventions-**Scenario**: Working on a new Zustand store slice+## Testing-1. Follow always_applied_workspace_rules ✅-2. If store files were @ mentioned → use cursor_rules_context rules ✅-3. Need detailed Zustand guidance → `read_file('.cursor/rules/zustand-slice-organization.mdc')` ✅-4. All rules apply simultaneously - no conflicts ✅+- `testing-guide/testing-guide.mdc` – Comprehensive testing guide for Vitest+- `testing-guide/electron-ipc-test.mdc` – Electron IPC interface testing strategy+- `testing-guide/db-model-test.mdc` – Database Model testing guidediff --git a/.cursor/rules/system-role.mdc b/.cursor/rules/system-role.mdcindex 90c46c63231..636e11c8f35 100644--- a/.cursor/rules/system-role.mdc+++ b/.cursor/rules/system-role.mdc@@ -6,38 +6,26 @@ alwaysApply: true## System Role-You are an expert in full-stack Web development, proficient in JavaScript, TypeScript, CSS, React, Node.js, Next.js, Postgresql, all kinds of network protocols.+You are an expert in full-stack Web development, proficient in JavaScript, TypeScript, CSS, React, Node.js, Next.js, Postgresql, Redis, S3, all kinds of network protocols.-You are an expert in LLM and Ai art. In Ai image generation, you are proficient in Stable Diffusion and ComfyUI's architectural principles, workflows, model structures, parameter configurations, training methods, and inference optimization.+You are an LLM expert, you are familiar with all kinds of LLM models, ai agents, ai workflow, prompt engineering and context engineering.++You are an expert in Ai art. In Ai image generation, you are proficient in Stable Diffusion and ComfyUI's architectural principles, workflows, model structures, parameter configurations, training methods, and inference optimization.You are an expert in UI/UX design, proficient in web interaction patterns, responsive design, accessibility, and user behavior optimization. You excel at improving user retention and paid conversion rates through various interaction details.## Problem Solving-- Before formulating any response, you must first gather context by using tools like codebase_search, grep_search, file_search, web_search, fetch_rules, context7, and read_file to avoid making assumptions.- When modifying existing code, clearly describe the differences and reasons for the changes- Provide alternative solutions that may be better overall or superior in specific aspects- Provide optimization suggestions for deprecated API usage- Cite sources whenever possible at the end, not inline- When you provide multiple solutions, provide the recommended solution first, and note it as `Recommended`-- Express uncertainty when there might not be a correct answer-- Admit when you don't know something instead of guessing+- Express uncertainty when there might not be a correct answer, instead of take action by guessing and assuming## Code Implementation-- Write correct, up-to-date, bug-free, fully functional, secure, maintainable and efficient code-- First, think step-by-step: describe your plan in detailed pseudocode before implementation-- Confirm the plan before writing code- Focus on maintainable over being performant-- Leave NO TODOs, placeholders, or missing pieces-- Be sure to reference file names-- When you notice I have manually modified the code, that was definitely on purpose and do not revert them-- If documentation links or required files are missing, ask for them before proceeding with the task rather than making assumptions-- If you're unable to access or retrieve content from websites, please inform me immediately and request the specific information needed rather than making assumptions-- You can use emojis, npm packages like `chalk`/`chalk-animation`/`terminal-link`/`gradient-string`/`log-symbols`/`boxen`/`consola`/`@clack/prompts` to create beautiful terminal output-- Don't run `tsc --noEmit` to check ts syntax error, because our project is very large and the validate very slow--## Some logging rules--- Never log user private information like api key, etc-- Don't use `import { log } from 'debug'` to log messages, because it will directly log the message to the console.+- Be sure to reference file path+- If doc links or required files are missing, ask for them before proceeding with the task rather than making assumptions+- If you're unable to get valid result when using tools, please clearly state in the outputdiff --git a/.cursor/rules/typescript.mdc b/.cursor/rules/typescript.mdcindex ab7986b607b..4d6de42bee4 100644--- a/.cursor/rules/typescript.mdc+++ b/.cursor/rules/typescript.mdc@@ -1,21 +1,62 @@----description:+description: TypeScript code style and optimization guidelinesglobs: *.ts,*.tsx,*.mtsalwaysApply: false----TypeScript Code Style Guide:+# TypeScript Code Style Guide++## Types and Type Safety- Avoid explicit type annotations when TypeScript can infer types.-- Avoid defining `any` type variables (e.g., `let a: number;` instead of `let a;`).-- Use the most accurate type possible (e.g., use `Record<PropertyKey, unknown>` instead of `object`).-- Prefer `interface` over `type` (e.g., define react component props).-- Use `as const satisfies XyzInterface` instead of `as const` when suitable-- import index.ts module(directory module) like `@/db/index` instead of `@/db`-- Instead of calling Date.now() multiple times, assign it to a constant once and reuse it. This ensures consistency and improves readability-- Always refactor repeated logic into a reusable function-- Don't remove meaningful code comments, be sure to keep original comments when providing applied code-- Update the code comments when needed after you modify the related code-- Please respect my prettier preferences when you provide code-- Prefer object destructuring when accessing and using properties-- Prefer async version api than sync version, eg: use readFile from 'fs/promises' instead of 'fs'+- Avoid implicitly `any` variables; explicitly type when necessary (e.g., `let a: number` instead of `let a`).+- Use the most accurate type possible (e.g., prefer `Record<PropertyKey, unknown>` over `object`).+- Prefer `interface` over `type` for object shapes (e.g., React component props). Keep `type` for unions, intersections, and utility types.+- Prefer `as const satisfies XyzInterface` over plain `as const` when suitable.++## Imports and Modules++- When importing a directory module, prefer the explicit index path like `@/db/index` instead of `@/db`.++## Asynchronous Patterns and Concurrency++- Prefer `async`/`await` over callbacks or chained `.then` promises.+- Prefer async APIs over sync ones (avoid `*Sync`).+- Prefer promise-based variants (e.g., `import { readFile } from 'fs/promises'`) over callback-based APIs from `fs`.+- Where safe, convert sequential async flows to concurrent ones with `Promise.all`, `Promise.race`, etc.++## Code Structure and Readability++- Refactor repeated logic into reusable functions.+- Prefer object destructuring when accessing and using properties.+- Use consistent, descriptive naming; avoid obscure abbreviations.+- Use semantically meaningful variable, function, and class names.+- Replace magic numbers or strings with well-named constants.+- Keep meaningful code comments; do not remove them when applying edits. Update comments when behavior changes.+- Ensure JSDoc comments accurately reflect the implementation.+- Look for opportunities to simplify or modernize code with the latest JavaScript/TypeScript features where it improves clarity.+- Defer formatting to tooling; ignore purely formatting-only issues and autofixable lint problems.+- Respect project Prettier settings.++## UI and Theming++- Use components from `@lobehub/ui`, Ant Design, or existing design system components instead of raw HTML tags (e.g., `Button` vs. `button`).+- Design for dark mode and mobile responsiveness:+ - Use the `antd-style` token system instead of hard-coded colors.+ - Select appropriate component variants.++## Performance++- Prefer `for…of` loops to index-based `for` loops when feasible.+- Decide whether callbacks should be debounced or throttled based on UX and performance needs.+- Reuse existing npm packages rather than reinventing the wheel (e.g., `lodash-es/omit`).+- Query only the required columns from a database rather than selecting entire rows.++## Time and Consistency++- Instead of calling `Date.now()` multiple times, assign it to a constant once and reuse it to ensure consistency and improve readability.++## Some logging rules++- Never log user private information like api key, etc+- Don't use `import { log } from 'debug'` to log messages, because it will directly log the message to the console.diff --git a/packages/types/src/aiModel.ts b/packages/types/src/aiModel.tsindex 6b4d383079c..2c3b6a5701b 100644--- a/packages/types/src/aiModel.ts+++ b/packages/types/src/aiModel.ts@@ -107,6 +107,65 @@ export interface ChatModelPricing extends BasicModelPricing {writeCacheInput?: number;}+// New pricing system types+export type PricingUnitName =+ // Text-based pricing units+ | 'textInput' // corresponds to ChatModelPricing.input+ | 'textOutput' // corresponds to ChatModelPricing.output+ | 'textInput_cacheRead' // corresponds to ChatModelPricing.cachedInput+ | 'textInput_cacheWrite' // corresponds to ChatModelPricing.writeCacheInput++ // Audio-based pricing units+ | 'audioInput' // corresponds to ChatModelPricing.audioInput+ | 'audioOutput' // corresponds to ChatModelPricing.audioOutput+ | 'audioInput_cacheRead' // corresponds to ChatModelPricing.cachedAudioInput++ // Image-based pricing units+ | 'imageGeneration'; // for image generation models++export type PricingUnitType =+ | 'millionTokens' // per 1M tokens+ | 'millionCharacters' // per 1M characters+ | 'image' // per image+ | 'megapixel' // per megapixel+ | 'second'; // per second++export type PricingStrategy = 'fixed' | 'tiered' | 'lookup';++export interface PricingUnitBase {+ name: PricingUnitName;+ strategy: PricingStrategy;+ unit: PricingUnitType;+}++export interface FixedPricingUnit extends PricingUnitBase {+ rate: number;+ strategy: 'fixed';+}++export interface TieredPricingUnit extends PricingUnitBase {+ strategy: 'tiered';+ tiers: Array<{+ rate: number;+ upTo: number | 'infinity';+ }>;+}++export interface LookupPricingUnit extends PricingUnitBase {+ lookup: {+ prices: Record<string, number>;+ pricingParams: string[];+ };+ strategy: 'lookup';+}++export type PricingUnit = FixedPricingUnit | TieredPricingUnit | LookupPricingUnit;++export interface Pricing {+ currency?: ModelPriceCurrency;+ units: PricingUnit[];+}+export interface AIBaseModelCard {/*** the context window (or input + output tokens limit)@@ -167,69 +226,31 @@ export interface AIChatModelCard extends AIBaseModelCard {abilities?: ModelAbilities;config?: AiModelConfig;maxOutput?: number;- pricing?: ChatModelPricing;+ pricing?: Pricing;settings?: AiModelSettings;type: 'chat';}export interface AIEmbeddingModelCard extends AIBaseModelCard {maxDimension: number;- pricing?: {- /**- * the currency of the pricing- * @default USD- */- currency?: ModelPriceCurrency;- /**- * the input pricing, e.g. $1 / 1M tokens- */- input?: number;- };+ pricing?: Pricing;type: 'embedding';}export interface AIImageModelCard extends AIBaseModelCard {parameters?: ModelParamsSchema;- pricing?: {- /**- * the currency of the pricing- * @default USD- */- currency?: ModelPriceCurrency;- } & Record<string, number>;+ pricing?: Pricing;resolutions?: string[];type: 'image';}export interface AITTSModelCard extends AIBaseModelCard {- pricing?: {- /**- * the currency of the pricing- * @default USD- */- currency?: ModelPriceCurrency;- /**- * the input pricing, e.g. $1 / 1M tokens- */- input?: number;- output?: number;- };+ pricing?: Pricing;type: 'tts';}export interface AISTTModelCard extends AIBaseModelCard {- pricing?: {- /**- * the currency of the pricing- * @default USD- */- currency?: ModelPriceCurrency;- /**- * the input pricing, e.g. $1 / 1M tokens- */- input?: number;- output?: number;- };+ pricing?: Pricing;type: 'stt';}@@ -257,7 +278,7 @@ export interface AIRealtimeModelCard extends AIBaseModelCard {*/deploymentName?: string;maxOutput?: number;- pricing?: ChatModelPricing;+ pricing?: Pricing;type: 'realtime';}@@ -269,7 +290,7 @@ export interface AiFullModelCard extends AIBaseModelCard {id: string;maxDimension?: number;parameters?: ModelParamsSchema;- pricing?: ChatModelPricing;+ pricing?: Pricing;type: AiModelType;}@@ -304,7 +325,7 @@ export interface AiProviderModelListItem {enabled: boolean;id: string;parameters?: Record<string, any>;- pricing?: ChatModelPricing;+ pricing?: Pricing;releasedAt?: string;settings?: AiModelSettings;source?: AiModelSourceType;diff --git a/packages/types/src/llm.ts b/packages/types/src/llm.tsindex 8556862d4c6..c080f0dc796 100644--- a/packages/types/src/llm.ts+++ b/packages/types/src/llm.ts@@ -1,7 +1,7 @@import { ReactNode } from 'react';-import { AiModelType, ChatModelPricing } from './aiModel';-import { AiProviderSettings } from './aiProvider';+import { AiModelType, Pricing } from '@/types/aiModel';+import { AiProviderSettings } from '@/types/aiProvider';export type ModelPriceCurrency = 'CNY' | 'USD';@@ -41,7 +41,7 @@ export interface ChatModelCard {*/legacy?: boolean;maxOutput?: number;- pricing?: ChatModelPricing;+ pricing?: Pricing;/*** whether model supports reasoningdiff --git a/src/app/[variants]/(main)/discover/(detail)/model/[...slugs]/features/Details/Overview/ProviderList/index.tsx b/src/app/[variants]/(main)/discover/(detail)/model/[...slugs]/features/Details/Overview/ProviderList/index.tsxindex 7dc43865bdf..d57d176fdb7 100644--- a/src/app/[variants]/(main)/discover/(detail)/model/[...slugs]/features/Details/Overview/ProviderList/index.tsx+++ b/src/app/[variants]/(main)/discover/(detail)/model/[...slugs]/features/Details/Overview/ProviderList/index.tsx@@ -14,6 +14,7 @@ import InlineTable from '@/components/InlineTable';import { ModelInfoTags } from '@/components/ModelSelect';import { BASE_PROVIDER_DOC_URL } from '@/const/url';import { formatPriceByCurrency, formatTokenNumber } from '@/utils/format';+import { getTextInputUnitRate, getTextOutputUnitRate } from '@/utils/pricing';import { useDetailContext } from '../../../DetailProvider';@@ -89,12 +90,17 @@ const ProviderList = memo(() => {{dataIndex: 'model.inputPrice',key: 'inputPrice',- render: (_, record) =>- record.model?.pricing?.input- ? '$' +- formatPriceByCurrency(record.model.pricing.input, record.model.pricing?.currency)- : '--',- sorter: (a, b) => (a.model?.pricing?.input || 0) - (b.model?.pricing?.input || 0),+ render: (_, record) => {+ const inputRate = getTextInputUnitRate(record.model?.pricing);+ return inputRate+ ? '$' + formatPriceByCurrency(inputRate, record.model.pricing?.currency)+ : '--';+ },+ sorter: (a, b) => {+ const aRate = getTextInputUnitRate(a.model?.pricing) || 0;+ const bRate = getTextInputUnitRate(b.model?.pricing) || 0;+ return aRate - bRate;+ },title: (<Tooltip title={t('models.providerInfo.inputTooltip')}>{t('models.providerInfo.input')}@@ -105,12 +111,17 @@ const ProviderList = memo(() => {{dataIndex: 'model.outputPrice',key: 'outputPrice',- render: (_, record) =>- record.model?.pricing?.output- ? '$' +- formatPriceByCurrency(record.model.pricing.output, record.model.pricing?.currency)- : '--',- sorter: (a, b) => (a.model?.pricing?.output || 0) - (b.model?.pricing?.output || 0),+ render: (_, record) => {+ const outputRate = getTextOutputUnitRate(record.model?.pricing);+ return outputRate+ ? '$' + formatPriceByCurrency(outputRate, record.model.pricing?.currency)+ : '--';+ },+ sorter: (a, b) => {+ const aRate = getTextOutputUnitRate(a.model?.pricing) || 0;+ const bRate = getTextOutputUnitRate(b.model?.pricing) || 0;+ return aRate - bRate;+ },title: (<Tooltip title={t('models.providerInfo.outputTooltip')}>{t('models.providerInfo.output')}diff --git a/src/app/[variants]/(main)/discover/(detail)/provider/[...slugs]/features/Details/Overview/ModelList/index.tsx b/src/app/[variants]/(main)/discover/(detail)/provider/[...slugs]/features/Details/Overview/ModelList/index.tsxindex 9b91e68a618..aa6414a84f3 100644--- a/src/app/[variants]/(main)/discover/(detail)/provider/[...slugs]/features/Details/Overview/ModelList/index.tsx+++ b/src/app/[variants]/(main)/discover/(detail)/provider/[...slugs]/features/Details/Overview/ModelList/index.tsx@@ -13,6 +13,7 @@ import urlJoin from 'url-join';import InlineTable from '@/components/InlineTable';import { ModelInfoTags } from '@/components/ModelSelect';import { formatPriceByCurrency, formatTokenNumber } from '@/utils/format';+import { getTextInputUnitRate, getTextOutputUnitRate } from '@/utils/pricing';import { useDetailContext } from '../../../DetailProvider';@@ -82,11 +83,17 @@ const ModelList = memo(() => {{dataIndex: 'inputPrice',key: 'inputPrice',- render: (_, record) =>- record.pricing?.input- ? '$' + formatPriceByCurrency(record.pricing.input, record.pricing?.currency)- : '--',- sorter: (a, b) => (a.pricing?.input || 0) - (b.pricing?.input || 0),+ render: (_, record) => {+ const inputRate = getTextInputUnitRate(record.pricing);+ return inputRate+ ? '$' + formatPriceByCurrency(inputRate, record.pricing?.currency)+ : '--';+ },+ sorter: (a, b) => {+ const aRate = getTextInputUnitRate(a.pricing) || 0;+ const bRate = getTextInputUnitRate(b.pricing) || 0;+ return aRate - bRate;+ },title: (<Tooltip title={t('models.providerInfo.inputTooltip')}>{t('models.providerInfo.input')}@@ -97,11 +104,17 @@ const ModelList = memo(() => {{dataIndex: 'outputPrice',key: 'outputPrice',- render: (_, record) =>- record.pricing?.output- ? '$' + formatPriceByCurrency(record.pricing.output, record.pricing?.currency)- : '--',- sorter: (a, b) => (a.pricing?.output || 0) - (b.pricing?.output || 0),+ render: (_, record) => {+ const outputRate = getTextOutputUnitRate(record.pricing);+ return outputRate+ ? '$' + formatPriceByCurrency(outputRate, record.pricing?.currency)+ : '--';+ },+ sorter: (a, b) => {+ const aRate = getTextOutputUnitRate(a.pricing) || 0;+ const bRate = getTextOutputUnitRate(b.pricing) || 0;+ return aRate - bRate;+ },title: (<Tooltip title={t('models.providerInfo.outputTooltip')}>{t('models.providerInfo.output')}diff --git a/src/app/[variants]/(main)/settings/provider/features/ModelList/ModelItem.tsx b/src/app/[variants]/(main)/settings/provider/features/ModelList/ModelItem.tsxindex 7a4c396b764..978d8a9765c 100644--- a/src/app/[variants]/(main)/settings/provider/features/ModelList/ModelItem.tsx+++ b/src/app/[variants]/(main)/settings/provider/features/ModelList/ModelItem.tsx@@ -10,8 +10,13 @@ import { Flexbox } from 'react-layout-kit';import { ModelInfoTags } from '@/components/ModelSelect';import { useIsMobile } from '@/hooks/useIsMobile';import { aiModelSelectors, useAiInfraStore } from '@/store/aiInfra';-import { AiModelSourceEnum, AiProviderModelListItem, ChatModelPricing } from '@/types/aiModel';+import { AiModelSourceEnum, AiProviderModelListItem } from '@/types/aiModel';import { formatPriceByCurrency } from '@/utils/format';+import {+ getAudioInputUnitRate,+ getTextInputUnitRate,+ getTextOutputUnitRate,+} from '@/utils/pricing';import ModelConfigModal from './ModelConfigModal';import { ProviderSettingsContext } from './ProviderSettingsContext';@@ -54,7 +59,6 @@ interface ModelItemProps extends AiProviderModelListItem {enabled: boolean;id: string;isAzure?: boolean;- pricing?: ChatModelPricing;releasedAt?: string;removed?: boolean;}@@ -94,38 +98,43 @@ const ModelItem = memo<ModelItemProps>(switch (type) {case 'chat': {+ const inputRate = getTextInputUnitRate(pricing);+ const outputRate = getTextOutputUnitRate(pricing);return [- typeof pricing.input === 'number' &&+ typeof inputRate === 'number' &&t('providerModels.item.pricing.inputTokens', {- amount: formatPriceByCurrency(pricing.input, pricing?.currency),+ amount: formatPriceByCurrency(inputRate, pricing?.currency),}),- typeof pricing.output === 'number' &&+ typeof outputRate === 'number' &&t('providerModels.item.pricing.outputTokens', {- amount: formatPriceByCurrency(pricing.output, pricing?.currency),+ amount: formatPriceByCurrency(outputRate, pricing?.currency),}),].filter(Boolean) as string[];}case 'embedding': {+ const inputRate = getTextInputUnitRate(pricing);return [- typeof pricing.input === 'number' &&+ typeof inputRate === 'number' &&t('providerModels.item.pricing.inputTokens', {- amount: formatPriceByCurrency(pricing.input, pricing?.currency),+ amount: formatPriceByCurrency(inputRate, pricing?.currency),}),].filter(Boolean) as string[];}case 'tts': {+ const inputRate = getAudioInputUnitRate(pricing);return [- typeof pricing.input === 'number' &&+ typeof inputRate === 'number' &&t('providerModels.item.pricing.inputCharts', {- amount: formatPriceByCurrency(pricing.input, pricing?.currency),+ amount: formatPriceByCurrency(inputRate, pricing?.currency),}),].filter(Boolean) as string[];}case 'stt': {+ const inputRate = getAudioInputUnitRate(pricing);return [- typeof pricing.input === 'number' &&+ typeof inputRate === 'number' &&t('providerModels.item.pricing.inputMinutes', {- amount: formatPriceByCurrency(pricing.input, pricing?.currency),+ amount: formatPriceByCurrency(inputRate, pricing?.currency),}),].filter(Boolean) as string[];}diff --git a/src/config/aiModels/ai21.ts b/src/config/aiModels/ai21.tsindex 38c5199105b..66a652d69ea 100644--- a/src/config/aiModels/ai21.ts+++ b/src/config/aiModels/ai21.ts@@ -11,8 +11,10 @@ const ai21ChatModels: AIChatModelCard[] = [enabled: true,id: 'jamba-mini',pricing: {- input: 0.2,- output: 0.4,+ units: [+ { name: 'textInput', rate: 0.2, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 0.4, strategy: 'fixed', unit: 'millionTokens' },+ ],},releasedAt: '2025-03-06',type: 'chat',@@ -27,8 +29,10 @@ const ai21ChatModels: AIChatModelCard[] = [enabled: true,id: 'jamba-large',pricing: {- input: 2,- output: 8,+ units: [+ { name: 'textInput', rate: 2, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 8, strategy: 'fixed', unit: 'millionTokens' },+ ],},releasedAt: '2025-03-06',type: 'chat',diff --git a/src/config/aiModels/ai360.ts b/src/config/aiModels/ai360.tsindex 7d2fcd5122c..d24b81853fe 100644--- a/src/config/aiModels/ai360.ts+++ b/src/config/aiModels/ai360.ts@@ -13,8 +13,10 @@ const ai360ChatModels: AIChatModelCard[] = [id: '360zhinao2-o1',pricing: {currency: 'CNY',- input: 4,- output: 10,+ units: [+ { name: 'textInput', rate: 4, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 10, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -29,8 +31,10 @@ const ai360ChatModels: AIChatModelCard[] = [id: '360gpt2-o1',pricing: {currency: 'CNY',- input: 4,- output: 10,+ units: [+ { name: 'textInput', rate: 4, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 10, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -46,8 +50,10 @@ const ai360ChatModels: AIChatModelCard[] = [id: '360gpt2-pro',pricing: {currency: 'CNY',- input: 2,- output: 5,+ units: [+ { name: 'textInput', rate: 2, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 5, strategy: 'fixed', unit: 'millionTokens' },+ ],},settings: {searchImpl: 'params',@@ -65,8 +71,10 @@ const ai360ChatModels: AIChatModelCard[] = [id: '360gpt-pro',pricing: {currency: 'CNY',- input: 2,- output: 5,+ units: [+ { name: 'textInput', rate: 2, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 5, strategy: 'fixed', unit: 'millionTokens' },+ ],},settings: {searchImpl: 'params',@@ -80,8 +88,10 @@ const ai360ChatModels: AIChatModelCard[] = [id: '360gpt-pro-trans',pricing: {currency: 'CNY',- input: 2,- output: 5,+ units: [+ { name: 'textInput', rate: 2, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 5, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -93,8 +103,10 @@ const ai360ChatModels: AIChatModelCard[] = [id: '360gpt-turbo',pricing: {currency: 'CNY',- input: 1,- output: 2,+ units: [+ { name: 'textInput', rate: 1, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 2, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -109,8 +121,10 @@ const ai360ChatModels: AIChatModelCard[] = [id: '360/deepseek-r1',pricing: {currency: 'CNY',- input: 4,- output: 16,+ units: [+ { name: 'textInput', rate: 4, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 16, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},diff --git a/src/config/aiModels/aihubmix.ts b/src/config/aiModels/aihubmix.tsindex c9cf1710192..7109818fcd1 100644--- a/src/config/aiModels/aihubmix.ts+++ b/src/config/aiModels/aihubmix.ts@@ -17,9 +17,11 @@ const aihubmixModels: AIChatModelCard[] = [id: 'gpt-5',maxOutput: 128_000,pricing: {- cachedInput: 0.13,- input: 1.25,- output: 10,+ units: [+ { name: 'textInput', rate: 1.25, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 10, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textInput_cacheRead', rate: 0.13, strategy: 'fixed', unit: 'millionTokens' },+ ],},releasedAt: '2025-08-07',settings: {@@ -43,9 +45,11 @@ const aihubmixModels: AIChatModelCard[] = [id: 'gpt-5-mini',maxOutput: 128_000,pricing: {- cachedInput: 0.03,- input: 0.25,- output: 2,+ units: [+ { name: 'textInput', rate: 0.25, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 2, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textInput_cacheRead', rate: 0.03, strategy: 'fixed', unit: 'millionTokens' },+ ],},releasedAt: '2025-08-07',settings: {@@ -67,9 +71,11 @@ const aihubmixModels: AIChatModelCard[] = [id: 'gpt-5-nano',maxOutput: 128_000,pricing: {- cachedInput: 0.01,- input: 0.05,- output: 0.4,+ units: [+ { name: 'textInput', rate: 0.05, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 0.4, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textInput_cacheRead', rate: 0.01, strategy: 'fixed', unit: 'millionTokens' },+ ],},releasedAt: '2025-08-07',type: 'chat',@@ -86,9 +92,11 @@ const aihubmixModels: AIChatModelCard[] = [id: 'gpt-5-chat-latest',maxOutput: 128_000,pricing: {- cachedInput: 0.13,- input: 1.25,- output: 10,+ units: [+ { name: 'textInput', rate: 1.25, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 10, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textInput_cacheRead', rate: 0.13, strategy: 'fixed', unit: 'millionTokens' },+ ],},releasedAt: '2025-08-07',type: 'chat',@@ -108,9 +116,11 @@ const aihubmixModels: AIChatModelCard[] = [id: 'o4-mini',maxOutput: 100_000,pricing: {- cachedInput: 0.275,- input: 1.1,- output: 4.4,+ units: [+ { name: 'textInput', rate: 1.1, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 4.4, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textInput_cacheRead', rate: 0.275, strategy: 'fixed', unit: 'millionTokens' },+ ],},releasedAt: '2025-04-17',settings: {@@ -133,9 +143,11 @@ const aihubmixModels: AIChatModelCard[] = [id: 'o4-mini-deep-research',maxOutput: 100_000,pricing: {- cachedInput: 0.5,- input: 2,- output: 8,+ units: [+ { name: 'textInput', rate: 2, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 8, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textInput_cacheRead', rate: 0.5, strategy: 'fixed', unit: 'millionTokens' },+ ],},releasedAt: '2025-06-26',settings: {@@ -158,8 +170,10 @@ const aihubmixModels: AIChatModelCard[] = [id: 'o3-pro',maxOutput: 100_000,pricing: {- input: 20,- output: 80,+ units: [+ { name: 'textInput', rate: 20, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 80, strategy: 'fixed', unit: 'millionTokens' },+ ],},releasedAt: '2025-06-10',settings: {@@ -183,9 +197,11 @@ const aihubmixModels: AIChatModelCard[] = [id: 'o3',maxOutput: 100_000,pricing: {- cachedInput: 0.5,- input: 2,- output: 8,+ units: [+ { name: 'textInput', rate: 2, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 8, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textInput_cacheRead', rate: 0.5, strategy: 'fixed', unit: 'millionTokens' },+ ],},releasedAt: '2025-04-16',settings: {@@ -208,9 +224,11 @@ const aihubmixModels: AIChatModelCard[] = [id: 'o3-deep-research',maxOutput: 100_000,pricing: {- cachedInput: 2.5,- input: 10,- output: 40,+ units: [+ { name: 'textInput', rate: 10, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 40, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textInput_cacheRead', rate: 2.5, strategy: 'fixed', unit: 'millionTokens' },+ ],},releasedAt: '2025-06-26',settings: {@@ -231,9 +249,11 @@ const aihubmixModels: AIChatModelCard[] = [id: 'gpt-4.1',maxOutput: 32_768,pricing: {- cachedInput: 0.5,- input: 2,- output: 8,+ units: [+ { name: 'textInput', rate: 2, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 8, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textInput_cacheRead', rate: 0.5, strategy: 'fixed', unit: 'millionTokens' },+ ],},releasedAt: '2025-04-14',settings: {@@ -254,9 +274,11 @@ const aihubmixModels: AIChatModelCard[] = [id: 'gpt-4.1-mini',maxOutput: 32_768,pricing: {- cachedInput: 0.1,- input: 0.4,- output: 1.6,+ units: [+ { name: 'textInput', rate: 0.4, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 1.6, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textInput_cacheRead', rate: 0.1, strategy: 'fixed', unit: 'millionTokens' },+ ],},releasedAt: '2025-04-14',settings: {@@ -275,9 +297,11 @@ const aihubmixModels: AIChatModelCard[] = [id: 'gpt-4.1-nano',maxOutput: 32_768,pricing: {- cachedInput: 0.025,- input: 0.1,- output: 0.4,+ units: [+ { name: 'textInput', rate: 0.1, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 0.4, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textInput_cacheRead', rate: 0.025, strategy: 'fixed', unit: 'millionTokens' },+ ],},releasedAt: '2025-04-14',type: 'chat',@@ -292,8 +316,10 @@ const aihubmixModels: AIChatModelCard[] = [displayName: 'ChatGPT-4o',id: 'chatgpt-4o-latest',pricing: {- input: 5,- output: 15,+ units: [+ { name: 'textInput', rate: 5, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 15, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -309,9 +335,11 @@ const aihubmixModels: AIChatModelCard[] = [enabled: true,id: 'grok-3',pricing: {- cachedInput: 0.75,- input: 3,- output: 15,+ units: [+ { name: 'textInput', rate: 3, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 15, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textInput_cacheRead', rate: 0.75, strategy: 'fixed', unit: 'millionTokens' },+ ],},releasedAt: '2025-04-03',settings: {@@ -332,8 +360,10 @@ const aihubmixModels: AIChatModelCard[] = [enabled: true,id: 'grok-3-mini',pricing: {- input: 0.3,- output: 0.5,+ units: [+ { name: 'textInput', rate: 0.3, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 0.5, strategy: 'fixed', unit: 'millionTokens' },+ ],},releasedAt: '2025-04-03',settings: {@@ -357,10 +387,17 @@ const aihubmixModels: AIChatModelCard[] = [id: 'claude-opus-4-1-20250805',maxOutput: 32_000,pricing: {- cachedInput: 1.5,- input: 16.5,- output: 82.5,- writeCacheInput: 18.75,+ units: [+ { name: 'textInput', rate: 16.5, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 82.5, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textInput_cacheRead', rate: 1.5, strategy: 'fixed', unit: 'millionTokens' },+ {+ lookup: { prices: { '5m': 20.625 }, pricingParams: ['ttl'] },+ name: 'textInput_cacheWrite',+ strategy: 'lookup',+ unit: 'millionTokens',+ },+ ],},releasedAt: '2025-08-05',settings: {@@ -383,10 +420,17 @@ const aihubmixModels: AIChatModelCard[] = [id: 'claude-opus-4-20250514',maxOutput: 32_000,pricing: {- cachedInput: 1.5,- input: 16.8,- output: 84,- writeCacheInput: 18.75,+ units: [+ { name: 'textInput', rate: 16.8, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 84, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textInput_cacheRead', rate: 1.5, strategy: 'fixed', unit: 'millionTokens' },+ {+ lookup: { prices: { '5m': 20.625 }, pricingParams: ['ttl'] },+ name: 'textInput_cacheWrite',+ strategy: 'lookup',+ unit: 'millionTokens',+ },+ ],},releasedAt: '2025-05-23',settings: {@@ -410,10 +454,17 @@ const aihubmixModels: AIChatModelCard[] = [id: 'claude-sonnet-4-20250514',maxOutput: 64_000,pricing: {- cachedInput: 0.3,- input: 3.3,- output: 16.5,- writeCacheInput: 3.75,+ units: [+ { name: 'textInput', rate: 3.3, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 16.5, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textInput_cacheRead', rate: 0.3, strategy: 'fixed', unit: 'millionTokens' },+ {+ lookup: { prices: { '5m': 4.125 }, pricingParams: ['ttl'] },+ name: 'textInput_cacheWrite',+ strategy: 'lookup',+ unit: 'millionTokens',+ },+ ],},releasedAt: '2025-05-23',settings: {@@ -436,10 +487,17 @@ const aihubmixModels: AIChatModelCard[] = [id: 'claude-3-7-sonnet-20250219',maxOutput: 64_000,pricing: {- cachedInput: 0.3,- input: 3.3,- output: 16.5,- writeCacheInput: 3.75,+ units: [+ { name: 'textInput', rate: 3.3, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 16.5, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textInput_cacheRead', rate: 0.3, strategy: 'fixed', unit: 'millionTokens' },+ {+ lookup: { prices: { '5m': 4.125 }, pricingParams: ['ttl'] },+ name: 'textInput_cacheWrite',+ strategy: 'lookup',+ unit: 'millionTokens',+ },+ ],},releasedAt: '2025-02-24',settings: {@@ -460,10 +518,17 @@ const aihubmixModels: AIChatModelCard[] = [id: 'claude-3-5-haiku-20241022',maxOutput: 8192,pricing: {- cachedInput: 0.1,- input: 1.1,- output: 5.5,- writeCacheInput: 1.25,+ units: [+ { name: 'textInput', rate: 1.1, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 5.5, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textInput_cacheRead', rate: 0.1, strategy: 'fixed', unit: 'millionTokens' },+ {+ lookup: { prices: { '5m': 1.1 }, pricingParams: ['ttl'] },+ name: 'textInput_cacheWrite',+ strategy: 'lookup',+ unit: 'millionTokens',+ },+ ],},releasedAt: '2024-11-05',settings: {@@ -483,8 +548,10 @@ const aihubmixModels: AIChatModelCard[] = [enabled: true,id: 'DeepSeek-R1',pricing: {- input: 0.546,- output: 2.184,+ units: [+ { name: 'textInput', rate: 0.546, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 2.184, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -499,8 +566,10 @@ const aihubmixModels: AIChatModelCard[] = [displayName: 'DeepSeek R1 0528 (Azure)',id: 'azure-DeepSeek-R1-0528',pricing: {- input: 0.4,- output: 1.6,+ units: [+ { name: 'textInput', rate: 0.4, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 1.6, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -514,8 +583,10 @@ const aihubmixModels: AIChatModelCard[] = [enabled: true,id: 'DeepSeek-V3',pricing: {- input: 0.272,- output: 1.088,+ units: [+ { name: 'textInput', rate: 0.272, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 1.088, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -529,8 +600,10 @@ const aihubmixModels: AIChatModelCard[] = [displayName: 'DeepSeek V3 (Fast)',id: 'DeepSeek-V3-Fast',pricing: {- input: 0.55,- output: 2.2,+ units: [+ { name: 'textInput', rate: 0.55, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 2.2, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -549,8 +622,10 @@ const aihubmixModels: AIChatModelCard[] = [id: 'gemini-2.5-pro',maxOutput: 65_536,pricing: {- input: 1.25, // prompts <= 200k tokens- output: 10, // prompts <= 200k tokens+ units: [+ { name: 'textInput', rate: 1.25, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 10, strategy: 'fixed', unit: 'millionTokens' },+ ],},releasedAt: '2025-06-17',settings: {@@ -574,9 +649,11 @@ const aihubmixModels: AIChatModelCard[] = [id: 'gemini-2.5-flash',maxOutput: 65_536,pricing: {- cachedInput: 0.075,- input: 0.3,- output: 2.5,+ units: [+ { name: 'textInput', rate: 0.3, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 2.5, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textInput_cacheRead', rate: 0.075, strategy: 'fixed', unit: 'millionTokens' },+ ],},releasedAt: '2025-06-17',settings: {@@ -599,9 +676,11 @@ const aihubmixModels: AIChatModelCard[] = [id: 'gemini-2.5-flash-lite',maxOutput: 65_536,pricing: {- cachedInput: 0.025,- input: 0.1,- output: 0.4,+ units: [+ { name: 'textInput', rate: 0.1, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 0.4, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textInput_cacheRead', rate: 0.025, strategy: 'fixed', unit: 'millionTokens' },+ ],},releasedAt: '2025-07-22',settings: {@@ -626,8 +705,10 @@ const aihubmixModels: AIChatModelCard[] = [organization: 'Qwen',pricing: {currency: 'CNY',- input: 0.28,- output: 2.8,+ units: [+ { name: 'textInput', rate: 0.28, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 2.8, strategy: 'fixed', unit: 'millionTokens' },+ ],},releasedAt: '2025-07-25',type: 'chat',@@ -646,8 +727,10 @@ const aihubmixModels: AIChatModelCard[] = [organization: 'Qwen',pricing: {currency: 'CNY',- input: 0.28,- output: 1.12,+ units: [+ { name: 'textInput', rate: 0.28, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 1.12, strategy: 'fixed', unit: 'millionTokens' },+ ],},releasedAt: '2025-07-22',type: 'chat',@@ -667,8 +750,10 @@ const aihubmixModels: AIChatModelCard[] = [organization: 'Qwen',pricing: {currency: 'CNY',- input: 0.12,- output: 1.2,+ units: [+ { name: 'textInput', rate: 0.12, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 1.2, strategy: 'fixed', unit: 'millionTokens' },+ ],},releasedAt: '2025-07-30',type: 'chat',@@ -686,8 +771,11 @@ const aihubmixModels: AIChatModelCard[] = [maxOutput: 32_768,organization: 'Qwen',pricing: {- input: 0.12,- output: 0.48,+ currency: 'CNY',+ units: [+ { name: 'textInput', rate: 0.12, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 0.48, strategy: 'fixed', unit: 'millionTokens' },+ ],},releasedAt: '2025-07-29',type: 'chat',diff --git a/src/config/aiModels/anthropic.ts b/src/config/aiModels/anthropic.tsindex 1a75b7dadd5..ac52b2c29ce 100644--- a/src/config/aiModels/anthropic.ts+++ b/src/config/aiModels/anthropic.ts@@ -16,10 +16,17 @@ const anthropicChatModels: AIChatModelCard[] = [id: 'claude-opus-4-1-20250805',maxOutput: 32_000,pricing: {- cachedInput: 1.5,- input: 15,- output: 75,- writeCacheInput: 18.75,+ units: [+ { name: 'textInput_cacheRead', rate: 1.5, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textInput', rate: 15, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 75, strategy: 'fixed', unit: 'millionTokens' },+ {+ lookup: { prices: { '1h': 30, '5m': 18.75 }, pricingParams: ['ttl'] },+ name: 'textInput_cacheWrite',+ strategy: 'lookup',+ unit: 'millionTokens',+ },+ ],},releasedAt: '2025-08-05',settings: {@@ -42,10 +49,17 @@ const anthropicChatModels: AIChatModelCard[] = [id: 'claude-opus-4-20250514',maxOutput: 32_000,pricing: {- cachedInput: 1.5,- input: 15,- output: 75,- writeCacheInput: 18.75,+ units: [+ { name: 'textInput_cacheRead', rate: 1.5, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textInput', rate: 15, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 75, strategy: 'fixed', unit: 'millionTokens' },+ {+ lookup: { prices: { '1h': 30, '5m': 18.75 }, pricingParams: ['ttl'] },+ name: 'textInput_cacheWrite',+ strategy: 'lookup',+ unit: 'millionTokens',+ },+ ],},releasedAt: '2025-05-23',settings: {@@ -69,10 +83,17 @@ const anthropicChatModels: AIChatModelCard[] = [id: 'claude-sonnet-4-20250514',maxOutput: 64_000,pricing: {- cachedInput: 0.3,- input: 3,- output: 15,- writeCacheInput: 3.75,+ units: [+ { name: 'textInput_cacheRead', rate: 0.3, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textInput', rate: 3, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 15, strategy: 'fixed', unit: 'millionTokens' },+ {+ lookup: { prices: { '1h': 6, '5m': 3.75 }, pricingParams: ['ttl'] },+ name: 'textInput_cacheWrite',+ strategy: 'lookup',+ unit: 'millionTokens',+ },+ ],},releasedAt: '2025-05-23',settings: {@@ -96,10 +117,17 @@ const anthropicChatModels: AIChatModelCard[] = [id: 'claude-3-7-sonnet-20250219',maxOutput: 64_000,pricing: {- cachedInput: 0.3,- input: 3,- output: 15,- writeCacheInput: 3.75,+ units: [+ { name: 'textInput_cacheRead', rate: 0.3, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textInput', rate: 3, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 15, strategy: 'fixed', unit: 'millionTokens' },+ {+ lookup: { prices: { '1h': 6, '5m': 3.75 }, pricingParams: ['ttl'] },+ name: 'textInput_cacheWrite',+ strategy: 'lookup',+ unit: 'millionTokens',+ },+ ],},releasedAt: '2025-02-24',settings: {@@ -121,10 +149,17 @@ const anthropicChatModels: AIChatModelCard[] = [id: 'claude-3-5-sonnet-20241022',maxOutput: 8192,pricing: {- cachedInput: 0.3,- input: 3,- output: 15,- writeCacheInput: 3.75,+ units: [+ { name: 'textInput_cacheRead', rate: 0.3, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textInput', rate: 3, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 15, strategy: 'fixed', unit: 'millionTokens' },+ {+ lookup: { prices: { '1h': 6, '5m': 3.75 }, pricingParams: ['ttl'] },+ name: 'textInput_cacheWrite',+ strategy: 'lookup',+ unit: 'millionTokens',+ },+ ],},releasedAt: '2024-10-22',settings: {@@ -145,10 +180,17 @@ const anthropicChatModels: AIChatModelCard[] = [id: 'claude-3-5-sonnet-20240620',maxOutput: 8192,pricing: {- cachedInput: 0.3,- input: 3,- output: 15,- writeCacheInput: 3.75,+ units: [+ { name: 'textInput_cacheRead', rate: 0.3, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textInput', rate: 3, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 15, strategy: 'fixed', unit: 'millionTokens' },+ {+ lookup: { prices: { '1h': 6, '5m': 3.75 }, pricingParams: ['ttl'] },+ name: 'textInput_cacheWrite',+ strategy: 'lookup',+ unit: 'millionTokens',+ },+ ],},releasedAt: '2024-06-20',settings: {@@ -170,10 +212,17 @@ const anthropicChatModels: AIChatModelCard[] = [id: 'claude-3-5-haiku-20241022',maxOutput: 8192,pricing: {- cachedInput: 0.1,- input: 1,- output: 5,- writeCacheInput: 1.25,+ units: [+ { name: 'textInput_cacheRead', rate: 0.1, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textInput', rate: 1, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 5, strategy: 'fixed', unit: 'millionTokens' },+ {+ lookup: { prices: { '1h': 1.6, '5m': 1 }, pricingParams: ['ttl'] },+ name: 'textInput_cacheWrite',+ strategy: 'lookup',+ unit: 'millionTokens',+ },+ ],},releasedAt: '2024-11-05',settings: {@@ -193,8 +242,10 @@ const anthropicChatModels: AIChatModelCard[] = [id: 'claude-3-haiku-20240307',maxOutput: 4096,pricing: {- input: 0.25,- output: 1.25,+ units: [+ { name: 'textInput', rate: 0.25, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 1.25, strategy: 'fixed', unit: 'millionTokens' },+ ],},releasedAt: '2024-03-07',settings: {@@ -214,8 +265,10 @@ const anthropicChatModels: AIChatModelCard[] = [id: 'claude-3-sonnet-20240229', // 弃用日期 2025年7月21日maxOutput: 4096,pricing: {- input: 3,- output: 15,+ units: [+ { name: 'textInput', rate: 3, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 15, strategy: 'fixed', unit: 'millionTokens' },+ ],},releasedAt: '2024-02-29',type: 'chat',@@ -232,8 +285,10 @@ const anthropicChatModels: AIChatModelCard[] = [id: 'claude-3-opus-20240229',maxOutput: 4096,pricing: {- input: 15,- output: 75,+ units: [+ { name: 'textInput', rate: 15, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 75, strategy: 'fixed', unit: 'millionTokens' },+ ],},releasedAt: '2024-02-29',settings: {@@ -249,8 +304,10 @@ const anthropicChatModels: AIChatModelCard[] = [id: 'claude-2.1', // 弃用日期 2025年7月21日maxOutput: 4096,pricing: {- input: 8,- output: 24,+ units: [+ { name: 'textInput', rate: 8, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 24, strategy: 'fixed', unit: 'millionTokens' },+ ],},releasedAt: '2023-11-21',type: 'chat',@@ -263,8 +320,10 @@ const anthropicChatModels: AIChatModelCard[] = [id: 'claude-2.0', // 弃用日期 2025年7月21日maxOutput: 4096,pricing: {- input: 8,- output: 24,+ units: [+ { name: 'textInput', rate: 8, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 24, strategy: 'fixed', unit: 'millionTokens' },+ ],},releasedAt: '2023-07-11',type: 'chat',diff --git a/src/config/aiModels/azure.ts b/src/config/aiModels/azure.tsindex 10871da0809..2fd170b55fa 100644--- a/src/config/aiModels/azure.ts+++ b/src/config/aiModels/azure.ts@@ -18,9 +18,11 @@ const azureChatModels: AIChatModelCard[] = [id: 'o3',maxOutput: 100_000,pricing: {- cachedInput: 2.5,- input: 10,- output: 40,+ units: [+ { name: 'textInput_cacheRead', rate: 2.5, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textInput', rate: 10, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 40, strategy: 'fixed', unit: 'millionTokens' },+ ],},releasedAt: '2025-04-17',type: 'chat',@@ -42,9 +44,11 @@ const azureChatModels: AIChatModelCard[] = [id: 'o4-mini',maxOutput: 100_000,pricing: {- cachedInput: 0.275,- input: 1.1,- output: 4.4,+ units: [+ { name: 'textInput_cacheRead', rate: 0.275, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textInput', rate: 1.1, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 4.4, strategy: 'fixed', unit: 'millionTokens' },+ ],},releasedAt: '2025-04-17',type: 'chat',@@ -64,9 +68,11 @@ const azureChatModels: AIChatModelCard[] = [id: 'gpt-4.1',maxOutput: 32_768,pricing: {- cachedInput: 0.5,- input: 2,- output: 8,+ units: [+ { name: 'textInput_cacheRead', rate: 0.5, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textInput', rate: 2, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 8, strategy: 'fixed', unit: 'millionTokens' },+ ],},releasedAt: '2025-04-14',type: 'chat',@@ -87,9 +93,11 @@ const azureChatModels: AIChatModelCard[] = [id: 'gpt-4.1-mini',maxOutput: 32_768,pricing: {- cachedInput: 0.1,- input: 0.4,- output: 1.6,+ units: [+ { name: 'textInput_cacheRead', rate: 0.1, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textInput', rate: 0.4, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 1.6, strategy: 'fixed', unit: 'millionTokens' },+ ],},releasedAt: '2025-04-14',type: 'chat',@@ -109,9 +117,11 @@ const azureChatModels: AIChatModelCard[] = [id: 'gpt-4.1-nano',maxOutput: 32_768,pricing: {- cachedInput: 0.025,- input: 0.1,- output: 0.4,+ units: [+ { name: 'textInput_cacheRead', rate: 0.025, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textInput', rate: 0.1, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 0.4, strategy: 'fixed', unit: 'millionTokens' },+ ],},releasedAt: '2025-04-14',type: 'chat',@@ -131,9 +141,11 @@ const azureChatModels: AIChatModelCard[] = [id: 'o3-mini',maxOutput: 100_000,pricing: {- cachedInput: 0.55,- input: 1.1,- output: 4.4,+ units: [+ { name: 'textInput_cacheRead', rate: 0.55, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textInput', rate: 1.1, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 4.4, strategy: 'fixed', unit: 'millionTokens' },+ ],},releasedAt: '2025-01-31',type: 'chat',@@ -152,9 +164,11 @@ const azureChatModels: AIChatModelCard[] = [id: 'o1-mini',maxOutput: 65_536,pricing: {- cachedInput: 0.55,- input: 1.1,- output: 4.4,+ units: [+ { name: 'textInput_cacheRead', rate: 0.55, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textInput', rate: 1.1, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 4.4, strategy: 'fixed', unit: 'millionTokens' },+ ],},releasedAt: '2024-09-12',type: 'chat',@@ -173,9 +187,11 @@ const azureChatModels: AIChatModelCard[] = [id: 'o1',maxOutput: 100_000,pricing: {- cachedInput: 7.5,- input: 15,- output: 60,+ units: [+ { name: 'textInput_cacheRead', rate: 7.5, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textInput', rate: 15, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 60, strategy: 'fixed', unit: 'millionTokens' },+ ],},releasedAt: '2024-12-17',type: 'chat',@@ -194,8 +210,10 @@ const azureChatModels: AIChatModelCard[] = [id: 'o1-preview',maxOutput: 32_768,pricing: {- input: 15,- output: 60,+ units: [+ { name: 'textInput', rate: 15, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 60, strategy: 'fixed', unit: 'millionTokens' },+ ],},releasedAt: '2024-09-12',type: 'chat',@@ -216,9 +234,11 @@ const azureChatModels: AIChatModelCard[] = [id: 'gpt-4o',maxOutput: 4096,pricing: {- cachedInput: 1.25,- input: 2.5,- output: 10,+ units: [+ { name: 'textInput_cacheRead', rate: 1.25, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textInput', rate: 2.5, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 10, strategy: 'fixed', unit: 'millionTokens' },+ ],},releasedAt: '2024-05-13',type: 'chat',@@ -252,9 +272,11 @@ const azureChatModels: AIChatModelCard[] = [id: 'gpt-4o-mini',maxOutput: 4096,pricing: {- cachedInput: 0.075,- input: 0.15,- output: 0.6,+ units: [+ { name: 'textInput_cacheRead', rate: 0.075, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textInput', rate: 0.15, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 0.6, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},diff --git a/src/config/aiModels/azureai.ts b/src/config/aiModels/azureai.tsindex 2e9f3b94327..032bf490b64 100644--- a/src/config/aiModels/azureai.ts+++ b/src/config/aiModels/azureai.ts@@ -9,8 +9,10 @@ const azureChatModels: AIChatModelCard[] = [displayName: 'DeepSeek R1',id: 'DeepSeek-R1',pricing: {- input: 1.35,- output: 5.4,+ units: [+ { name: 'textInput', rate: 1.35, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 5.4, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -22,8 +24,10 @@ const azureChatModels: AIChatModelCard[] = [displayName: 'DeepSeek V3',id: 'DeepSeek-V3',pricing: {- input: 1.14,- output: 4.56,+ units: [+ { name: 'textInput', rate: 1.14, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 4.56, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -40,9 +44,11 @@ const azureChatModels: AIChatModelCard[] = [id: 'o3',maxOutput: 100_000,pricing: {- cachedInput: 2.5,- input: 10,- output: 40,+ units: [+ { name: 'textInput_cacheRead', rate: 2.5, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textInput', rate: 10, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 40, strategy: 'fixed', unit: 'millionTokens' },+ ],},releasedAt: '2025-04-17',type: 'chat',@@ -60,9 +66,11 @@ const azureChatModels: AIChatModelCard[] = [id: 'o4-mini',maxOutput: 100_000,pricing: {- cachedInput: 0.275,- input: 1.1,- output: 4.4,+ units: [+ { name: 'textInput_cacheRead', rate: 0.275, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textInput', rate: 1.1, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 4.4, strategy: 'fixed', unit: 'millionTokens' },+ ],},releasedAt: '2025-04-17',type: 'chat',@@ -79,9 +87,11 @@ const azureChatModels: AIChatModelCard[] = [id: 'gpt-4.1',maxOutput: 32_768,pricing: {- cachedInput: 0.5,- input: 2,- output: 8,+ units: [+ { name: 'textInput_cacheRead', rate: 0.5, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textInput', rate: 2, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 8, strategy: 'fixed', unit: 'millionTokens' },+ ],},releasedAt: '2025-04-14',type: 'chat',@@ -99,9 +109,11 @@ const azureChatModels: AIChatModelCard[] = [id: 'gpt-4.1-mini',maxOutput: 32_768,pricing: {- cachedInput: 0.1,- input: 0.4,- output: 1.6,+ units: [+ { name: 'textInput_cacheRead', rate: 0.1, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textInput', rate: 0.4, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 1.6, strategy: 'fixed', unit: 'millionTokens' },+ ],},releasedAt: '2025-04-14',type: 'chat',@@ -118,9 +130,11 @@ const azureChatModels: AIChatModelCard[] = [id: 'gpt-4.1-nano',maxOutput: 32_768,pricing: {- cachedInput: 0.025,- input: 0.1,- output: 0.4,+ units: [+ { name: 'textInput_cacheRead', rate: 0.025, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textInput', rate: 0.1, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 0.4, strategy: 'fixed', unit: 'millionTokens' },+ ],},releasedAt: '2025-04-14',type: 'chat',@@ -135,9 +149,11 @@ const azureChatModels: AIChatModelCard[] = [displayName: 'GPT 4.5 Preview',id: 'gpt-4.5-preview',pricing: {- cachedInput: 37.5,- input: 75,- output: 150,+ units: [+ { name: 'textInput_cacheRead', rate: 37.5, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textInput', rate: 75, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 150, strategy: 'fixed', unit: 'millionTokens' },+ ],},releasedAt: '2025-02-27',type: 'chat',@@ -153,9 +169,11 @@ const azureChatModels: AIChatModelCard[] = [displayName: 'o3-mini',id: 'o3-mini',pricing: {- cachedInput: 0.55,- input: 1.1,- output: 4.4,+ units: [+ { name: 'textInput_cacheRead', rate: 0.55, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textInput', rate: 1.1, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 4.4, strategy: 'fixed', unit: 'millionTokens' },+ ],},releasedAt: '2025-01-31',type: 'chat',@@ -170,9 +188,11 @@ const azureChatModels: AIChatModelCard[] = [displayName: 'o1-mini',id: 'o1-mini',pricing: {- cachedInput: 0.55,- input: 1.1,- output: 4.4,+ units: [+ { name: 'textInput_cacheRead', rate: 0.55, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textInput', rate: 1.1, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 4.4, strategy: 'fixed', unit: 'millionTokens' },+ ],},releasedAt: '2024-09-12',type: 'chat',@@ -187,9 +207,11 @@ const azureChatModels: AIChatModelCard[] = [displayName: 'o1',id: 'o1',pricing: {- cachedInput: 7.5,- input: 15,- output: 60,+ units: [+ { name: 'textInput_cacheRead', rate: 7.5, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textInput', rate: 15, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 60, strategy: 'fixed', unit: 'millionTokens' },+ ],},releasedAt: '2024-12-17',type: 'chat',@@ -206,9 +228,11 @@ const azureChatModels: AIChatModelCard[] = [id: 'gpt-4o',maxOutput: 4096,pricing: {- cachedInput: 1.25,- input: 2.5,- output: 10,+ units: [+ { name: 'textInput_cacheRead', rate: 1.25, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textInput', rate: 2.5, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 10, strategy: 'fixed', unit: 'millionTokens' },+ ],},releasedAt: '2024-05-13',type: 'chat',@@ -224,9 +248,11 @@ const azureChatModels: AIChatModelCard[] = [id: 'gpt-4o-mini',maxOutput: 16_384,pricing: {- cachedInput: 0.075,- input: 0.15,- output: 0.6,+ units: [+ { name: 'textInput_cacheRead', rate: 0.075, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textInput', rate: 0.15, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 0.6, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},diff --git a/src/config/aiModels/baichuan.ts b/src/config/aiModels/baichuan.tsindex b62f2081e91..130b8ddd708 100644--- a/src/config/aiModels/baichuan.ts+++ b/src/config/aiModels/baichuan.ts@@ -15,8 +15,10 @@ const baichuanChatModels: AIChatModelCard[] = [maxOutput: 4096,pricing: {currency: 'CNY',- input: 100,- output: 100,+ units: [+ { name: 'textInput', rate: 100, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 100, strategy: 'fixed', unit: 'millionTokens' },+ ],},settings: {searchImpl: 'params',@@ -37,8 +39,10 @@ const baichuanChatModels: AIChatModelCard[] = [maxOutput: 4096,pricing: {currency: 'CNY',- input: 15,- output: 15,+ units: [+ { name: 'textInput', rate: 15, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 15, strategy: 'fixed', unit: 'millionTokens' },+ ],},settings: {searchImpl: 'params',@@ -59,8 +63,10 @@ const baichuanChatModels: AIChatModelCard[] = [maxOutput: 4096,pricing: {currency: 'CNY',- input: 0.98,- output: 0.98,+ units: [+ { name: 'textInput', rate: 0.98, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 0.98, strategy: 'fixed', unit: 'millionTokens' },+ ],},settings: {searchImpl: 'params',@@ -80,8 +86,10 @@ const baichuanChatModels: AIChatModelCard[] = [maxOutput: 8192,pricing: {currency: 'CNY',- input: 12,- output: 12,+ units: [+ { name: 'textInput', rate: 12, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 12, strategy: 'fixed', unit: 'millionTokens' },+ ],},settings: {searchImpl: 'params',@@ -97,8 +105,10 @@ const baichuanChatModels: AIChatModelCard[] = [maxOutput: 4096,pricing: {currency: 'CNY',- input: 24,- output: 24,+ units: [+ { name: 'textInput', rate: 24, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 24, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -111,8 +121,10 @@ const baichuanChatModels: AIChatModelCard[] = [maxOutput: 8192,pricing: {currency: 'CNY',- input: 8,- output: 8,+ units: [+ { name: 'textInput', rate: 8, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 8, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},diff --git a/src/config/aiModels/bedrock.ts b/src/config/aiModels/bedrock.tsindex 41a738e3489..ac32caf9597 100644--- a/src/config/aiModels/bedrock.ts+++ b/src/config/aiModels/bedrock.ts@@ -36,8 +36,10 @@ const bedrockChatModels: AIChatModelCard[] = [id: 'us.anthropic.claude-3-7-sonnet-20250219-v1:0',maxOutput: 8192,pricing: {- input: 3,- output: 15,+ units: [+ { name: 'textInput', rate: 3, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 15, strategy: 'fixed', unit: 'millionTokens' },+ ],},releasedAt: '2025-02-24',type: 'chat',@@ -55,8 +57,10 @@ const bedrockChatModels: AIChatModelCard[] = [id: 'anthropic.claude-3-5-sonnet-20241022-v2:0',maxOutput: 8192,pricing: {- input: 3,- output: 15,+ units: [+ { name: 'textInput', rate: 3, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 15, strategy: 'fixed', unit: 'millionTokens' },+ ],},releasedAt: '2024-10-22',type: 'chat',@@ -74,8 +78,10 @@ const bedrockChatModels: AIChatModelCard[] = [id: 'us.anthropic.claude-3-5-sonnet-20241022-v2:0',maxOutput: 8192,pricing: {- input: 3,- output: 15,+ units: [+ { name: 'textInput', rate: 3, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 15, strategy: 'fixed', unit: 'millionTokens' },+ ],},releasedAt: '2024-10-22',type: 'chat',@@ -93,8 +99,10 @@ const bedrockChatModels: AIChatModelCard[] = [id: 'anthropic.claude-3-5-sonnet-20240620-v1:0',maxOutput: 8192,pricing: {- input: 3,- output: 15,+ units: [+ { name: 'textInput', rate: 3, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 15, strategy: 'fixed', unit: 'millionTokens' },+ ],},releasedAt: '2024-06-20',type: 'chat',@@ -112,8 +120,10 @@ const bedrockChatModels: AIChatModelCard[] = [id: 'anthropic.claude-3-haiku-20240307-v1:0',maxOutput: 4096,pricing: {- input: 0.25,- output: 1.25,+ units: [+ { name: 'textInput', rate: 0.25, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 1.25, strategy: 'fixed', unit: 'millionTokens' },+ ],},releasedAt: '2024-03-07',type: 'chat',@@ -130,8 +140,10 @@ const bedrockChatModels: AIChatModelCard[] = [enabled: true,id: 'anthropic.claude-3-sonnet-20240229-v1:0',pricing: {- input: 3,- output: 15,+ units: [+ { name: 'textInput', rate: 3, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 15, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -147,8 +159,10 @@ const bedrockChatModels: AIChatModelCard[] = [id: 'anthropic.claude-3-opus-20240229-v1:0',maxOutput: 4096,pricing: {- input: 15,- output: 75,+ units: [+ { name: 'textInput', rate: 15, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 75, strategy: 'fixed', unit: 'millionTokens' },+ ],},releasedAt: '2024-02-29',type: 'chat',@@ -160,8 +174,10 @@ const bedrockChatModels: AIChatModelCard[] = [displayName: 'Claude 2.1',id: 'anthropic.claude-v2:1',pricing: {- input: 8,- output: 24,+ units: [+ { name: 'textInput', rate: 8, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 24, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -172,8 +188,10 @@ const bedrockChatModels: AIChatModelCard[] = [displayName: 'Claude 2.0',id: 'anthropic.claude-v2',pricing: {- input: 8,- output: 24,+ units: [+ { name: 'textInput', rate: 8, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 24, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -184,8 +202,10 @@ const bedrockChatModels: AIChatModelCard[] = [displayName: 'Claude Instant',id: 'anthropic.claude-instant-v1',pricing: {- input: 0.8,- output: 2.4,+ units: [+ { name: 'textInput', rate: 0.8, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 2.4, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -200,8 +220,10 @@ const bedrockChatModels: AIChatModelCard[] = [enabled: true,id: 'meta.llama3-1-8b-instruct-v1:0',pricing: {- input: 0.22,- output: 0.22,+ units: [+ { name: 'textInput', rate: 0.22, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 0.22, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -216,8 +238,10 @@ const bedrockChatModels: AIChatModelCard[] = [enabled: true,id: 'meta.llama3-1-70b-instruct-v1:0',pricing: {- input: 0.99,- output: 0.99,+ units: [+ { name: 'textInput', rate: 0.99, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 0.99, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -232,8 +256,10 @@ const bedrockChatModels: AIChatModelCard[] = [enabled: true,id: 'meta.llama3-1-405b-instruct-v1:0',pricing: {- input: 5.32,- output: 16,+ units: [+ { name: 'textInput', rate: 5.32, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 16, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -244,8 +270,10 @@ const bedrockChatModels: AIChatModelCard[] = [displayName: 'Llama 3 8B Instruct',id: 'meta.llama3-8b-instruct-v1:0',pricing: {- input: 0.3,- output: 0.6,+ units: [+ { name: 'textInput', rate: 0.3, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 0.6, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -256,8 +284,10 @@ const bedrockChatModels: AIChatModelCard[] = [displayName: 'Llama 3 70B Instruct',id: 'meta.llama3-70b-instruct-v1:0',pricing: {- input: 2.65,- output: 3.5,+ units: [+ { name: 'textInput', rate: 2.65, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 3.5, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},diff --git a/src/config/aiModels/cohere.ts b/src/config/aiModels/cohere.tsindex 3ded21ee212..6f95b4e1ddb 100644--- a/src/config/aiModels/cohere.ts+++ b/src/config/aiModels/cohere.ts@@ -13,8 +13,10 @@ const cohereChatModels: AIChatModelCard[] = [id: 'command-a-03-2025',maxOutput: 8000,pricing: {- input: 2.5,- output: 10,+ units: [+ { name: 'textInput', rate: 2.5, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 10, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -29,8 +31,10 @@ const cohereChatModels: AIChatModelCard[] = [id: 'command-r-plus-04-2024',maxOutput: 4000,pricing: {- input: 3,- output: 15,+ units: [+ { name: 'textInput', rate: 3, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 15, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -46,8 +50,10 @@ const cohereChatModels: AIChatModelCard[] = [id: 'command-r-plus-08-2024',maxOutput: 4000,pricing: {- input: 2.5,- output: 10,+ units: [+ { name: 'textInput', rate: 2.5, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 10, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -62,8 +68,10 @@ const cohereChatModels: AIChatModelCard[] = [id: 'command-r-03-2024',maxOutput: 4000,pricing: {- input: 0.15,- output: 0.6,+ units: [+ { name: 'textInput', rate: 0.15, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 0.6, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -78,8 +86,10 @@ const cohereChatModels: AIChatModelCard[] = [id: 'command-r-08-2024',maxOutput: 4000,pricing: {- input: 0.15,- output: 0.6,+ units: [+ { name: 'textInput', rate: 0.15, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 0.6, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -94,8 +104,10 @@ const cohereChatModels: AIChatModelCard[] = [id: 'command-r-03-2024',maxOutput: 4000,pricing: {- input: 0.5,- output: 1.5,+ units: [+ { name: 'textInput', rate: 0.5, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 1.5, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -110,8 +122,10 @@ const cohereChatModels: AIChatModelCard[] = [id: 'command-r7b-12-2024',maxOutput: 4000,pricing: {- input: 0.0375,- output: 0.15,+ units: [+ { name: 'textInput', rate: 0.0375, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 0.15, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -123,8 +137,10 @@ const cohereChatModels: AIChatModelCard[] = [id: 'command',maxOutput: 4000,pricing: {- input: 1,- output: 2,+ units: [+ { name: 'textInput', rate: 1, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 2, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -139,8 +155,10 @@ const cohereChatModels: AIChatModelCard[] = [id: 'command-nightly',maxOutput: 4000,pricing: {- input: 1,- output: 2,+ units: [+ { name: 'textInput', rate: 1, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 2, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -151,8 +169,10 @@ const cohereChatModels: AIChatModelCard[] = [id: 'command-light',maxOutput: 4000,pricing: {- input: 0.3,- output: 0.6,+ units: [+ { name: 'textInput', rate: 0.3, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 0.6, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -164,8 +184,10 @@ const cohereChatModels: AIChatModelCard[] = [id: 'command-light-nightly',maxOutput: 4000,pricing: {- input: 0.3,- output: 0.6,+ units: [+ { name: 'textInput', rate: 0.3, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 0.6, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -178,8 +200,10 @@ const cohereChatModels: AIChatModelCard[] = [id: 'c4ai-aya-expanse-32b',maxOutput: 4000,pricing: {- input: 0.5,- output: 1.5,+ units: [+ { name: 'textInput', rate: 0.5, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 1.5, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -192,8 +216,10 @@ const cohereChatModels: AIChatModelCard[] = [id: 'c4ai-aya-expanse-8b',maxOutput: 4000,pricing: {- input: 0.5,- output: 1.5,+ units: [+ { name: 'textInput', rate: 0.5, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 1.5, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -209,8 +235,10 @@ const cohereChatModels: AIChatModelCard[] = [id: 'c4ai-aya-vision-32b',maxOutput: 4000,pricing: {- input: 0.5,- output: 1.5,+ units: [+ { name: 'textInput', rate: 0.5, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 1.5, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -226,8 +254,10 @@ const cohereChatModels: AIChatModelCard[] = [id: 'c4ai-aya-vision-8b',maxOutput: 4000,pricing: {- input: 0.5,- output: 1.5,+ units: [+ { name: 'textInput', rate: 0.5, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 1.5, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},diff --git a/src/config/aiModels/deepseek.ts b/src/config/aiModels/deepseek.tsindex 50267a875f3..7773403fcfe 100644--- a/src/config/aiModels/deepseek.ts+++ b/src/config/aiModels/deepseek.ts@@ -14,10 +14,12 @@ const deepseekChatModels: AIChatModelCard[] = [id: 'deepseek-chat',maxOutput: 8192,pricing: {- cachedInput: 0.5,currency: 'CNY',- input: 2,- output: 8,+ units: [+ { name: 'textInput_cacheRead', rate: 0.5, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textInput', rate: 2, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 8, strategy: 'fixed', unit: 'millionTokens' },+ ],},releasedAt: '2025-03-24',type: 'chat',@@ -35,10 +37,12 @@ const deepseekChatModels: AIChatModelCard[] = [id: 'deepseek-reasoner',maxOutput: 8192,pricing: {- cachedInput: 1,currency: 'CNY',- input: 4,- output: 16,+ units: [+ { name: 'textInput_cacheRead', rate: 1, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textInput', rate: 4, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 16, strategy: 'fixed', unit: 'millionTokens' },+ ],},releasedAt: '2025-05-28',type: 'chat',diff --git a/src/config/aiModels/fireworksai.ts b/src/config/aiModels/fireworksai.tsindex ac663d14640..7e9d836b083 100644--- a/src/config/aiModels/fireworksai.ts+++ b/src/config/aiModels/fireworksai.ts@@ -9,8 +9,10 @@ const fireworksaiChatModels: AIChatModelCard[] = [enabled: true,id: 'accounts/fireworks/models/llama-v3p3-70b-instruct',pricing: {- input: 0.9,- output: 0.9,+ units: [+ { name: 'textInput', rate: 0.9, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 0.9, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -22,8 +24,10 @@ const fireworksaiChatModels: AIChatModelCard[] = [enabled: true,id: 'accounts/fireworks/models/llama-v3p2-3b-instruct',pricing: {- input: 0.1,- output: 0.1,+ units: [+ { name: 'textInput', rate: 0.1, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 0.1, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -38,8 +42,10 @@ const fireworksaiChatModels: AIChatModelCard[] = [enabled: true,id: 'accounts/fireworks/models/llama-v3p2-11b-vision-instruct',pricing: {- input: 0.2,- output: 0.2,+ units: [+ { name: 'textInput', rate: 0.2, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 0.2, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -54,8 +60,10 @@ const fireworksaiChatModels: AIChatModelCard[] = [enabled: true,id: 'accounts/fireworks/models/llama-v3p2-90b-vision-instruct',pricing: {- input: 0.9,- output: 0.9,+ units: [+ { name: 'textInput', rate: 0.9, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 0.9, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -66,8 +74,10 @@ const fireworksaiChatModels: AIChatModelCard[] = [displayName: 'Llama 3.1 8B Instruct',id: 'accounts/fireworks/models/llama-v3p1-8b-instruct',pricing: {- input: 0.2,- output: 0.2,+ units: [+ { name: 'textInput', rate: 0.2, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 0.2, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -81,8 +91,10 @@ const fireworksaiChatModels: AIChatModelCard[] = [displayName: 'Llama 3.1 70B Instruct',id: 'accounts/fireworks/models/llama-v3p1-70b-instruct',pricing: {- input: 0.9,- output: 0.9,+ units: [+ { name: 'textInput', rate: 0.9, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 0.9, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -96,8 +108,10 @@ const fireworksaiChatModels: AIChatModelCard[] = [displayName: 'Llama 3.1 405B Instruct',id: 'accounts/fireworks/models/llama-v3p1-405b-instruct',pricing: {- input: 3,- output: 3,+ units: [+ { name: 'textInput', rate: 3, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 3, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -108,8 +122,10 @@ const fireworksaiChatModels: AIChatModelCard[] = [displayName: 'Llama 3 8B Instruct',id: 'accounts/fireworks/models/llama-v3-8b-instruct',pricing: {- input: 0.2,- output: 0.2,+ units: [+ { name: 'textInput', rate: 0.2, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 0.2, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -120,8 +136,10 @@ const fireworksaiChatModels: AIChatModelCard[] = [displayName: 'Llama 3 70B Instruct',id: 'accounts/fireworks/models/llama-v3-70b-instruct',pricing: {- input: 0.9,- output: 0.9,+ units: [+ { name: 'textInput', rate: 0.9, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 0.9, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -132,8 +150,10 @@ const fireworksaiChatModels: AIChatModelCard[] = [displayName: 'Llama 3 8B Instruct (HF version)',id: 'accounts/fireworks/models/llama-v3-8b-instruct-hf',pricing: {- input: 0.2,- output: 0.2,+ units: [+ { name: 'textInput', rate: 0.2, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 0.2, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -144,8 +164,10 @@ const fireworksaiChatModels: AIChatModelCard[] = [enabled: true,id: 'accounts/fireworks/models/mistral-small-24b-instruct-2501',pricing: {- input: 0.9,- output: 0.9,+ units: [+ { name: 'textInput', rate: 0.9, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 0.9, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -156,8 +178,10 @@ const fireworksaiChatModels: AIChatModelCard[] = [displayName: 'Mixtral MoE 8x7B Instruct',id: 'accounts/fireworks/models/mixtral-8x7b-instruct',pricing: {- input: 0.5,- output: 0.5,+ units: [+ { name: 'textInput', rate: 0.5, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 0.5, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -171,8 +195,10 @@ const fireworksaiChatModels: AIChatModelCard[] = [displayName: 'Mixtral MoE 8x22B Instruct',id: 'accounts/fireworks/models/mixtral-8x22b-instruct',pricing: {- input: 1.2,- output: 1.2,+ units: [+ { name: 'textInput', rate: 1.2, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 1.2, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -187,8 +213,10 @@ const fireworksaiChatModels: AIChatModelCard[] = [enabled: true,id: 'accounts/fireworks/models/phi-3-vision-128k-instruct',pricing: {- input: 0.2,- output: 0.2,+ units: [+ { name: 'textInput', rate: 0.2, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 0.2, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -199,8 +227,10 @@ const fireworksaiChatModels: AIChatModelCard[] = [displayName: 'MythoMax L2 13b',id: 'accounts/fireworks/models/mythomax-l2-13b',pricing: {- input: 0.2,- output: 0.2,+ units: [+ { name: 'textInput', rate: 0.2, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 0.2, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -212,8 +242,10 @@ const fireworksaiChatModels: AIChatModelCard[] = [enabled: true,id: 'accounts/fireworks/models/deepseek-v3',pricing: {- input: 0.9,- output: 0.9,+ units: [+ { name: 'textInput', rate: 0.9, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 0.9, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -228,8 +260,10 @@ const fireworksaiChatModels: AIChatModelCard[] = [enabled: true,id: 'accounts/fireworks/models/deepseek-r1',pricing: {- input: 8,- output: 8,+ units: [+ { name: 'textInput', rate: 8, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 8, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -244,8 +278,10 @@ const fireworksaiChatModels: AIChatModelCard[] = [enabled: true,id: 'accounts/fireworks/models/qwen-qwq-32b-preview',pricing: {- input: 0.9,- output: 0.9,+ units: [+ { name: 'textInput', rate: 0.9, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 0.9, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -257,8 +293,10 @@ const fireworksaiChatModels: AIChatModelCard[] = [enabled: true,id: 'accounts/fireworks/models/qwen2p5-72b-instruct',pricing: {- input: 0.9,- output: 0.9,+ units: [+ { name: 'textInput', rate: 0.9, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 0.9, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -272,8 +310,10 @@ const fireworksaiChatModels: AIChatModelCard[] = [enabled: true,id: 'accounts/fireworks/models/qwen2-vl-72b-instruct',pricing: {- input: 0.9,- output: 0.9,+ units: [+ { name: 'textInput', rate: 0.9, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 0.9, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -285,8 +325,10 @@ const fireworksaiChatModels: AIChatModelCard[] = [enabled: true,id: 'accounts/fireworks/models/qwen2p5-coder-32b-instruct',pricing: {- input: 0.9,- output: 0.9,+ units: [+ { name: 'textInput', rate: 0.9, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 0.9, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -298,8 +340,10 @@ const fireworksaiChatModels: AIChatModelCard[] = [enabled: true,id: 'accounts/yi-01-ai/models/yi-large',pricing: {- input: 3,- output: 3,+ units: [+ { name: 'textInput', rate: 3, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 3, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},diff --git a/src/config/aiModels/giteeai.ts b/src/config/aiModels/giteeai.tsindex 7030b73b0ae..c8b24d6a7e8 100644--- a/src/config/aiModels/giteeai.ts+++ b/src/config/aiModels/giteeai.ts@@ -327,7 +327,7 @@ const giteeaiImageModels: AIImageModelCard[] = [},type: 'image',},- {+ {description:'Kolors 是由快手 Kolors 团队开发的文生图模型。由数十亿的参数训练,在视觉质量、中文语义理解和文本渲染方面有显著优势。',displayName: 'Kolors',diff --git a/src/config/aiModels/github.ts b/src/config/aiModels/github.tsindex 8f5261f15cd..5dadace3bd8 100644--- a/src/config/aiModels/github.ts+++ b/src/config/aiModels/github.ts@@ -14,9 +14,11 @@ const githubChatModels: AIChatModelCard[] = [id: 'openai/o3',maxOutput: 100_000,pricing: {- cachedInput: 2.5,- input: 10,- output: 40,+ units: [+ { name: 'textInput_cacheRead', rate: 2.5, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textInput', rate: 10, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 40, strategy: 'fixed', unit: 'millionTokens' },+ ],},releasedAt: '2025-04-17',type: 'chat',@@ -35,9 +37,11 @@ const githubChatModels: AIChatModelCard[] = [id: 'openai/o4-mini',maxOutput: 100_000,pricing: {- cachedInput: 0.275,- input: 1.1,- output: 4.4,+ units: [+ { name: 'textInput_cacheRead', rate: 0.275, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textInput', rate: 1.1, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 4.4, strategy: 'fixed', unit: 'millionTokens' },+ ],},releasedAt: '2025-04-17',type: 'chat',@@ -54,9 +58,11 @@ const githubChatModels: AIChatModelCard[] = [id: 'openai/gpt-4.1',maxOutput: 32_768,pricing: {- cachedInput: 0.5,- input: 2,- output: 8,+ units: [+ { name: 'textInput_cacheRead', rate: 0.5, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textInput', rate: 2, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 8, strategy: 'fixed', unit: 'millionTokens' },+ ],},releasedAt: '2025-04-14',type: 'chat',@@ -74,9 +80,11 @@ const githubChatModels: AIChatModelCard[] = [id: 'openai/gpt-4.1-mini',maxOutput: 32_768,pricing: {- cachedInput: 0.1,- input: 0.4,- output: 1.6,+ units: [+ { name: 'textInput_cacheRead', rate: 0.1, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textInput', rate: 0.4, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 1.6, strategy: 'fixed', unit: 'millionTokens' },+ ],},releasedAt: '2025-04-14',type: 'chat',@@ -92,9 +100,11 @@ const githubChatModels: AIChatModelCard[] = [id: 'openai/gpt-4.1-nano',maxOutput: 32_768,pricing: {- cachedInput: 0.025,- input: 0.1,- output: 0.4,+ units: [+ { name: 'textInput_cacheRead', rate: 0.025, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textInput', rate: 0.1, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 0.4, strategy: 'fixed', unit: 'millionTokens' },+ ],},releasedAt: '2025-04-14',type: 'chat',@@ -111,9 +121,11 @@ const githubChatModels: AIChatModelCard[] = [id: 'openai/o3-mini',maxOutput: 100_000,pricing: {- cachedInput: 0.55,- input: 1.1,- output: 4.4,+ units: [+ { name: 'textInput_cacheRead', rate: 0.55, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textInput', rate: 1.1, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 4.4, strategy: 'fixed', unit: 'millionTokens' },+ ],},releasedAt: '2025-01-31',type: 'chat',@@ -129,9 +141,11 @@ const githubChatModels: AIChatModelCard[] = [id: 'openai/o1-mini',maxOutput: 65_536,pricing: {- cachedInput: 0.55,- input: 1.1,- output: 4.4,+ units: [+ { name: 'textInput_cacheRead', rate: 0.55, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textInput', rate: 1.1, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 4.4, strategy: 'fixed', unit: 'millionTokens' },+ ],},releasedAt: '2024-09-12',type: 'chat',@@ -148,9 +162,11 @@ const githubChatModels: AIChatModelCard[] = [id: 'openai/o1',maxOutput: 100_000,pricing: {- cachedInput: 7.5,- input: 15,- output: 60,+ units: [+ { name: 'textInput_cacheRead', rate: 7.5, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textInput', rate: 15, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 60, strategy: 'fixed', unit: 'millionTokens' },+ ],},releasedAt: '2024-12-17',type: 'chat',@@ -166,8 +182,10 @@ const githubChatModels: AIChatModelCard[] = [id: 'openai/o1-preview',maxOutput: 32_768,pricing: {- input: 15,- output: 60,+ units: [+ { name: 'textInput', rate: 15, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 60, strategy: 'fixed', unit: 'millionTokens' },+ ],},releasedAt: '2024-09-12',type: 'chat',diff --git a/src/config/aiModels/google.ts b/src/config/aiModels/google.tsindex 30bd90e568e..c154dddcfba 100644--- a/src/config/aiModels/google.ts+++ b/src/config/aiModels/google.ts@@ -17,9 +17,11 @@ const googleChatModels: AIChatModelCard[] = [id: 'gemini-2.5-pro',maxOutput: 65_536,pricing: {- cachedInput: 0.31, // prompts <= 200k tokens- input: 1.25, // prompts <= 200k tokens- output: 10, // prompts <= 200k tokens+ units: [+ { name: 'textInput_cacheRead', rate: 0.31, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textInput', rate: 1.25, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 10, strategy: 'fixed', unit: 'millionTokens' },+ ],},releasedAt: '2025-06-17',settings: {@@ -43,9 +45,11 @@ const googleChatModels: AIChatModelCard[] = [id: 'gemini-2.5-pro-preview-06-05',maxOutput: 65_536,pricing: {- cachedInput: 0.31, // prompts <= 200k tokens- input: 1.25, // prompts <= 200k tokens- output: 10, // prompts <= 200k tokens+ units: [+ { name: 'textInput_cacheRead', rate: 0.31, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textInput', rate: 1.25, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 10, strategy: 'fixed', unit: 'millionTokens' },+ ],},releasedAt: '2025-06-05',settings: {@@ -69,9 +73,11 @@ const googleChatModels: AIChatModelCard[] = [id: 'gemini-2.5-pro-preview-05-06',maxOutput: 65_536,pricing: {- cachedInput: 0.31, // prompts <= 200k tokens- input: 1.25, // prompts <= 200k tokens- output: 10, // prompts <= 200k tokens+ units: [+ { name: 'textInput_cacheRead', rate: 0.31, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textInput', rate: 1.25, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 10, strategy: 'fixed', unit: 'millionTokens' },+ ],},releasedAt: '2025-05-06',settings: {@@ -94,9 +100,11 @@ const googleChatModels: AIChatModelCard[] = [id: 'gemini-2.5-flash',maxOutput: 65_536,pricing: {- cachedInput: 0.075,- input: 0.3,- output: 2.5,+ units: [+ { name: 'textInput_cacheRead', rate: 0.075, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textInput', rate: 0.3, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 2.5, strategy: 'fixed', unit: 'millionTokens' },+ ],},releasedAt: '2025-06-17',settings: {@@ -119,9 +127,11 @@ const googleChatModels: AIChatModelCard[] = [id: 'gemini-2.5-flash-preview-05-20',maxOutput: 65_536,pricing: {- cachedInput: 0.0375,- input: 0.15,- output: 3.5, // Thinking+ units: [+ { name: 'textInput_cacheRead', rate: 0.0375, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textInput', rate: 0.15, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 3.5, strategy: 'fixed', unit: 'millionTokens' },+ ],},releasedAt: '2025-05-20',settings: {@@ -144,9 +154,11 @@ const googleChatModels: AIChatModelCard[] = [id: 'gemini-2.5-flash-lite',maxOutput: 65_536,pricing: {- cachedInput: 0.025,- input: 0.1,- output: 0.4,+ units: [+ { name: 'textInput_cacheRead', rate: 0.025, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textInput', rate: 0.1, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 0.4, strategy: 'fixed', unit: 'millionTokens' },+ ],},releasedAt: '2025-07-22',settings: {@@ -170,9 +182,11 @@ const googleChatModels: AIChatModelCard[] = [id: 'gemini-2.5-flash-lite-preview-06-17',maxOutput: 65_536,pricing: {- cachedInput: 0.025,- input: 0.1,- output: 0.4,+ units: [+ { name: 'textInput_cacheRead', rate: 0.025, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textInput', rate: 0.1, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 0.4, strategy: 'fixed', unit: 'millionTokens' },+ ],},releasedAt: '2025-06-11',settings: {@@ -195,9 +209,11 @@ const googleChatModels: AIChatModelCard[] = [id: 'gemini-2.0-flash',maxOutput: 8192,pricing: {- cachedInput: 0.025,- input: 0.1,- output: 0.4,+ units: [+ { name: 'textInput_cacheRead', rate: 0.025, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textInput', rate: 0.1, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 0.4, strategy: 'fixed', unit: 'millionTokens' },+ ],},releasedAt: '2025-02-05',settings: {@@ -219,9 +235,11 @@ const googleChatModels: AIChatModelCard[] = [id: 'gemini-2.0-flash-001',maxOutput: 8192,pricing: {- cachedInput: 0.025,- input: 0.1,- output: 0.4,+ units: [+ { name: 'textInput_cacheRead', rate: 0.025, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textInput', rate: 0.1, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 0.4, strategy: 'fixed', unit: 'millionTokens' },+ ],},releasedAt: '2025-02-05',settings: {@@ -242,8 +260,11 @@ const googleChatModels: AIChatModelCard[] = [id: 'gemini-2.0-flash-preview-image-generation',maxOutput: 8192,pricing: {- input: 0.1,- output: 0.039, // per image+ units: [+ { name: 'textInput', rate: 0.1, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 0.4, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'imageGeneration', rate: 0.039, strategy: 'fixed', unit: 'image' },+ ],},releasedAt: '2025-05-07',type: 'chat',@@ -259,8 +280,10 @@ const googleChatModels: AIChatModelCard[] = [id: 'gemini-2.0-flash-exp-image-generation',maxOutput: 8192,pricing: {- input: 0,- output: 0,+ units: [+ { name: 'textInput', rate: 0, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 0, strategy: 'fixed', unit: 'millionTokens' },+ ],},releasedAt: '2025-03-14',type: 'chat',@@ -275,8 +298,10 @@ const googleChatModels: AIChatModelCard[] = [id: 'gemini-2.0-flash-lite',maxOutput: 8192,pricing: {- input: 0.075,- output: 0.3,+ units: [+ { name: 'textInput', rate: 0.075, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 0.3, strategy: 'fixed', unit: 'millionTokens' },+ ],},releasedAt: '2025-02-05',type: 'chat',@@ -291,8 +316,10 @@ const googleChatModels: AIChatModelCard[] = [id: 'gemini-2.0-flash-lite-001',maxOutput: 8192,pricing: {- input: 0.075,- output: 0.3,+ units: [+ { name: 'textInput', rate: 0.075, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 0.3, strategy: 'fixed', unit: 'millionTokens' },+ ],},releasedAt: '2025-02-05',type: 'chat',@@ -308,8 +335,10 @@ const googleChatModels: AIChatModelCard[] = [id: 'gemini-2.0-flash-exp',maxOutput: 8192,pricing: {- input: 0,- output: 0,+ units: [+ { name: 'textInput', rate: 0, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 0, strategy: 'fixed', unit: 'millionTokens' },+ ],},releasedAt: '2025-02-05',type: 'chat',@@ -325,8 +354,10 @@ const googleChatModels: AIChatModelCard[] = [id: 'learnlm-2.0-flash-experimental',maxOutput: 32_768,pricing: {- input: 0,- output: 0,+ units: [+ { name: 'textInput', rate: 0, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 0, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -341,8 +372,10 @@ const googleChatModels: AIChatModelCard[] = [id: 'learnlm-1.5-pro-experimental',maxOutput: 8192,pricing: {- input: 0,- output: 0,+ units: [+ { name: 'textInput', rate: 0, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 0, strategy: 'fixed', unit: 'millionTokens' },+ ],},releasedAt: '2024-11-19',type: 'chat',@@ -358,9 +391,11 @@ const googleChatModels: AIChatModelCard[] = [id: 'gemini-1.5-flash-002', // Deprecated on 2025-09-24maxOutput: 8192,pricing: {- cachedInput: 0.018_75,- input: 0.075,- output: 0.3,+ units: [+ { name: 'textInput_cacheRead', rate: 0.018, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textInput', rate: 0.075, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 0.3, strategy: 'fixed', unit: 'millionTokens' },+ ],},releasedAt: '2024-09-25',type: 'chat',@@ -377,9 +412,11 @@ const googleChatModels: AIChatModelCard[] = [id: 'gemini-1.5-pro-002', // Deprecated on 2025-09-24maxOutput: 8192,pricing: {- cachedInput: 0.3125,- input: 1.25,- output: 5,+ units: [+ { name: 'textInput_cacheRead', rate: 0.3125, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textInput', rate: 1.25, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 5, strategy: 'fixed', unit: 'millionTokens' },+ ],},releasedAt: '2024-09-24',type: 'chat',@@ -395,9 +432,11 @@ const googleChatModels: AIChatModelCard[] = [id: 'gemini-1.5-flash-8b-latest',maxOutput: 8192,pricing: {- cachedInput: 0.01,- input: 0.0375,- output: 0.15,+ units: [+ { name: 'textInput_cacheRead', rate: 0.01, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textInput', rate: 0.0375, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 0.15, strategy: 'fixed', unit: 'millionTokens' },+ ],},releasedAt: '2024-10-03',type: 'chat',@@ -408,9 +447,11 @@ const googleChatModels: AIChatModelCard[] = [id: 'gemma-3-1b-it',maxOutput: 8192,pricing: {- cachedInput: 0,- input: 0,- output: 0,+ units: [+ { name: 'textInput_cacheRead', rate: 0, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textInput', rate: 0, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 0, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -420,9 +461,11 @@ const googleChatModels: AIChatModelCard[] = [id: 'gemma-3-4b-it',maxOutput: 8192,pricing: {- cachedInput: 0,- input: 0,- output: 0,+ units: [+ { name: 'textInput_cacheRead', rate: 0, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textInput', rate: 0, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 0, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -432,9 +475,11 @@ const googleChatModels: AIChatModelCard[] = [id: 'gemma-3-12b-it',maxOutput: 8192,pricing: {- cachedInput: 0,- input: 0,- output: 0,+ units: [+ { name: 'textInput_cacheRead', rate: 0, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textInput', rate: 0, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 0, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -444,9 +489,11 @@ const googleChatModels: AIChatModelCard[] = [id: 'gemma-3-27b-it',maxOutput: 8192,pricing: {- cachedInput: 0,- input: 0,- output: 0,+ units: [+ { name: 'textInput_cacheRead', rate: 0, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textInput', rate: 0, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 0, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -456,9 +503,11 @@ const googleChatModels: AIChatModelCard[] = [id: 'gemma-3n-e2b-it',maxOutput: 2048,pricing: {- cachedInput: 0,- input: 0,- output: 0,+ units: [+ { name: 'textInput_cacheRead', rate: 0, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textInput', rate: 0, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 0, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -468,9 +517,11 @@ const googleChatModels: AIChatModelCard[] = [id: 'gemma-3n-e4b-it',maxOutput: 2048,pricing: {- cachedInput: 0,- input: 0,- output: 0,+ units: [+ { name: 'textInput_cacheRead', rate: 0, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textInput', rate: 0, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 0, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},diff --git a/src/config/aiModels/groq.ts b/src/config/aiModels/groq.tsindex 3c3c62bf01e..5a020dac164 100644--- a/src/config/aiModels/groq.ts+++ b/src/config/aiModels/groq.ts@@ -35,8 +35,10 @@ const groqChatModels: AIChatModelCard[] = [id: 'openai/gpt-oss-120b',maxOutput: 32_768,pricing: {- input: 0.15,- output: 0.75,+ units: [+ { name: 'textInput', rate: 0.15, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 0.75, strategy: 'fixed', unit: 'millionTokens' },+ ],},releasedAt: '2025-08-06',type: 'chat',@@ -53,8 +55,10 @@ const groqChatModels: AIChatModelCard[] = [id: 'openai/gpt-oss-20b',maxOutput: 32_768,pricing: {- input: 0.1,- output: 0.5,+ units: [+ { name: 'textInput', rate: 0.1, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 0.5, strategy: 'fixed', unit: 'millionTokens' },+ ],},releasedAt: '2025-08-06',type: 'chat',@@ -71,8 +75,10 @@ const groqChatModels: AIChatModelCard[] = [id: 'moonshotai/kimi-k2-instruct',maxOutput: 16_384,pricing: {- input: 1,- output: 3,+ units: [+ { name: 'textInput', rate: 1, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 3, strategy: 'fixed', unit: 'millionTokens' },+ ],},releasedAt: '2025-07-11',type: 'chat',@@ -84,8 +90,10 @@ const groqChatModels: AIChatModelCard[] = [id: 'meta-llama/llama-4-scout-17b-16e-instruct',maxOutput: 8192,pricing: {- input: 0.11,- output: 0.34,+ units: [+ { name: 'textInput', rate: 0.11, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 0.34, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -99,8 +107,10 @@ const groqChatModels: AIChatModelCard[] = [id: 'meta-llama/llama-4-maverick-17b-128e-instruct',maxOutput: 8192,pricing: {- input: 0.2,- output: 0.6,+ units: [+ { name: 'textInput', rate: 0.2, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 0.6, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -113,8 +123,10 @@ const groqChatModels: AIChatModelCard[] = [id: 'qwen/qwen3-32b',maxOutput: 131_072,pricing: {- input: 0.29,- output: 0.59,+ units: [+ { name: 'textInput', rate: 0.29, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 0.59, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -128,8 +140,10 @@ const groqChatModels: AIChatModelCard[] = [id: 'deepseek-r1-distill-llama-70b',maxOutput: 131_072,pricing: {- input: 0.75, // 0.75 - 5.00- output: 0.99, // 0.99 - 5.00+ units: [+ { name: 'textInput', rate: 0.75, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 0.99, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -143,8 +157,10 @@ const groqChatModels: AIChatModelCard[] = [id: 'gemma2-9b-it',maxOutput: 8192,pricing: {- input: 0.2,- output: 0.2,+ units: [+ { name: 'textInput', rate: 0.2, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 0.2, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -159,8 +175,10 @@ const groqChatModels: AIChatModelCard[] = [id: 'llama-3.1-8b-instant',maxOutput: 131_072,pricing: {- input: 0.05,- output: 0.08,+ units: [+ { name: 'textInput', rate: 0.05, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 0.08, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -175,8 +193,10 @@ const groqChatModels: AIChatModelCard[] = [id: 'llama-3.3-70b-versatile',maxOutput: 32_768,pricing: {- input: 0.59,- output: 0.79,+ units: [+ { name: 'textInput', rate: 0.59, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 0.79, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -186,8 +206,10 @@ const groqChatModels: AIChatModelCard[] = [id: 'mistral-saba-24b',maxOutput: 32_768,pricing: {- input: 0.79,- output: 0.79,+ units: [+ { name: 'textInput', rate: 0.79, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 0.79, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -197,8 +219,10 @@ const groqChatModels: AIChatModelCard[] = [id: 'meta-llama/llama-guard-4-12b',maxOutput: 1024,pricing: {- input: 0.2,- output: 0.2,+ units: [+ { name: 'textInput', rate: 0.2, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 0.2, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},diff --git a/src/config/aiModels/higress.ts b/src/config/aiModels/higress.tsindex cda81787cb1..aba9ea05c02 100644--- a/src/config/aiModels/higress.ts+++ b/src/config/aiModels/higress.ts@@ -12,8 +12,10 @@ const higressChatModels: AIChatModelCard[] = [id: 'qwen-turbo',pricing: {currency: 'CNY',- input: 0.3,- output: 0.6,+ units: [+ { name: 'textInput', rate: 0.3, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 0.6, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -28,8 +30,10 @@ const higressChatModels: AIChatModelCard[] = [id: 'qwen-plus',pricing: {currency: 'CNY',- input: 0.8,- output: 2,+ units: [+ { name: 'textInput', rate: 0.8, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 2, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -45,8 +49,10 @@ const higressChatModels: AIChatModelCard[] = [id: 'qwen-max',pricing: {currency: 'CNY',- input: 20,- output: 60,+ units: [+ { name: 'textInput', rate: 20, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 60, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -58,8 +64,10 @@ const higressChatModels: AIChatModelCard[] = [id: 'qwen-long',pricing: {currency: 'CNY',- input: 0.5,- output: 2,+ units: [+ { name: 'textInput', rate: 0.5, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 2, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -75,8 +83,10 @@ const higressChatModels: AIChatModelCard[] = [id: 'qwen-vl-plus-latest',pricing: {currency: 'CNY',- input: 8,- output: 8,+ units: [+ { name: 'textInput', rate: 8, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 8, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -92,8 +102,10 @@ const higressChatModels: AIChatModelCard[] = [id: 'qwen-vl-max-latest',pricing: {currency: 'CNY',- input: 20,- output: 20,+ units: [+ { name: 'textInput', rate: 20, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 20, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -104,8 +116,10 @@ const higressChatModels: AIChatModelCard[] = [id: 'qwen-math-turbo-latest',pricing: {currency: 'CNY',- input: 2,- output: 6,+ units: [+ { name: 'textInput', rate: 2, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 6, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -116,8 +130,10 @@ const higressChatModels: AIChatModelCard[] = [id: 'qwen-math-plus-latest',pricing: {currency: 'CNY',- input: 4,- output: 12,+ units: [+ { name: 'textInput', rate: 4, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 12, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -128,8 +144,10 @@ const higressChatModels: AIChatModelCard[] = [id: 'qwen-coder-turbo-latest',pricing: {currency: 'CNY',- input: 2,- output: 6,+ units: [+ { name: 'textInput', rate: 2, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 6, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -143,8 +161,10 @@ const higressChatModels: AIChatModelCard[] = [id: 'qwen2.5-7b-instruct',pricing: {currency: 'CNY',- input: 1,- output: 2,+ units: [+ { name: 'textInput', rate: 1, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 2, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -158,8 +178,10 @@ const higressChatModels: AIChatModelCard[] = [id: 'qwen2.5-14b-instruct',pricing: {currency: 'CNY',- input: 2,- output: 6,+ units: [+ { name: 'textInput', rate: 2, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 6, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -173,8 +195,10 @@ const higressChatModels: AIChatModelCard[] = [id: 'qwen2.5-32b-instruct',pricing: {currency: 'CNY',- input: 3.5,- output: 7,+ units: [+ { name: 'textInput', rate: 3.5, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 7, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -188,8 +212,10 @@ const higressChatModels: AIChatModelCard[] = [id: 'qwen2.5-72b-instruct',pricing: {currency: 'CNY',- input: 4,- output: 12,+ units: [+ { name: 'textInput', rate: 4, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 12, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -200,8 +226,10 @@ const higressChatModels: AIChatModelCard[] = [id: 'qwen2.5-math-1.5b-instruct',pricing: {currency: 'CNY',- input: 0,- output: 0,+ units: [+ { name: 'textInput', rate: 0, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 0, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -212,8 +240,10 @@ const higressChatModels: AIChatModelCard[] = [id: 'qwen2.5-math-7b-instruct',pricing: {currency: 'CNY',- input: 1,- output: 2,+ units: [+ { name: 'textInput', rate: 1, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 2, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -224,8 +254,10 @@ const higressChatModels: AIChatModelCard[] = [id: 'qwen2.5-math-72b-instruct',pricing: {currency: 'CNY',- input: 4,- output: 12,+ units: [+ { name: 'textInput', rate: 4, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 12, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -236,8 +268,10 @@ const higressChatModels: AIChatModelCard[] = [id: 'qwen2.5-coder-1.5b-instruct',pricing: {currency: 'CNY',- input: 0,- output: 0,+ units: [+ { name: 'textInput', rate: 0, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 0, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -248,8 +282,10 @@ const higressChatModels: AIChatModelCard[] = [id: 'qwen2.5-coder-7b-instruct',pricing: {currency: 'CNY',- input: 1,- output: 2,+ units: [+ { name: 'textInput', rate: 1, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 2, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -263,8 +299,10 @@ const higressChatModels: AIChatModelCard[] = [id: 'qwen-vl-v1',pricing: {currency: 'CNY',- input: 0,- output: 0,+ units: [+ { name: 'textInput', rate: 0, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 0, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -278,8 +316,10 @@ const higressChatModels: AIChatModelCard[] = [id: 'qwen-vl-chat-v1',pricing: {currency: 'CNY',- input: 0,- output: 0,+ units: [+ { name: 'textInput', rate: 0, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 0, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -332,8 +372,10 @@ const higressChatModels: AIChatModelCard[] = [maxOutput: 4096,pricing: {currency: 'CNY',- input: 100,- output: 100,+ units: [+ { name: 'textInput', rate: 100, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 100, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -370,8 +412,10 @@ const higressChatModels: AIChatModelCard[] = [maxOutput: 8192,pricing: {currency: 'CNY',- input: 12,- output: 12,+ units: [+ { name: 'textInput', rate: 12, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 12, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -385,8 +429,10 @@ const higressChatModels: AIChatModelCard[] = [maxOutput: 4096,pricing: {currency: 'CNY',- input: 24,- output: 24,+ units: [+ { name: 'textInput', rate: 24, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 24, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -399,8 +445,10 @@ const higressChatModels: AIChatModelCard[] = [maxOutput: 8192,pricing: {currency: 'CNY',- input: 8,- output: 8,+ units: [+ { name: 'textInput', rate: 8, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 8, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -412,8 +460,10 @@ const higressChatModels: AIChatModelCard[] = [id: 'yi-lightning',pricing: {currency: 'CNY',- input: 0.99,- output: 0.99,+ units: [+ { name: 'textInput', rate: 0.99, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 0.99, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -425,8 +475,10 @@ const higressChatModels: AIChatModelCard[] = [id: 'yi-spark',pricing: {currency: 'CNY',- input: 1,- output: 1,+ units: [+ { name: 'textInput', rate: 1, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 1, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -438,8 +490,10 @@ const higressChatModels: AIChatModelCard[] = [id: 'yi-medium',pricing: {currency: 'CNY',- input: 2.5,- output: 2.5,+ units: [+ { name: 'textInput', rate: 2.5, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 2.5, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -451,8 +505,10 @@ const higressChatModels: AIChatModelCard[] = [id: 'yi-medium-200k',pricing: {currency: 'CNY',- input: 12,- output: 12,+ units: [+ { name: 'textInput', rate: 12, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 12, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -464,8 +520,10 @@ const higressChatModels: AIChatModelCard[] = [id: 'yi-large-turbo',pricing: {currency: 'CNY',- input: 12,- output: 12,+ units: [+ { name: 'textInput', rate: 12, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 12, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -478,8 +536,10 @@ const higressChatModels: AIChatModelCard[] = [id: 'yi-large-rag',pricing: {currency: 'CNY',- input: 25,- output: 25,+ units: [+ { name: 'textInput', rate: 25, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 25, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -495,8 +555,10 @@ const higressChatModels: AIChatModelCard[] = [id: 'yi-large-fc',pricing: {currency: 'CNY',- input: 20,- output: 20,+ units: [+ { name: 'textInput', rate: 20, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 20, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -507,8 +569,10 @@ const higressChatModels: AIChatModelCard[] = [id: 'yi-large',pricing: {currency: 'CNY',- input: 20,- output: 20,+ units: [+ { name: 'textInput', rate: 20, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 20, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -523,8 +587,10 @@ const higressChatModels: AIChatModelCard[] = [id: 'yi-vision',pricing: {currency: 'CNY',- input: 6,- output: 6,+ units: [+ { name: 'textInput', rate: 6, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 6, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -535,8 +601,10 @@ const higressChatModels: AIChatModelCard[] = [id: 'yi-large-preview',pricing: {currency: 'CNY',- input: 20,- output: 20,+ units: [+ { name: 'textInput', rate: 20, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 20, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -547,8 +615,10 @@ const higressChatModels: AIChatModelCard[] = [id: 'yi-lightning-lite',pricing: {currency: 'CNY',- input: 0.99,- output: 0.99,+ units: [+ { name: 'textInput', rate: 0.99, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 0.99, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -563,8 +633,10 @@ const higressChatModels: AIChatModelCard[] = [id: 'glm-4-flash',pricing: {currency: 'CNY',- input: 0,- output: 0,+ units: [+ { name: 'textInput', rate: 0, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 0, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -579,8 +651,10 @@ const higressChatModels: AIChatModelCard[] = [id: 'glm-4-flashx',pricing: {currency: 'CNY',- input: 0.1,- output: 0.1,+ units: [+ { name: 'textInput', rate: 0.1, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 0.1, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -594,8 +668,10 @@ const higressChatModels: AIChatModelCard[] = [id: 'glm-4-long',pricing: {currency: 'CNY',- input: 1,- output: 1,+ units: [+ { name: 'textInput', rate: 1, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 1, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -610,8 +686,10 @@ const higressChatModels: AIChatModelCard[] = [id: 'glm-4-air',pricing: {currency: 'CNY',- input: 1,- output: 1,+ units: [+ { name: 'textInput', rate: 1, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 1, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -626,8 +704,10 @@ const higressChatModels: AIChatModelCard[] = [id: 'glm-4-airx',pricing: {currency: 'CNY',- input: 10,- output: 10,+ units: [+ { name: 'textInput', rate: 10, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 10, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -642,8 +722,10 @@ const higressChatModels: AIChatModelCard[] = [id: 'glm-4-alltools',pricing: {currency: 'CNY',- input: 100,- output: 100,+ units: [+ { name: 'textInput', rate: 100, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 100, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -658,8 +740,10 @@ const higressChatModels: AIChatModelCard[] = [id: 'glm-4-plus',pricing: {currency: 'CNY',- input: 50,- output: 50,+ units: [+ { name: 'textInput', rate: 50, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 50, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -673,8 +757,10 @@ const higressChatModels: AIChatModelCard[] = [id: 'glm-4-0520',pricing: {currency: 'CNY',- input: 100,- output: 100,+ units: [+ { name: 'textInput', rate: 100, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 100, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -688,8 +774,10 @@ const higressChatModels: AIChatModelCard[] = [id: 'glm-4',pricing: {currency: 'CNY',- input: 100,- output: 100,+ units: [+ { name: 'textInput', rate: 100, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 100, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -704,8 +792,10 @@ const higressChatModels: AIChatModelCard[] = [id: 'glm-4v-plus',pricing: {currency: 'CNY',- input: 10,- output: 10,+ units: [+ { name: 'textInput', rate: 10, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 10, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -719,8 +809,10 @@ const higressChatModels: AIChatModelCard[] = [id: 'glm-4v',pricing: {currency: 'CNY',- input: 50,- output: 50,+ units: [+ { name: 'textInput', rate: 50, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 50, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -731,8 +823,10 @@ const higressChatModels: AIChatModelCard[] = [id: 'charglm-3',pricing: {currency: 'CNY',- input: 15,- output: 15,+ units: [+ { name: 'textInput', rate: 15, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 15, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -743,8 +837,10 @@ const higressChatModels: AIChatModelCard[] = [id: 'emohaa',pricing: {currency: 'CNY',- input: 15,- output: 15,+ units: [+ { name: 'textInput', rate: 15, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 15, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -758,8 +854,10 @@ const higressChatModels: AIChatModelCard[] = [maxOutput: 7000,pricing: {currency: 'CNY',- input: 5,- output: 5,+ units: [+ { name: 'textInput', rate: 5, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 5, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -776,8 +874,10 @@ const higressChatModels: AIChatModelCard[] = [maxOutput: 7000,pricing: {currency: 'CNY',- input: 5,- output: 5,+ units: [+ { name: 'textInput', rate: 5, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 5, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -791,8 +891,10 @@ const higressChatModels: AIChatModelCard[] = [maxOutput: 7000,pricing: {currency: 'CNY',- input: 2,- output: 2,+ units: [+ { name: 'textInput', rate: 2, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 2, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -806,8 +908,10 @@ const higressChatModels: AIChatModelCard[] = [maxOutput: 2048,pricing: {currency: 'CNY',- input: 2,- output: 2,+ units: [+ { name: 'textInput', rate: 2, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 2, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -820,8 +924,10 @@ const higressChatModels: AIChatModelCard[] = [id: 'ERNIE-3.5-8K',pricing: {currency: 'CNY',- input: 0.8,- output: 2,+ units: [+ { name: 'textInput', rate: 0.8, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 2, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -833,8 +939,10 @@ const higressChatModels: AIChatModelCard[] = [id: 'ERNIE-3.5-8K-Preview',pricing: {currency: 'CNY',- input: 0.8,- output: 2,+ units: [+ { name: 'textInput', rate: 0.8, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 2, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -847,8 +955,10 @@ const higressChatModels: AIChatModelCard[] = [id: 'ERNIE-3.5-128K',pricing: {currency: 'CNY',- input: 0.8,- output: 2,+ units: [+ { name: 'textInput', rate: 0.8, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 2, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -861,8 +971,10 @@ const higressChatModels: AIChatModelCard[] = [id: 'ERNIE-4.0-8K-Latest',pricing: {currency: 'CNY',- input: 30,- output: 90,+ units: [+ { name: 'textInput', rate: 30, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 90, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -874,8 +986,10 @@ const higressChatModels: AIChatModelCard[] = [id: 'ERNIE-4.0-8K-Preview',pricing: {currency: 'CNY',- input: 30,- output: 90,+ units: [+ { name: 'textInput', rate: 30, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 90, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -888,8 +1002,10 @@ const higressChatModels: AIChatModelCard[] = [id: 'ERNIE-4.0-Turbo-8K-Latest',pricing: {currency: 'CNY',- input: 20,- output: 60,+ units: [+ { name: 'textInput', rate: 20, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 60, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -901,8 +1017,10 @@ const higressChatModels: AIChatModelCard[] = [id: 'ERNIE-4.0-Turbo-8K-Preview',pricing: {currency: 'CNY',- input: 20,- output: 60,+ units: [+ { name: 'textInput', rate: 20, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 60, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -915,8 +1033,10 @@ const higressChatModels: AIChatModelCard[] = [id: 'ERNIE-Lite-Pro-128K',pricing: {currency: 'CNY',- input: 0.2,- output: 0.4,+ units: [+ { name: 'textInput', rate: 0.2, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 0.4, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -929,8 +1049,10 @@ const higressChatModels: AIChatModelCard[] = [id: 'ERNIE-Speed-Pro-128K',pricing: {currency: 'CNY',- input: 0.3,- output: 0.6,+ units: [+ { name: 'textInput', rate: 0.3, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 0.6, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -942,8 +1064,10 @@ const higressChatModels: AIChatModelCard[] = [id: 'ERNIE-Speed-128K',pricing: {currency: 'CNY',- input: 0,- output: 0,+ units: [+ { name: 'textInput', rate: 0, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 0, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -955,8 +1079,10 @@ const higressChatModels: AIChatModelCard[] = [id: 'ERNIE-Character-8K',pricing: {currency: 'CNY',- input: 4,- output: 8,+ units: [+ { name: 'textInput', rate: 4, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 8, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -970,8 +1096,10 @@ const higressChatModels: AIChatModelCard[] = [maxOutput: 6000,pricing: {currency: 'CNY',- input: 0,- output: 0,+ units: [+ { name: 'textInput', rate: 0, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 0, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -985,8 +1113,10 @@ const higressChatModels: AIChatModelCard[] = [maxOutput: 2000,pricing: {currency: 'CNY',- input: 4.5,- output: 5,+ units: [+ { name: 'textInput', rate: 4.5, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 5, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -1000,8 +1130,10 @@ const higressChatModels: AIChatModelCard[] = [maxOutput: 6000,pricing: {currency: 'CNY',- input: 15,- output: 60,+ units: [+ { name: 'textInput', rate: 15, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 60, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -1018,8 +1150,10 @@ const higressChatModels: AIChatModelCard[] = [maxOutput: 4000,pricing: {currency: 'CNY',- input: 15,- output: 50,+ units: [+ { name: 'textInput', rate: 15, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 50, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -1036,8 +1170,10 @@ const higressChatModels: AIChatModelCard[] = [maxOutput: 4000,pricing: {currency: 'CNY',- input: 30,- output: 100,+ units: [+ { name: 'textInput', rate: 30, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 100, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -1063,8 +1199,10 @@ const higressChatModels: AIChatModelCard[] = [maxOutput: 4000,pricing: {currency: 'CNY',- input: 18,- output: 18,+ units: [+ { name: 'textInput', rate: 18, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 18, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -1077,8 +1215,10 @@ const higressChatModels: AIChatModelCard[] = [maxOutput: 4000,pricing: {currency: 'CNY',- input: 4,- output: 8,+ units: [+ { name: 'textInput', rate: 4, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 8, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -1094,8 +1234,10 @@ const higressChatModels: AIChatModelCard[] = [maxOutput: 4000,pricing: {currency: 'CNY',- input: 4,- output: 8,+ units: [+ { name: 'textInput', rate: 4, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 8, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -1108,8 +1250,10 @@ const higressChatModels: AIChatModelCard[] = [maxOutput: 4000,pricing: {currency: 'CNY',- input: 4,- output: 8,+ units: [+ { name: 'textInput', rate: 4, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 8, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -1124,8 +1268,10 @@ const higressChatModels: AIChatModelCard[] = [id: 'step-1-flash',pricing: {currency: 'CNY',- input: 1,- output: 4,+ units: [+ { name: 'textInput', rate: 1, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 4, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -1140,8 +1286,10 @@ const higressChatModels: AIChatModelCard[] = [id: 'step-1-8k',pricing: {currency: 'CNY',- input: 5,- output: 20,+ units: [+ { name: 'textInput', rate: 5, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 20, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -1156,8 +1304,10 @@ const higressChatModels: AIChatModelCard[] = [id: 'step-1-32k',pricing: {currency: 'CNY',- input: 15,- output: 70,+ units: [+ { name: 'textInput', rate: 15, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 70, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -1172,8 +1322,10 @@ const higressChatModels: AIChatModelCard[] = [id: 'step-1-128k',pricing: {currency: 'CNY',- input: 40,- output: 200,+ units: [+ { name: 'textInput', rate: 40, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 200, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -1187,8 +1339,10 @@ const higressChatModels: AIChatModelCard[] = [id: 'step-1-256k',pricing: {currency: 'CNY',- input: 95,- output: 300,+ units: [+ { name: 'textInput', rate: 95, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 300, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -1203,8 +1357,10 @@ const higressChatModels: AIChatModelCard[] = [id: 'step-2-16k',pricing: {currency: 'CNY',- input: 38,- output: 120,+ units: [+ { name: 'textInput', rate: 38, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 120, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -1220,8 +1376,10 @@ const higressChatModels: AIChatModelCard[] = [id: 'step-1v-8k',pricing: {currency: 'CNY',- input: 5,- output: 20,+ units: [+ { name: 'textInput', rate: 5, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 20, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -1237,8 +1395,10 @@ const higressChatModels: AIChatModelCard[] = [id: 'step-1v-32k',pricing: {currency: 'CNY',- input: 15,- output: 70,+ units: [+ { name: 'textInput', rate: 15, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 70, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -1253,8 +1413,10 @@ const higressChatModels: AIChatModelCard[] = [id: 'step-1.5v-mini',pricing: {currency: 'CNY',- input: 8,- output: 35,+ units: [+ { name: 'textInput', rate: 8, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 35, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -1327,8 +1489,10 @@ const higressChatModels: AIChatModelCard[] = [id: 'o1-mini',maxOutput: 65_536,pricing: {- input: 3,- output: 12,+ units: [+ { name: 'textInput', rate: 3, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 12, strategy: 'fixed', unit: 'millionTokens' },+ ],},releasedAt: '2024-09-12',type: 'chat',@@ -1342,8 +1506,10 @@ const higressChatModels: AIChatModelCard[] = [id: 'o1-preview',maxOutput: 32_768,pricing: {- input: 15,- output: 60,+ units: [+ { name: 'textInput', rate: 15, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 60, strategy: 'fixed', unit: 'millionTokens' },+ ],},releasedAt: '2024-09-12',type: 'chat',@@ -1361,8 +1527,10 @@ const higressChatModels: AIChatModelCard[] = [id: 'gpt-4o-mini',maxOutput: 16_385,pricing: {- input: 0.15,- output: 0.6,+ units: [+ { name: 'textInput', rate: 0.15, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 0.6, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -1378,8 +1546,10 @@ const higressChatModels: AIChatModelCard[] = [enabled: true,id: 'gpt-4o',pricing: {- input: 2.5,- output: 10,+ units: [+ { name: 'textInput', rate: 2.5, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 10, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -1394,8 +1564,10 @@ const higressChatModels: AIChatModelCard[] = [displayName: 'GPT-4o 0806',id: 'gpt-4o-2024-08-06',pricing: {- input: 2.5,- output: 10,+ units: [+ { name: 'textInput', rate: 2.5, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 10, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -1410,8 +1582,10 @@ const higressChatModels: AIChatModelCard[] = [displayName: 'GPT-4o 0513',id: 'gpt-4o-2024-05-13',pricing: {- input: 5,- output: 15,+ units: [+ { name: 'textInput', rate: 5, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 15, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -1426,8 +1600,10 @@ const higressChatModels: AIChatModelCard[] = [enabled: true,id: 'chatgpt-4o-latest',pricing: {- input: 5,- output: 15,+ units: [+ { name: 'textInput', rate: 5, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 15, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -1442,8 +1618,10 @@ const higressChatModels: AIChatModelCard[] = [displayName: 'GPT-4 Turbo',id: 'gpt-4-turbo',pricing: {- input: 10,- output: 30,+ units: [+ { name: 'textInput', rate: 10, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 30, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -1458,8 +1636,10 @@ const higressChatModels: AIChatModelCard[] = [displayName: 'GPT-4 Turbo Vision 0409',id: 'gpt-4-turbo-2024-04-09',pricing: {- input: 10,- output: 30,+ units: [+ { name: 'textInput', rate: 10, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 30, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -1473,8 +1653,10 @@ const higressChatModels: AIChatModelCard[] = [displayName: 'GPT-4 Turbo Preview',id: 'gpt-4-turbo-preview',pricing: {- input: 10,- output: 30,+ units: [+ { name: 'textInput', rate: 10, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 30, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -1488,8 +1670,10 @@ const higressChatModels: AIChatModelCard[] = [displayName: 'GPT-4 Turbo Preview 0125',id: 'gpt-4-0125-preview',pricing: {- input: 10,- output: 30,+ units: [+ { name: 'textInput', rate: 10, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 30, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -1503,8 +1687,10 @@ const higressChatModels: AIChatModelCard[] = [displayName: 'GPT-4 Turbo Preview 1106',id: 'gpt-4-1106-preview',pricing: {- input: 10,- output: 30,+ units: [+ { name: 'textInput', rate: 10, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 30, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -1518,8 +1704,10 @@ const higressChatModels: AIChatModelCard[] = [displayName: 'GPT-4',id: 'gpt-4',pricing: {- input: 30,- output: 60,+ units: [+ { name: 'textInput', rate: 30, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 60, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -1533,8 +1721,10 @@ const higressChatModels: AIChatModelCard[] = [displayName: 'GPT-4 0613',id: 'gpt-4-0613',pricing: {- input: 30,- output: 60,+ units: [+ { name: 'textInput', rate: 30, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 60, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -1548,8 +1738,10 @@ const higressChatModels: AIChatModelCard[] = [displayName: 'GPT-4 32K',id: 'gpt-4-32k',pricing: {- input: 60,- output: 120,+ units: [+ { name: 'textInput', rate: 60, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 120, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -1563,8 +1755,10 @@ const higressChatModels: AIChatModelCard[] = [displayName: 'GPT-4 32K 0613',id: 'gpt-4-32k-0613',pricing: {- input: 60,- output: 120,+ units: [+ { name: 'textInput', rate: 60, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 120, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -1578,8 +1772,10 @@ const higressChatModels: AIChatModelCard[] = [displayName: 'GPT-3.5 Turbo',id: 'gpt-3.5-turbo',pricing: {- input: 0.5,- output: 1.5,+ units: [+ { name: 'textInput', rate: 0.5, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 1.5, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -1593,8 +1789,10 @@ const higressChatModels: AIChatModelCard[] = [displayName: 'GPT-3.5 Turbo 0125',id: 'gpt-3.5-turbo-0125',pricing: {- input: 0.5,- output: 1.5,+ units: [+ { name: 'textInput', rate: 0.5, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 1.5, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -1608,8 +1806,10 @@ const higressChatModels: AIChatModelCard[] = [displayName: 'GPT-3.5 Turbo 1106',id: 'gpt-3.5-turbo-1106',pricing: {- input: 1,- output: 2,+ units: [+ { name: 'textInput', rate: 1, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 2, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -1620,8 +1820,10 @@ const higressChatModels: AIChatModelCard[] = [displayName: 'GPT-3.5 Turbo Instruct',id: 'gpt-3.5-turbo-instruct',pricing: {- input: 1.5,- output: 2,+ units: [+ { name: 'textInput', rate: 1.5, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 2, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -1957,8 +2159,10 @@ const higressChatModels: AIChatModelCard[] = [id: 'llama-3.2-11b-vision-preview',maxOutput: 8192,pricing: {- input: 0.05,- output: 0.08,+ units: [+ { name: 'textInput', rate: 0.05, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 0.08, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -1974,8 +2178,10 @@ const higressChatModels: AIChatModelCard[] = [id: 'llama-3.2-90b-vision-preview',maxOutput: 8192,pricing: {- input: 0.59,- output: 0.79,+ units: [+ { name: 'textInput', rate: 0.59, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 0.79, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -1991,8 +2197,10 @@ const higressChatModels: AIChatModelCard[] = [id: 'llama-3.1-8b-instant',maxOutput: 8192,pricing: {- input: 0.05,- output: 0.08,+ units: [+ { name: 'textInput', rate: 0.05, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 0.08, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -2008,8 +2216,10 @@ const higressChatModels: AIChatModelCard[] = [id: 'llama-3.1-70b-versatile',maxOutput: 8192,pricing: {- input: 0.59,- output: 0.79,+ units: [+ { name: 'textInput', rate: 0.59, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 0.79, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -2022,8 +2232,10 @@ const higressChatModels: AIChatModelCard[] = [displayName: 'Llama 3 Groq 8B Tool Use (Preview)',id: 'llama3-groq-8b-8192-tool-use-preview',pricing: {- input: 0.19,- output: 0.19,+ units: [+ { name: 'textInput', rate: 0.19, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 0.19, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -2036,8 +2248,10 @@ const higressChatModels: AIChatModelCard[] = [displayName: 'Llama 3 Groq 70B Tool Use (Preview)',id: 'llama3-groq-70b-8192-tool-use-preview',pricing: {- input: 0.89,- output: 0.89,+ units: [+ { name: 'textInput', rate: 0.89, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 0.89, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -2050,8 +2264,10 @@ const higressChatModels: AIChatModelCard[] = [displayName: 'Meta Llama 3 8B',id: 'llama3-8b-8192',pricing: {- input: 0.05,- output: 0.08,+ units: [+ { name: 'textInput', rate: 0.05, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 0.08, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -2064,8 +2280,10 @@ const higressChatModels: AIChatModelCard[] = [displayName: 'Meta Llama 3 70B',id: 'llama3-70b-8192',pricing: {- input: 0.59,- output: 0.79,+ units: [+ { name: 'textInput', rate: 0.59, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 0.79, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -2079,8 +2297,10 @@ const higressChatModels: AIChatModelCard[] = [enabled: true,id: 'gemma2-9b-it',pricing: {- input: 0.2,- output: 0.2,+ units: [+ { name: 'textInput', rate: 0.2, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 0.2, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -2093,8 +2313,10 @@ const higressChatModels: AIChatModelCard[] = [displayName: 'Gemma 7B',id: 'gemma-7b-it',pricing: {- input: 0.07,- output: 0.07,+ units: [+ { name: 'textInput', rate: 0.07, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 0.07, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -2107,8 +2329,10 @@ const higressChatModels: AIChatModelCard[] = [displayName: 'Mixtral 8x7B',id: 'mixtral-8x7b-32768',pricing: {- input: 0.24,- output: 0.24,+ units: [+ { name: 'textInput', rate: 0.24, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 0.24, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -2133,9 +2357,11 @@ const higressChatModels: AIChatModelCard[] = [enabled: true,id: 'deepseek-chat',pricing: {- cachedInput: 0.014,- input: 0.14,- output: 0.28,+ units: [+ { name: 'textInput_cacheRead', rate: 0.014, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textInput', rate: 0.14, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 0.28, strategy: 'fixed', unit: 'millionTokens' },+ ],},releasedAt: '2024-09-05',type: 'chat',@@ -2152,10 +2378,17 @@ const higressChatModels: AIChatModelCard[] = [id: 'claude-3-5-haiku-20241022',maxOutput: 8192,pricing: {- cachedInput: 0.1,- input: 1,- output: 5,- writeCacheInput: 1.25,+ units: [+ { name: 'textInput_cacheRead', rate: 0.1, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textInput', rate: 1, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 5, strategy: 'fixed', unit: 'millionTokens' },+ {+ lookup: { prices: { '5m': 1.25 }, pricingParams: ['ttl'] },+ name: 'textInput_cacheWrite',+ strategy: 'lookup',+ unit: 'millionTokens',+ },+ ],},releasedAt: '2024-11-05',type: 'chat',@@ -2173,10 +2406,17 @@ const higressChatModels: AIChatModelCard[] = [id: 'claude-3-5-sonnet-20241022',maxOutput: 8192,pricing: {- cachedInput: 0.3,- input: 3,- output: 15,- writeCacheInput: 3.75,+ units: [+ { name: 'textInput_cacheRead', rate: 0.3, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textInput', rate: 3, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 15, strategy: 'fixed', unit: 'millionTokens' },+ {+ lookup: { prices: { '5m': 3.75 }, pricingParams: ['ttl'] },+ name: 'textInput_cacheWrite',+ strategy: 'lookup',+ unit: 'millionTokens',+ },+ ],},releasedAt: '2024-10-22',type: 'chat',@@ -2193,10 +2433,17 @@ const higressChatModels: AIChatModelCard[] = [id: 'claude-3-5-sonnet-20240620',maxOutput: 8192,pricing: {- cachedInput: 0.3,- input: 3,- output: 15,- writeCacheInput: 3.75,+ units: [+ { name: 'textInput_cacheRead', rate: 0.3, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textInput', rate: 3, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 15, strategy: 'fixed', unit: 'millionTokens' },+ {+ lookup: { prices: { '5m': 3.75 }, pricingParams: ['ttl'] },+ name: 'textInput_cacheWrite',+ strategy: 'lookup',+ unit: 'millionTokens',+ },+ ],},releasedAt: '2024-06-20',type: 'chat',@@ -2213,8 +2460,10 @@ const higressChatModels: AIChatModelCard[] = [id: 'claude-3-haiku-20240307',maxOutput: 4096,pricing: {- input: 0.25,- output: 1.25,+ units: [+ { name: 'textInput', rate: 0.25, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 1.25, strategy: 'fixed', unit: 'millionTokens' },+ ],},releasedAt: '2024-03-07',type: 'chat',@@ -2231,8 +2480,10 @@ const higressChatModels: AIChatModelCard[] = [id: 'claude-3-sonnet-20240229',maxOutput: 4096,pricing: {- input: 3,- output: 15,+ units: [+ { name: 'textInput', rate: 3, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 15, strategy: 'fixed', unit: 'millionTokens' },+ ],},releasedAt: '2024-02-29',type: 'chat',@@ -2250,8 +2501,10 @@ const higressChatModels: AIChatModelCard[] = [id: 'claude-3-opus-20240229',maxOutput: 4096,pricing: {- input: 15,- output: 75,+ units: [+ { name: 'textInput', rate: 15, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 75, strategy: 'fixed', unit: 'millionTokens' },+ ],},releasedAt: '2024-02-29',type: 'chat',@@ -2264,8 +2517,10 @@ const higressChatModels: AIChatModelCard[] = [id: 'claude-2.1',maxOutput: 4096,pricing: {- input: 8,- output: 24,+ units: [+ { name: 'textInput', rate: 8, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 24, strategy: 'fixed', unit: 'millionTokens' },+ ],},releasedAt: '2023-11-21',type: 'chat',@@ -2278,8 +2533,10 @@ const higressChatModels: AIChatModelCard[] = [id: 'claude-2.0',maxOutput: 4096,pricing: {- input: 8,- output: 24,+ units: [+ { name: 'textInput', rate: 8, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 24, strategy: 'fixed', unit: 'millionTokens' },+ ],},releasedAt: '2023-07-11',type: 'chat',@@ -2297,9 +2554,11 @@ const higressChatModels: AIChatModelCard[] = [id: 'gemini-1.5-flash-latest',maxOutput: 8192,pricing: {- cachedInput: 0.018_75,- input: 0.075,- output: 0.3,+ units: [+ { name: 'textInput_cacheRead', rate: 0.018, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textInput', rate: 0.075, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 0.3, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -2315,9 +2574,11 @@ const higressChatModels: AIChatModelCard[] = [id: 'gemini-1.5-flash-002',maxOutput: 8192,pricing: {- cachedInput: 0.018_75,- input: 0.075,- output: 0.3,+ units: [+ { name: 'textInput_cacheRead', rate: 0.018, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textInput', rate: 0.075, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 0.3, strategy: 'fixed', unit: 'millionTokens' },+ ],},releasedAt: '2024-09-25',type: 'chat',@@ -2333,9 +2594,11 @@ const higressChatModels: AIChatModelCard[] = [id: 'gemini-1.5-flash-001',maxOutput: 8192,pricing: {- cachedInput: 0.018_75,- input: 0.075,- output: 0.3,+ units: [+ { name: 'textInput_cacheRead', rate: 0.018, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textInput', rate: 0.075, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 0.3, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -2350,9 +2613,11 @@ const higressChatModels: AIChatModelCard[] = [id: 'gemini-1.5-flash-exp-0827',maxOutput: 8192,pricing: {- cachedInput: 0.018_75,- input: 0.075,- output: 0.3,+ units: [+ { name: 'textInput_cacheRead', rate: 0.018, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textInput', rate: 0.075, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 0.3, strategy: 'fixed', unit: 'millionTokens' },+ ],},releasedAt: '2024-08-27',type: 'chat',@@ -2369,9 +2634,11 @@ const higressChatModels: AIChatModelCard[] = [id: 'gemini-1.5-flash-8b',maxOutput: 8192,pricing: {- cachedInput: 0.02,- input: 0.075,- output: 0.3,+ units: [+ { name: 'textInput_cacheRead', rate: 0.02, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textInput', rate: 0.075, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 0.3, strategy: 'fixed', unit: 'millionTokens' },+ ],},releasedAt: '2024-10-03',type: 'chat',@@ -2388,9 +2655,11 @@ const higressChatModels: AIChatModelCard[] = [id: 'gemini-1.5-flash-8b-exp-0924',maxOutput: 8192,pricing: {- cachedInput: 0.018_75,- input: 0.075,- output: 0.3,+ units: [+ { name: 'textInput_cacheRead', rate: 0.018, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textInput', rate: 0.075, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 0.3, strategy: 'fixed', unit: 'millionTokens' },+ ],},releasedAt: '2024-09-24',type: 'chat',@@ -2408,9 +2677,11 @@ const higressChatModels: AIChatModelCard[] = [id: 'gemini-1.5-pro-latest',maxOutput: 8192,pricing: {- cachedInput: 0.875,- input: 3.5,- output: 10.5,+ units: [+ { name: 'textInput_cacheRead', rate: 0.875, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textInput', rate: 3.5, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 10.5, strategy: 'fixed', unit: 'millionTokens' },+ ],},releasedAt: '2024-02-15',type: 'chat',@@ -2428,9 +2699,11 @@ const higressChatModels: AIChatModelCard[] = [id: 'gemini-1.5-pro-002',maxOutput: 8192,pricing: {- cachedInput: 0.315,- input: 1.25,- output: 2.5,+ units: [+ { name: 'textInput_cacheRead', rate: 0.315, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textInput', rate: 1.25, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 2.5, strategy: 'fixed', unit: 'millionTokens' },+ ],},releasedAt: '2024-09-24',type: 'chat',@@ -2446,9 +2719,11 @@ const higressChatModels: AIChatModelCard[] = [id: 'gemini-1.5-pro-001',maxOutput: 8192,pricing: {- cachedInput: 0.875,- input: 3.5,- output: 10.5,+ units: [+ { name: 'textInput_cacheRead', rate: 0.875, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textInput', rate: 3.5, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 10.5, strategy: 'fixed', unit: 'millionTokens' },+ ],},releasedAt: '2024-02-15',type: 'chat',@@ -2464,9 +2739,11 @@ const higressChatModels: AIChatModelCard[] = [id: 'gemini-1.5-pro-exp-0827',maxOutput: 8192,pricing: {- cachedInput: 0.875,- input: 3.5,- output: 10.5,+ units: [+ { name: 'textInput_cacheRead', rate: 0.875, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textInput', rate: 3.5, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 10.5, strategy: 'fixed', unit: 'millionTokens' },+ ],},releasedAt: '2024-08-27',type: 'chat',@@ -2482,9 +2759,11 @@ const higressChatModels: AIChatModelCard[] = [id: 'gemini-1.5-pro-exp-0801',maxOutput: 8192,pricing: {- cachedInput: 0.875,- input: 3.5,- output: 10.5,+ units: [+ { name: 'textInput_cacheRead', rate: 0.875, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textInput', rate: 3.5, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 10.5, strategy: 'fixed', unit: 'millionTokens' },+ ],},releasedAt: '2024-08-01',type: 'chat',@@ -2496,8 +2775,10 @@ const higressChatModels: AIChatModelCard[] = [id: 'gemini-1.0-pro-latest',maxOutput: 2048,pricing: {- input: 0.5,- output: 1.5,+ units: [+ { name: 'textInput', rate: 0.5, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 1.5, strategy: 'fixed', unit: 'millionTokens' },+ ],},releasedAt: '2023-12-06',type: 'chat',@@ -2513,8 +2794,10 @@ const higressChatModels: AIChatModelCard[] = [id: 'gemini-1.0-pro-001',maxOutput: 2048,pricing: {- input: 0.5,- output: 1.5,+ units: [+ { name: 'textInput', rate: 0.5, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 1.5, strategy: 'fixed', unit: 'millionTokens' },+ ],},releasedAt: '2023-12-06',type: 'chat',@@ -2526,8 +2809,10 @@ const higressChatModels: AIChatModelCard[] = [id: 'gemini-1.0-pro-002',maxOutput: 2048,pricing: {- input: 0.5,- output: 1.5,+ units: [+ { name: 'textInput', rate: 0.5, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 1.5, strategy: 'fixed', unit: 'millionTokens' },+ ],},releasedAt: '2023-12-06',type: 'chat',@@ -2543,8 +2828,10 @@ const higressChatModels: AIChatModelCard[] = [enabled: true,id: 'open-mistral-nemo',pricing: {- input: 0.15,- output: 0.15,+ units: [+ { name: 'textInput', rate: 0.15, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 0.15, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -2558,8 +2845,10 @@ const higressChatModels: AIChatModelCard[] = [enabled: true,id: 'mistral-small-latest',pricing: {- input: 0.2,- output: 0.6,+ units: [+ { name: 'textInput', rate: 0.2, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 0.6, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -2574,8 +2863,10 @@ const higressChatModels: AIChatModelCard[] = [enabled: true,id: 'mistral-large-latest',pricing: {- input: 2,- output: 6,+ units: [+ { name: 'textInput', rate: 2, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 6, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -2585,8 +2876,10 @@ const higressChatModels: AIChatModelCard[] = [displayName: 'Codestral',id: 'codestral-latest',pricing: {- input: 0.2,- output: 0.6,+ units: [+ { name: 'textInput', rate: 0.2, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 0.6, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -2601,8 +2894,10 @@ const higressChatModels: AIChatModelCard[] = [enabled: true,id: 'pixtral-12b-2409',pricing: {- input: 0.15,- output: 0.15,+ units: [+ { name: 'textInput', rate: 0.15, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 0.15, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -2612,8 +2907,10 @@ const higressChatModels: AIChatModelCard[] = [displayName: 'Ministral 3B',id: 'ministral-3b-latest',pricing: {- input: 0.04,- output: 0.04,+ units: [+ { name: 'textInput', rate: 0.04, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 0.04, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -2623,8 +2920,10 @@ const higressChatModels: AIChatModelCard[] = [displayName: 'Ministral 8B',id: 'ministral-8b-latest',pricing: {- input: 0.1,- output: 0.1,+ units: [+ { name: 'textInput', rate: 0.1, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 0.1, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -2635,8 +2934,10 @@ const higressChatModels: AIChatModelCard[] = [displayName: 'Mistral 7B',id: 'open-mistral-7b',pricing: {- input: 0.25,- output: 0.25,+ units: [+ { name: 'textInput', rate: 0.25, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 0.25, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -2647,8 +2948,10 @@ const higressChatModels: AIChatModelCard[] = [displayName: 'Mixtral 8x7B',id: 'open-mixtral-8x7b',pricing: {- input: 0.7,- output: 0.7,+ units: [+ { name: 'textInput', rate: 0.7, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 0.7, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -2662,8 +2965,10 @@ const higressChatModels: AIChatModelCard[] = [displayName: 'Mixtral 8x22B',id: 'open-mixtral-8x22b',pricing: {- input: 2,- output: 6,+ units: [+ { name: 'textInput', rate: 2, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 6, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -2674,8 +2979,10 @@ const higressChatModels: AIChatModelCard[] = [displayName: 'Codestral Mamba',id: 'open-codestral-mamba',pricing: {- input: 0.15,- output: 0.15,+ units: [+ { name: 'textInput', rate: 0.15, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 0.15, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},diff --git a/src/config/aiModels/hunyuan.ts b/src/config/aiModels/hunyuan.tsindex 8296b8527b3..4d110775ad0 100644--- a/src/config/aiModels/hunyuan.ts+++ b/src/config/aiModels/hunyuan.ts@@ -35,8 +35,10 @@ const hunyuanChatModels: AIChatModelCard[] = [maxOutput: 64_000,pricing: {currency: 'CNY',- input: 1,- output: 4,+ units: [+ { name: 'textInput', rate: 1, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 4, strategy: 'fixed', unit: 'millionTokens' },+ ],},releasedAt: '2025-05-21',settings: {@@ -50,15 +52,16 @@ const hunyuanChatModels: AIChatModelCard[] = [search: true,},contextWindowTokens: 92_000,- description:- '大幅提升高难度数学、逻辑和代码能力,优化模型输出稳定性,提升模型长文能力。',+ description: '大幅提升高难度数学、逻辑和代码能力,优化模型输出稳定性,提升模型长文能力。',displayName: 'Hunyuan T1 20250711',id: 'hunyuan-t1-20250711',maxOutput: 64_000,pricing: {currency: 'CNY',- input: 1,- output: 4,+ units: [+ { name: 'textInput', rate: 1, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 4, strategy: 'fixed', unit: 'millionTokens' },+ ],},releasedAt: '2025-07-11',settings: {@@ -79,8 +82,10 @@ const hunyuanChatModels: AIChatModelCard[] = [maxOutput: 64_000,pricing: {currency: 'CNY',- input: 1,- output: 4,+ units: [+ { name: 'textInput', rate: 1, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 4, strategy: 'fixed', unit: 'millionTokens' },+ ],},releasedAt: '2025-05-29',settings: {@@ -101,8 +106,10 @@ const hunyuanChatModels: AIChatModelCard[] = [maxOutput: 64_000,pricing: {currency: 'CNY',- input: 1,- output: 4,+ units: [+ { name: 'textInput', rate: 1, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 4, strategy: 'fixed', unit: 'millionTokens' },+ ],},releasedAt: '2025-04-03',settings: {@@ -123,8 +130,10 @@ const hunyuanChatModels: AIChatModelCard[] = [maxOutput: 64_000,pricing: {currency: 'CNY',- input: 1,- output: 4,+ units: [+ { name: 'textInput', rate: 1, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 4, strategy: 'fixed', unit: 'millionTokens' },+ ],},releasedAt: '2025-03-21',settings: {@@ -142,8 +151,10 @@ const hunyuanChatModels: AIChatModelCard[] = [maxOutput: 6000,pricing: {currency: 'CNY',- input: 0,- output: 0,+ units: [+ { name: 'textInput', rate: 0, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 0, strategy: 'fixed', unit: 'millionTokens' },+ ],},releasedAt: '2024-10-30',type: 'chat',@@ -160,8 +171,10 @@ const hunyuanChatModels: AIChatModelCard[] = [maxOutput: 2000,pricing: {currency: 'CNY',- input: 0.8,- output: 2,+ units: [+ { name: 'textInput', rate: 0.8, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 2, strategy: 'fixed', unit: 'millionTokens' },+ ],},releasedAt: '2025-02-10',settings: {@@ -181,8 +194,10 @@ const hunyuanChatModels: AIChatModelCard[] = [maxOutput: 6000,pricing: {currency: 'CNY',- input: 0.5,- output: 2,+ units: [+ { name: 'textInput', rate: 0.5, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 2, strategy: 'fixed', unit: 'millionTokens' },+ ],},releasedAt: '2025-02-10',settings: {@@ -203,8 +218,10 @@ const hunyuanChatModels: AIChatModelCard[] = [maxOutput: 4000,pricing: {currency: 'CNY',- input: 4,- output: 12,+ units: [+ { name: 'textInput', rate: 4, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 12, strategy: 'fixed', unit: 'millionTokens' },+ ],},releasedAt: '2025-02-10',settings: {@@ -224,8 +241,10 @@ const hunyuanChatModels: AIChatModelCard[] = [maxOutput: 6000,pricing: {currency: 'CNY',- input: 6,- output: 18,+ units: [+ { name: 'textInput', rate: 6, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 18, strategy: 'fixed', unit: 'millionTokens' },+ ],},releasedAt: '2024-12-18',settings: {@@ -246,8 +265,10 @@ const hunyuanChatModels: AIChatModelCard[] = [maxOutput: 4000,pricing: {currency: 'CNY',- input: 2.4,- output: 9.6,+ units: [+ { name: 'textInput', rate: 2.4, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 9.6, strategy: 'fixed', unit: 'millionTokens' },+ ],},releasedAt: '2025-01-10',settings: {@@ -268,8 +289,10 @@ const hunyuanChatModels: AIChatModelCard[] = [maxOutput: 4000,pricing: {currency: 'CNY',- input: 2.4,- output: 9.6,+ units: [+ { name: 'textInput', rate: 2.4, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 9.6, strategy: 'fixed', unit: 'millionTokens' },+ ],},releasedAt: '2025-01-10',settings: {@@ -290,8 +313,10 @@ const hunyuanChatModels: AIChatModelCard[] = [maxOutput: 6000,pricing: {currency: 'CNY',- input: 1.5,- output: 6,+ units: [+ { name: 'textInput', rate: 1.5, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 6, strategy: 'fixed', unit: 'millionTokens' },+ ],},releasedAt: '2025-03-25',settings: {@@ -312,8 +337,10 @@ const hunyuanChatModels: AIChatModelCard[] = [maxOutput: 16_000,pricing: {currency: 'CNY',- input: 0.8,- output: 2,+ units: [+ { name: 'textInput', rate: 0.8, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 2, strategy: 'fixed', unit: 'millionTokens' },+ ],},releasedAt: '2025-05-20',settings: {@@ -334,8 +361,10 @@ const hunyuanChatModels: AIChatModelCard[] = [maxOutput: 16_000,pricing: {currency: 'CNY',- input: 0.8,- output: 2,+ units: [+ { name: 'textInput', rate: 0.8, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 2, strategy: 'fixed', unit: 'millionTokens' },+ ],},releasedAt: '2025-06-04',settings: {@@ -356,8 +385,10 @@ const hunyuanChatModels: AIChatModelCard[] = [maxOutput: 8000,pricing: {currency: 'CNY',- input: 0.8,- output: 2,+ units: [+ { name: 'textInput', rate: 0.8, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 2, strategy: 'fixed', unit: 'millionTokens' },+ ],},releasedAt: '2025-04-16',settings: {@@ -378,8 +409,10 @@ const hunyuanChatModels: AIChatModelCard[] = [maxOutput: 8000,pricing: {currency: 'CNY',- input: 0.8,- output: 2,+ units: [+ { name: 'textInput', rate: 0.8, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 2, strategy: 'fixed', unit: 'millionTokens' },+ ],},releasedAt: '2025-03-13',settings: {@@ -424,8 +457,10 @@ const hunyuanChatModels: AIChatModelCard[] = [maxOutput: 2000,pricing: {currency: 'CNY',- input: 80,- output: 80,+ units: [+ { name: 'textInput', rate: 80, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 80, strategy: 'fixed', unit: 'millionTokens' },+ ],},releasedAt: '2024-11-26',type: 'chat',@@ -456,8 +491,10 @@ const hunyuanChatModels: AIChatModelCard[] = [maxOutput: 24_000,pricing: {currency: 'CNY',- input: 1,- output: 4,+ units: [+ { name: 'textInput', rate: 1, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 4, strategy: 'fixed', unit: 'millionTokens' },+ ],},releasedAt: '2025-06-19',type: 'chat',@@ -475,8 +512,10 @@ const hunyuanChatModels: AIChatModelCard[] = [maxOutput: 24_000,pricing: {currency: 'CNY',- input: 1,- output: 4,+ units: [+ { name: 'textInput', rate: 1, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 4, strategy: 'fixed', unit: 'millionTokens' },+ ],},releasedAt: '2025-05-16',type: 'chat',@@ -493,8 +532,10 @@ const hunyuanChatModels: AIChatModelCard[] = [maxOutput: 16_000,pricing: {currency: 'CNY',- input: 3,- output: 9,+ units: [+ { name: 'textInput', rate: 3, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 9, strategy: 'fixed', unit: 'millionTokens' },+ ],},releasedAt: '2025-06-19',type: 'chat',@@ -511,8 +552,10 @@ const hunyuanChatModels: AIChatModelCard[] = [maxOutput: 24_000,pricing: {currency: 'CNY',- input: 3,- output: 9,+ units: [+ { name: 'textInput', rate: 3, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 9, strategy: 'fixed', unit: 'millionTokens' },+ ],},releasedAt: '2025-05-23',type: 'chat',@@ -528,8 +571,10 @@ const hunyuanChatModels: AIChatModelCard[] = [maxOutput: 16_000,pricing: {currency: 'CNY',- input: 18,- output: 18,+ units: [+ { name: 'textInput', rate: 18, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 18, strategy: 'fixed', unit: 'millionTokens' },+ ],},releasedAt: '2025-01-03',type: 'chat',@@ -543,8 +588,10 @@ const hunyuanChatModels: AIChatModelCard[] = [maxOutput: 4000,pricing: {currency: 'CNY',- input: 3.5,- output: 7,+ units: [+ { name: 'textInput', rate: 3.5, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 7, strategy: 'fixed', unit: 'millionTokens' },+ ],},releasedAt: '2024-11-12',type: 'chat',@@ -561,8 +608,10 @@ const hunyuanChatModels: AIChatModelCard[] = [maxOutput: 4000,pricing: {currency: 'CNY',- input: 4,- output: 8,+ units: [+ { name: 'textInput', rate: 4, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 8, strategy: 'fixed', unit: 'millionTokens' },+ ],},releasedAt: '2025-04-22',type: 'chat',@@ -576,8 +625,10 @@ const hunyuanChatModels: AIChatModelCard[] = [maxOutput: 4000,pricing: {currency: 'CNY',- input: 4,- output: 8,+ units: [+ { name: 'textInput', rate: 4, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 8, strategy: 'fixed', unit: 'millionTokens' },+ ],},releasedAt: '2024-07-04',type: 'chat',diff --git a/src/config/aiModels/infiniai.ts b/src/config/aiModels/infiniai.tsindex c0e951079b2..47462f488d8 100644--- a/src/config/aiModels/infiniai.ts+++ b/src/config/aiModels/infiniai.ts@@ -17,8 +17,10 @@ const infiniaiChatModels: AIChatModelCard[] = [id: 'deepseek-r1',pricing: {currency: 'CNY',- input: 0,- output: 0,+ units: [+ { name: 'textInput', rate: 0, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 0, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -31,8 +33,10 @@ const infiniaiChatModels: AIChatModelCard[] = [id: 'deepseek-v3',pricing: {currency: 'CNY',- input: 0,- output: 0,+ units: [+ { name: 'textInput', rate: 0, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 0, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -49,8 +53,10 @@ const infiniaiChatModels: AIChatModelCard[] = [id: 'qwen3-235b-a22b',pricing: {currency: 'CNY',- input: 0,- output: 0,+ units: [+ { name: 'textInput', rate: 0, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 0, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -67,8 +73,10 @@ const infiniaiChatModels: AIChatModelCard[] = [id: 'qwen3-30b-a3b',pricing: {currency: 'CNY',- input: 0,- output: 0,+ units: [+ { name: 'textInput', rate: 0, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 0, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -85,8 +93,10 @@ const infiniaiChatModels: AIChatModelCard[] = [id: 'qwen3-32b',pricing: {currency: 'CNY',- input: 0,- output: 0,+ units: [+ { name: 'textInput', rate: 0, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 0, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -103,8 +113,10 @@ const infiniaiChatModels: AIChatModelCard[] = [id: 'qwen3-14b',pricing: {currency: 'CNY',- input: 0,- output: 0,+ units: [+ { name: 'textInput', rate: 0, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 0, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -121,8 +133,10 @@ const infiniaiChatModels: AIChatModelCard[] = [id: 'qwen3-8b',pricing: {currency: 'CNY',- input: 0,- output: 0,+ units: [+ { name: 'textInput', rate: 0, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 0, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -138,8 +152,10 @@ const infiniaiChatModels: AIChatModelCard[] = [id: 'qwen2.5-vl-72b-instruct',pricing: {currency: 'CNY',- input: 0,- output: 0,+ units: [+ { name: 'textInput', rate: 0, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 0, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -155,8 +171,10 @@ const infiniaiChatModels: AIChatModelCard[] = [id: 'qwen2.5-vl-32b-instruct',pricing: {currency: 'CNY',- input: 0,- output: 0,+ units: [+ { name: 'textInput', rate: 0, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 0, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -171,8 +189,10 @@ const infiniaiChatModels: AIChatModelCard[] = [id: 'qwen2.5-vl-7b-instruct',pricing: {currency: 'CNY',- input: 0,- output: 0,+ units: [+ { name: 'textInput', rate: 0, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 0, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -188,8 +208,10 @@ const infiniaiChatModels: AIChatModelCard[] = [id: 'qwen2.5-72b-instruct',pricing: {currency: 'CNY',- input: 0,- output: 0,+ units: [+ { name: 'textInput', rate: 0, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 0, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -205,8 +227,10 @@ const infiniaiChatModels: AIChatModelCard[] = [id: 'qwen2.5-32b-instruct',pricing: {currency: 'CNY',- input: 0,- output: 0,+ units: [+ { name: 'textInput', rate: 0, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 0, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -218,8 +242,10 @@ const infiniaiChatModels: AIChatModelCard[] = [id: 'qwen2.5-coder-32b-instruct',pricing: {currency: 'CNY',- input: 0,- output: 0,+ units: [+ { name: 'textInput', rate: 0, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 0, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -231,8 +257,10 @@ const infiniaiChatModels: AIChatModelCard[] = [id: 'qwen2.5-14b-instruct',pricing: {currency: 'CNY',- input: 0,- output: 0,+ units: [+ { name: 'textInput', rate: 0, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 0, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -247,8 +275,10 @@ const infiniaiChatModels: AIChatModelCard[] = [id: 'qwen2.5-7b-instruct',pricing: {currency: 'CNY',- input: 0,- output: 0,+ units: [+ { name: 'textInput', rate: 0, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 0, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -265,8 +295,10 @@ const infiniaiChatModels: AIChatModelCard[] = [id: 'qwq-32b',pricing: {currency: 'CNY',- input: 0,- output: 0,+ units: [+ { name: 'textInput', rate: 0, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 0, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -279,8 +311,10 @@ const infiniaiChatModels: AIChatModelCard[] = [id: 'deepseek-r1-distill-qwen-32b',pricing: {currency: 'CNY',- input: 0,- output: 0,+ units: [+ { name: 'textInput', rate: 0, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 0, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -293,8 +327,10 @@ const infiniaiChatModels: AIChatModelCard[] = [id: 'llama-3.3-70b-instruct',pricing: {currency: 'CNY',- input: 0,- output: 0,+ units: [+ { name: 'textInput', rate: 0, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 0, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -306,8 +342,10 @@ const infiniaiChatModels: AIChatModelCard[] = [id: 'qwen2-72b-instruct',pricing: {currency: 'CNY',- input: 0,- output: 0,+ units: [+ { name: 'textInput', rate: 0, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 0, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -319,8 +357,10 @@ const infiniaiChatModels: AIChatModelCard[] = [id: 'qwen2-7b-instruct',pricing: {currency: 'CNY',- input: 0,- output: 0,+ units: [+ { name: 'textInput', rate: 0, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 0, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -332,8 +372,10 @@ const infiniaiChatModels: AIChatModelCard[] = [id: 'yi-1.5-34b-chat',pricing: {currency: 'CNY',- input: 0,- output: 0,+ units: [+ { name: 'textInput', rate: 0, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 0, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -344,8 +386,10 @@ const infiniaiChatModels: AIChatModelCard[] = [id: 'glm-4-9b-chat',pricing: {currency: 'CNY',- input: 0,- output: 0,+ units: [+ { name: 'textInput', rate: 0, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 0, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -357,8 +401,10 @@ const infiniaiChatModels: AIChatModelCard[] = [id: 'chatglm3',pricing: {currency: 'CNY',- input: 0,- output: 0,+ units: [+ { name: 'textInput', rate: 0, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 0, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -370,8 +416,10 @@ const infiniaiChatModels: AIChatModelCard[] = [id: 'chatglm3-6b-base',pricing: {currency: 'CNY',- input: 0,- output: 0,+ units: [+ { name: 'textInput', rate: 0, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 0, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -383,8 +431,10 @@ const infiniaiChatModels: AIChatModelCard[] = [id: 'llama-2-7b-chat',pricing: {currency: 'CNY',- input: 0,- output: 0,+ units: [+ { name: 'textInput', rate: 0, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 0, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -396,8 +446,10 @@ const infiniaiChatModels: AIChatModelCard[] = [id: 'megrez-3b-instruct',pricing: {currency: 'CNY',- input: 0,- output: 0,+ units: [+ { name: 'textInput', rate: 0, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 0, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},diff --git a/src/config/aiModels/internlm.ts b/src/config/aiModels/internlm.tsindex ba6c74b6e2c..d8801b2dc72 100644--- a/src/config/aiModels/internlm.ts+++ b/src/config/aiModels/internlm.ts@@ -14,8 +14,10 @@ const internlmChatModels: AIChatModelCard[] = [enabled: true,id: 'internlm3-latest',pricing: {- input: 0,- output: 0,+ units: [+ { name: 'textInput', rate: 0, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 0, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -29,8 +31,10 @@ const internlmChatModels: AIChatModelCard[] = [displayName: 'InternLM2.5',id: 'internlm2.5-latest',pricing: {- input: 0,- output: 0,+ units: [+ { name: 'textInput', rate: 0, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 0, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -45,8 +49,10 @@ const internlmChatModels: AIChatModelCard[] = [enabled: true,id: 'internvl3-latest',pricing: {- input: 0,- output: 0,+ units: [+ { name: 'textInput', rate: 0, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 0, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -60,8 +66,10 @@ const internlmChatModels: AIChatModelCard[] = [displayName: 'InternVL2.5',id: 'internvl2.5-latest',pricing: {- input: 0,- output: 0,+ units: [+ { name: 'textInput', rate: 0, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 0, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},diff --git a/src/config/aiModels/jina.ts b/src/config/aiModels/jina.tsindex 25cec828684..7658371cc1b 100644--- a/src/config/aiModels/jina.ts+++ b/src/config/aiModels/jina.ts@@ -13,8 +13,10 @@ const jinaChatModels: AIChatModelCard[] = [enabled: true,id: 'jina-deepsearch-v1',pricing: {- input: 0.02,- output: 0.02,+ units: [+ { name: 'textInput', rate: 0.02, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 0.02, strategy: 'fixed', unit: 'millionTokens' },+ ],},settings: {searchImpl: 'internal',diff --git a/src/config/aiModels/minimax.ts b/src/config/aiModels/minimax.tsindex dbd2099eb58..64bc65fadfe 100644--- a/src/config/aiModels/minimax.ts+++ b/src/config/aiModels/minimax.ts@@ -8,16 +8,17 @@ const minimaxChatModels: AIChatModelCard[] = [search: true,},contextWindowTokens: 1_000_192,- description:- '全新自研推理模型。全球领先:80K思维链 x 1M输入,效果比肩海外顶尖模型。',+ description: '全新自研推理模型。全球领先:80K思维链 x 1M输入,效果比肩海外顶尖模型。',displayName: 'MiniMax-M1',enabled: true,id: 'MiniMax-M1',maxOutput: 40_000,pricing: {currency: 'CNY',- input: 1.2, // 输入长度 32-128k- output: 16,+ units: [+ { name: 'textInput', rate: 1.2, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 16, strategy: 'fixed', unit: 'millionTokens' },+ ],},releasedAt: '2025-06-16',settings: {@@ -40,8 +41,10 @@ const minimaxChatModels: AIChatModelCard[] = [maxOutput: 40_000,pricing: {currency: 'CNY',- input: 1,- output: 8,+ units: [+ { name: 'textInput', rate: 1, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 8, strategy: 'fixed', unit: 'millionTokens' },+ ],},releasedAt: '2025-01-15',settings: {@@ -53,8 +56,7 @@ const minimaxChatModels: AIChatModelCard[] = [const minimaxImageModels: AIImageModelCard[] = [{- description:- '全新图像生成模型,画面表现细腻,支持文生图、图生图',+ description: '全新图像生成模型,画面表现细腻,支持文生图、图生图',displayName: 'Image 01',enabled: true,id: 'image-01',@@ -72,8 +74,7 @@ const minimaxImageModels: AIImageModelCard[] = [type: 'image',},{- description:- '图像生成模型,画面表现细腻,支持文生图并进行画风设置',+ description: '图像生成模型,画面表现细腻,支持文生图并进行画风设置',displayName: 'Image 01 Live',enabled: true,id: 'image-01-live',diff --git a/src/config/aiModels/mistral.ts b/src/config/aiModels/mistral.tsindex 62269ed6892..f6a4e52f04e 100644--- a/src/config/aiModels/mistral.ts+++ b/src/config/aiModels/mistral.ts@@ -14,8 +14,10 @@ const mistralChatModels: AIChatModelCard[] = [enabled: true,id: 'mistral-medium-latest',pricing: {- input: 0.4,- output: 2,+ units: [+ { name: 'textInput', rate: 0.4, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 2, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -29,8 +31,10 @@ const mistralChatModels: AIChatModelCard[] = [displayName: 'Mistral Nemo',id: 'open-mistral-nemo',pricing: {- input: 0.15,- output: 0.15,+ units: [+ { name: 'textInput', rate: 0.15, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 0.15, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -44,8 +48,10 @@ const mistralChatModels: AIChatModelCard[] = [enabled: true,id: 'mistral-small-latest',pricing: {- input: 0.1,- output: 0.3,+ units: [+ { name: 'textInput', rate: 0.1, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 0.3, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -60,8 +66,10 @@ const mistralChatModels: AIChatModelCard[] = [enabled: true,id: 'mistral-large-latest',pricing: {- input: 2,- output: 6,+ units: [+ { name: 'textInput', rate: 2, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 6, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -75,8 +83,10 @@ const mistralChatModels: AIChatModelCard[] = [displayName: 'Codestral',id: 'codestral-latest',pricing: {- input: 0.3,- output: 0.9,+ units: [+ { name: 'textInput', rate: 0.3, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 0.9, strategy: 'fixed', unit: 'millionTokens' },+ ],},releasedAt: '2025-01-13',type: 'chat',@@ -93,8 +103,10 @@ const mistralChatModels: AIChatModelCard[] = [enabled: true,id: 'pixtral-large-latest',pricing: {- input: 2,- output: 6,+ units: [+ { name: 'textInput', rate: 2, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 6, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -109,8 +121,10 @@ const mistralChatModels: AIChatModelCard[] = [displayName: 'Pixtral 12B',id: 'pixtral-12b-2409',pricing: {- input: 0.15,- output: 0.15,+ units: [+ { name: 'textInput', rate: 0.15, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 0.15, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -123,8 +137,10 @@ const mistralChatModels: AIChatModelCard[] = [displayName: 'Ministral 3B',id: 'ministral-3b-latest',pricing: {- input: 0.04,- output: 0.04,+ units: [+ { name: 'textInput', rate: 0.04, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 0.04, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -137,8 +153,10 @@ const mistralChatModels: AIChatModelCard[] = [displayName: 'Ministral 8B',id: 'ministral-8b-latest',pricing: {- input: 0.1,- output: 0.1,+ units: [+ { name: 'textInput', rate: 0.1, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 0.1, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -149,8 +167,10 @@ const mistralChatModels: AIChatModelCard[] = [displayName: 'Codestral Mamba',id: 'open-codestral-mamba',pricing: {- input: 0,- output: 0,+ units: [+ { name: 'textInput', rate: 0, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 0, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},diff --git a/src/config/aiModels/moonshot.ts b/src/config/aiModels/moonshot.tsindex bc5d2395cb1..36daf7c957d 100644--- a/src/config/aiModels/moonshot.ts+++ b/src/config/aiModels/moonshot.ts@@ -13,10 +13,12 @@ const moonshotChatModels: AIChatModelCard[] = [enabled: true,id: 'kimi-k2-0711-preview',pricing: {- cachedInput: 1,currency: 'CNY',- input: 4,- output: 16,+ units: [+ { name: 'textInput_cacheRead', rate: 1, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textInput', rate: 4, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 16, strategy: 'fixed', unit: 'millionTokens' },+ ],},releasedAt: '2025-07-11',type: 'chat',@@ -33,10 +35,12 @@ const moonshotChatModels: AIChatModelCard[] = [enabled: true,id: 'kimi-latest',pricing: {- cachedInput: 1,currency: 'CNY',- input: 10, // 128k 上下文时- output: 30,+ units: [+ { name: 'textInput_cacheRead', rate: 1, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textInput', rate: 10, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 30, strategy: 'fixed', unit: 'millionTokens' },+ ],},releasedAt: '2025-02-17',type: 'chat',@@ -54,8 +58,10 @@ const moonshotChatModels: AIChatModelCard[] = [id: 'kimi-thinking-preview',pricing: {currency: 'CNY',- input: 200,- output: 200,+ units: [+ { name: 'textInput', rate: 200, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 200, strategy: 'fixed', unit: 'millionTokens' },+ ],},releasedAt: '2025-05-06',type: 'chat',@@ -70,8 +76,10 @@ const moonshotChatModels: AIChatModelCard[] = [id: 'moonshot-v1-auto',pricing: {currency: 'CNY',- input: 10, // 128k 上下文时- output: 30,+ units: [+ { name: 'textInput', rate: 10, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 30, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -86,8 +94,10 @@ const moonshotChatModels: AIChatModelCard[] = [id: 'moonshot-v1-8k',pricing: {currency: 'CNY',- input: 2,- output: 10,+ units: [+ { name: 'textInput', rate: 2, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 10, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -102,8 +112,10 @@ const moonshotChatModels: AIChatModelCard[] = [id: 'moonshot-v1-32k',pricing: {currency: 'CNY',- input: 5,- output: 20,+ units: [+ { name: 'textInput', rate: 5, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 20, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -118,8 +130,10 @@ const moonshotChatModels: AIChatModelCard[] = [id: 'moonshot-v1-128k',pricing: {currency: 'CNY',- input: 10,- output: 30,+ units: [+ { name: 'textInput', rate: 10, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 30, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -135,8 +149,10 @@ const moonshotChatModels: AIChatModelCard[] = [id: 'moonshot-v1-8k-vision-preview',pricing: {currency: 'CNY',- input: 2,- output: 10,+ units: [+ { name: 'textInput', rate: 2, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 10, strategy: 'fixed', unit: 'millionTokens' },+ ],},releasedAt: '2025-01-14',type: 'chat',@@ -153,8 +169,10 @@ const moonshotChatModels: AIChatModelCard[] = [id: 'moonshot-v1-32k-vision-preview',pricing: {currency: 'CNY',- input: 5,- output: 20,+ units: [+ { name: 'textInput', rate: 5, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 20, strategy: 'fixed', unit: 'millionTokens' },+ ],},releasedAt: '2025-01-14',type: 'chat',@@ -171,8 +189,10 @@ const moonshotChatModels: AIChatModelCard[] = [id: 'moonshot-v1-128k-vision-preview',pricing: {currency: 'CNY',- input: 10,- output: 30,+ units: [+ { name: 'textInput', rate: 10, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 30, strategy: 'fixed', unit: 'millionTokens' },+ ],},releasedAt: '2025-01-14',type: 'chat',diff --git a/src/config/aiModels/novita.ts b/src/config/aiModels/novita.tsindex 746ec71c006..d791792a21e 100644--- a/src/config/aiModels/novita.ts+++ b/src/config/aiModels/novita.ts@@ -10,8 +10,10 @@ const novitaChatModels: AIChatModelCard[] = [displayName: 'Kimi K2 Instruct',id: 'moonshotai/kimi-k2-instruct',pricing: {- input: 0.57,- output: 2.3,+ units: [+ { name: 'textInput', rate: 0.57, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 2.3, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -24,8 +26,10 @@ const novitaChatModels: AIChatModelCard[] = [displayName: 'GLM 4.1V 9B Thinking',id: 'thudm/glm-4.1v-9b-thinking',pricing: {- input: 0.035,- output: 0.138,+ units: [+ { name: 'textInput', rate: 0.035, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 0.138, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -34,8 +38,10 @@ const novitaChatModels: AIChatModelCard[] = [displayName: 'ERNIE 4.5 0.3B',id: 'baidu/ernie-4.5-0.3b',pricing: {- input: 0,- output: 0,+ units: [+ { name: 'textInput', rate: 0, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 0, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -44,8 +50,10 @@ const novitaChatModels: AIChatModelCard[] = [displayName: 'ERNIE 4.5 21B A3B',id: 'baidu/ernie-4.5-21B-a3b',pricing: {- input: 0,- output: 0,+ units: [+ { name: 'textInput', rate: 0, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 0, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -57,8 +65,10 @@ const novitaChatModels: AIChatModelCard[] = [displayName: 'ERNIE 4.5 300B A47B Paddle',id: 'baidu/ernie-4.5-300b-a47b-paddle',pricing: {- input: 0.28,- output: 1.1,+ units: [+ { name: 'textInput', rate: 0.28, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 1.1, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -71,8 +81,10 @@ const novitaChatModels: AIChatModelCard[] = [displayName: 'ERNIE 4.5 VL 28B A3B',id: 'baidu/ernie-4.5-vl-28b-a3b',pricing: {- input: 0,- output: 0,+ units: [+ { name: 'textInput', rate: 0, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 0, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -86,8 +98,10 @@ const novitaChatModels: AIChatModelCard[] = [displayName: 'ERNIE 4.5 VL 424B A47B',id: 'baidu/ernie-4.5-vl-424b-a47b',pricing: {- input: 0.42,- output: 1.25,+ units: [+ { name: 'textInput', rate: 0.42, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 1.25, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -100,8 +114,10 @@ const novitaChatModels: AIChatModelCard[] = [displayName: 'MiniMax M1 80K',id: 'minimaxai/minimax-m1-80k',pricing: {- input: 0.55,- output: 2.2,+ units: [+ { name: 'textInput', rate: 0.55, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 2.2, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -113,8 +129,10 @@ const novitaChatModels: AIChatModelCard[] = [displayName: 'Qwen3 4B FP8',id: 'qwen/qwen3-4b-fp8',pricing: {- input: 0,- output: 0,+ units: [+ { name: 'textInput', rate: 0, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 0, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -126,8 +144,10 @@ const novitaChatModels: AIChatModelCard[] = [displayName: 'Qwen3 235B A22B FP8',id: 'qwen/qwen3-235b-a22b-fp8',pricing: {- input: 0.2,- output: 0.8,+ units: [+ { name: 'textInput', rate: 0.2, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 0.8, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -139,8 +159,10 @@ const novitaChatModels: AIChatModelCard[] = [displayName: 'Qwen3 30B A3B FP8',id: 'qwen/qwen3-30b-a3b-fp8',pricing: {- input: 0.1,- output: 0.45,+ units: [+ { name: 'textInput', rate: 0.1, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 0.45, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -152,8 +174,10 @@ const novitaChatModels: AIChatModelCard[] = [displayName: 'Qwen3 32B FP8',id: 'qwen/qwen3-32b-fp8',pricing: {- input: 0.1,- output: 0.45,+ units: [+ { name: 'textInput', rate: 0.1, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 0.45, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -165,8 +189,10 @@ const novitaChatModels: AIChatModelCard[] = [displayName: 'Llama 3.3 70B Instruct',id: 'meta-llama/llama-3.3-70b-instruct',pricing: {- input: 0.13,- output: 0.39,+ units: [+ { name: 'textInput', rate: 0.13, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 0.39, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -175,8 +201,10 @@ const novitaChatModels: AIChatModelCard[] = [displayName: 'Qwen3 8B FP8',id: 'qwen/qwen3-8b-fp8',pricing: {- input: 0.035,- output: 0.138,+ units: [+ { name: 'textInput', rate: 0.035, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 0.138, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -189,8 +217,10 @@ const novitaChatModels: AIChatModelCard[] = [enabled: true,id: 'meta-llama/llama-4-scout-17b-16e-instruct',pricing: {- input: 0.1,- output: 0.5,+ units: [+ { name: 'textInput', rate: 0.1, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 0.5, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -203,8 +233,10 @@ const novitaChatModels: AIChatModelCard[] = [enabled: true,id: 'meta-llama/llama-4-maverick-17b-128e-instruct-fp8',pricing: {- input: 0.2,- output: 0.85,+ units: [+ { name: 'textInput', rate: 0.2, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 0.85, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -214,8 +246,10 @@ const novitaChatModels: AIChatModelCard[] = [displayName: 'Llama 3.1 8B Instruct',id: 'meta-llama/llama-3.1-8b-instruct',pricing: {- input: 0.02,- output: 0.05,+ units: [+ { name: 'textInput', rate: 0.02, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 0.05, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -225,8 +259,10 @@ const novitaChatModels: AIChatModelCard[] = [displayName: 'Llama 3 8B Instruct',id: 'meta-llama/llama-3-8b-instruct',pricing: {- input: 0.04,- output: 0.04,+ units: [+ { name: 'textInput', rate: 0.04, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 0.04, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -236,8 +272,10 @@ const novitaChatModels: AIChatModelCard[] = [displayName: 'Llama 3 70B Instruct',id: 'meta-llama/llama-3-70b-instruct',pricing: {- input: 0.51,- output: 0.74,+ units: [+ { name: 'textInput', rate: 0.51, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 0.74, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -247,8 +285,10 @@ const novitaChatModels: AIChatModelCard[] = [displayName: 'Gemma 3 27B',id: 'google/gemma-3-27b-it',pricing: {- input: 0.2,- output: 0.2,+ units: [+ { name: 'textInput', rate: 0.2, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 0.2, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -258,8 +298,10 @@ const novitaChatModels: AIChatModelCard[] = [displayName: 'Gemma 3 1B',id: 'google/gemma-3-1b-it',pricing: {- input: 0,- output: 0,+ units: [+ { name: 'textInput', rate: 0, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 0, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -269,8 +311,10 @@ const novitaChatModels: AIChatModelCard[] = [displayName: 'Mistral Nemo',id: 'mistralai/mistral-nemo',pricing: {- input: 0.04,- output: 0.17,+ units: [+ { name: 'textInput', rate: 0.04, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 0.17, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -280,8 +324,10 @@ const novitaChatModels: AIChatModelCard[] = [displayName: 'Mistral 7B Instruct',id: 'mistralai/mistral-7b-instruct',pricing: {- input: 0.029,- output: 0.059,+ units: [+ { name: 'textInput', rate: 0.029, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 0.059, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -291,8 +337,10 @@ const novitaChatModels: AIChatModelCard[] = [displayName: 'WizardLM-2 8x22B',id: 'microsoft/wizardlm-2-8x22b',pricing: {- input: 0.62,- output: 0.62,+ units: [+ { name: 'textInput', rate: 0.62, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 0.62, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -302,8 +350,10 @@ const novitaChatModels: AIChatModelCard[] = [displayName: 'Dolphin Mixtral 8x22B',id: 'cognitivecomputations/dolphin-mixtral-8x22b',pricing: {- input: 0.9,- output: 0.9,+ units: [+ { name: 'textInput', rate: 0.9, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 0.9, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -313,8 +363,10 @@ const novitaChatModels: AIChatModelCard[] = [displayName: 'Hermes 2 Pro Llama 3 8B',id: 'nousresearch/hermes-2-pro-llama-3-8b',pricing: {- input: 0.14,- output: 0.14,+ units: [+ { name: 'textInput', rate: 0.14, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 0.14, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -324,8 +376,10 @@ const novitaChatModels: AIChatModelCard[] = [displayName: 'MythoMax l2 13B',id: 'gryphe/mythomax-l2-13b',pricing: {- input: 0.09,- output: 0.09,+ units: [+ { name: 'textInput', rate: 0.09, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 0.09, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -334,8 +388,10 @@ const novitaChatModels: AIChatModelCard[] = [displayName: 'Deepseek Prover V2 671B',id: 'deepseek/deepseek-prover-v2-671b',pricing: {- input: 0.7,- output: 2.5,+ units: [+ { name: 'textInput', rate: 0.7, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 2.5, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -347,8 +403,10 @@ const novitaChatModels: AIChatModelCard[] = [displayName: 'Deepseek V3 Turbo',id: 'deepseek/deepseek-v3-turbo',pricing: {- input: 0.4,- output: 1.3,+ units: [+ { name: 'textInput', rate: 0.4, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 1.3, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -361,8 +419,10 @@ const novitaChatModels: AIChatModelCard[] = [enabled: true,id: 'deepseek/deepseek-v3-0324',pricing: {- input: 0.28,- output: 1.14,+ units: [+ { name: 'textInput', rate: 0.28, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 1.14, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -376,8 +436,10 @@ const novitaChatModels: AIChatModelCard[] = [enabled: true,id: 'deepseek/deepseek-r1-0528',pricing: {- input: 0.7,- output: 2.5,+ units: [+ { name: 'textInput', rate: 0.7, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 2.5, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -389,8 +451,10 @@ const novitaChatModels: AIChatModelCard[] = [displayName: 'DeepSeek R1 0528 Qwen3 8B',id: 'deepseek/deepseek-r1-0528-qwen3-8b',pricing: {- input: 0.06,- output: 0.09,+ units: [+ { name: 'textInput', rate: 0.06, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 0.09, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -403,8 +467,10 @@ const novitaChatModels: AIChatModelCard[] = [displayName: 'Deepseek R1 Turbo',id: 'deepseek/deepseek-r1-turbo',pricing: {- input: 0.7,- output: 2.5,+ units: [+ { name: 'textInput', rate: 0.7, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 2.5, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -416,8 +482,10 @@ const novitaChatModels: AIChatModelCard[] = [displayName: 'Deepseek R1 Distill Llama 70B',id: 'deepseek/deepseek-r1-distill-llama-70b',pricing: {- input: 0.8,- output: 0.8,+ units: [+ { name: 'textInput', rate: 0.8, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 0.8, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -429,8 +497,10 @@ const novitaChatModels: AIChatModelCard[] = [displayName: 'Deepseek R1 Distill Qwen 14B',id: 'deepseek/deepseek-r1-distill-qwen-14b',pricing: {- input: 0.15,- output: 0.15,+ units: [+ { name: 'textInput', rate: 0.15, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 0.15, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -442,8 +512,10 @@ const novitaChatModels: AIChatModelCard[] = [displayName: 'Deepseek R1 Distill Qwen 32B',id: 'deepseek/deepseek-r1-distill-qwen-32b',pricing: {- input: 0.3,- output: 0.3,+ units: [+ { name: 'textInput', rate: 0.3, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 0.3, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -452,8 +524,10 @@ const novitaChatModels: AIChatModelCard[] = [displayName: 'L3 8B Stheno v3.2',id: 'Sao10K/L3-8B-Stheno-v3.2',pricing: {- input: 0.05,- output: 0.05,+ units: [+ { name: 'textInput', rate: 0.05, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 0.05, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -465,8 +539,10 @@ const novitaChatModels: AIChatModelCard[] = [displayName: 'Deepseek R1 Distill Llama 8B',id: 'deepseek/deepseek-r1-distill-llama-8b',pricing: {- input: 0.04,- output: 0.04,+ units: [+ { name: 'textInput', rate: 0.04, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 0.04, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -478,8 +554,10 @@ const novitaChatModels: AIChatModelCard[] = [displayName: 'Qwen2.5 72B Instruct',id: 'qwen/qwen-2.5-72b-instruct',pricing: {- input: 0.38,- output: 0.4,+ units: [+ { name: 'textInput', rate: 0.38, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 0.4, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -488,8 +566,10 @@ const novitaChatModels: AIChatModelCard[] = [displayName: 'L3 70B Euryale v2.1',id: 'sao10k/l3-70b-euryale-v2.1',pricing: {- input: 1.48,- output: 1.48,+ units: [+ { name: 'textInput', rate: 1.48, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 1.48, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -498,8 +578,10 @@ const novitaChatModels: AIChatModelCard[] = [displayName: 'Midnight Rose 70B',id: 'sophosympatheia/midnight-rose-70b',pricing: {- input: 0.8,- output: 0.8,+ units: [+ { name: 'textInput', rate: 0.8, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 0.8, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -508,8 +590,10 @@ const novitaChatModels: AIChatModelCard[] = [displayName: 'L3 8B Lunaris',id: 'sao10k/l3-8b-lunaris',pricing: {- input: 0.05,- output: 0.05,+ units: [+ { name: 'textInput', rate: 0.05, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 0.05, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -522,8 +606,10 @@ const novitaChatModels: AIChatModelCard[] = [enabled: true,id: 'qwen/qwen2.5-vl-72b-instruct',pricing: {- input: 0.8,- output: 0.8,+ units: [+ { name: 'textInput', rate: 0.8, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 0.8, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -532,8 +618,10 @@ const novitaChatModels: AIChatModelCard[] = [displayName: 'Llama 3.2 1B Instruct',id: 'meta-llama/llama-3.2-1b-instruct',pricing: {- input: 0,- output: 0,+ units: [+ { name: 'textInput', rate: 0, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 0, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -545,8 +633,10 @@ const novitaChatModels: AIChatModelCard[] = [displayName: 'Llama 3.2 3B Instruct',id: 'meta-llama/llama-3.2-3b-instruct',pricing: {- input: 0.03,- output: 0.05,+ units: [+ { name: 'textInput', rate: 0.03, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 0.05, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -555,8 +645,10 @@ const novitaChatModels: AIChatModelCard[] = [displayName: 'Llama 3.1 8B Instruct BF16',id: 'meta-llama/llama-3.1-8b-instruct-bf16',pricing: {- input: 0.06,- output: 0.06,+ units: [+ { name: 'textInput', rate: 0.06, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 0.06, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -565,8 +657,10 @@ const novitaChatModels: AIChatModelCard[] = [displayName: 'L31 70B Euryale v2.2',id: 'sao10k/l31-70b-euryale-v2.2',pricing: {- input: 1.48,- output: 1.48,+ units: [+ { name: 'textInput', rate: 1.48, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 1.48, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -578,8 +672,10 @@ const novitaChatModels: AIChatModelCard[] = [displayName: 'Qwen2.5 7B Instruct',id: 'qwen/qwen2.5-7b-instruct',pricing: {- input: 0,- output: 0,+ units: [+ { name: 'textInput', rate: 0, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 0, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -591,8 +687,10 @@ const novitaChatModels: AIChatModelCard[] = [displayName: 'GLM 4 32B 0414',id: 'thudm/glm-4-32b-0414',pricing: {- input: 0.24,- output: 0.24,+ units: [+ { name: 'textInput', rate: 0.24, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 0.24, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},diff --git a/src/config/aiModels/openai.ts b/src/config/aiModels/openai.tsindex b6f5feb4d0d..9aa6df4744d 100644--- a/src/config/aiModels/openai.ts+++ b/src/config/aiModels/openai.ts@@ -34,9 +34,11 @@ export const openaiChatModels: AIChatModelCard[] = [id: 'gpt-5',maxOutput: 128_000,pricing: {- cachedInput: 0.13,- input: 1.25,- output: 10,+ units: [+ { name: 'textInput', rate: 1.25, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 10, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textInput_cacheRead', rate: 0.13, strategy: 'fixed', unit: 'millionTokens' },+ ],},releasedAt: '2025-08-07',settings: {@@ -60,9 +62,11 @@ export const openaiChatModels: AIChatModelCard[] = [id: 'gpt-5-mini',maxOutput: 128_000,pricing: {- cachedInput: 0.03,- input: 0.25,- output: 2,+ units: [+ { name: 'textInput', rate: 0.25, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 2, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textInput_cacheRead', rate: 0.03, strategy: 'fixed', unit: 'millionTokens' },+ ],},releasedAt: '2025-08-07',settings: {@@ -83,9 +87,11 @@ export const openaiChatModels: AIChatModelCard[] = [id: 'gpt-5-nano',maxOutput: 128_000,pricing: {- cachedInput: 0.01,- input: 0.05,- output: 0.4,+ units: [+ { name: 'textInput', rate: 0.05, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 0.4, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textInput_cacheRead', rate: 0.01, strategy: 'fixed', unit: 'millionTokens' },+ ],},releasedAt: '2025-08-07',type: 'chat',@@ -102,9 +108,11 @@ export const openaiChatModels: AIChatModelCard[] = [id: 'gpt-5-chat-latest',maxOutput: 128_000,pricing: {- cachedInput: 0.13,- input: 1.25,- output: 10,+ units: [+ { name: 'textInput', rate: 1.25, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 10, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textInput_cacheRead', rate: 0.13, strategy: 'fixed', unit: 'millionTokens' },+ ],},releasedAt: '2025-08-07',type: 'chat',@@ -124,9 +132,11 @@ export const openaiChatModels: AIChatModelCard[] = [id: 'o4-mini',maxOutput: 100_000,pricing: {- cachedInput: 0.275,- input: 1.1,- output: 4.4,+ units: [+ { name: 'textInput_cacheRead', rate: 0.275, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textInput', rate: 1.1, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 4.4, strategy: 'fixed', unit: 'millionTokens' },+ ],},releasedAt: '2025-04-17',settings: {@@ -149,9 +159,11 @@ export const openaiChatModels: AIChatModelCard[] = [id: 'o4-mini-deep-research',maxOutput: 100_000,pricing: {- cachedInput: 0.5,- input: 2,- output: 8,+ units: [+ { name: 'textInput_cacheRead', rate: 0.5, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textInput', rate: 2, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 8, strategy: 'fixed', unit: 'millionTokens' },+ ],},releasedAt: '2025-06-26',settings: {@@ -174,8 +186,10 @@ export const openaiChatModels: AIChatModelCard[] = [id: 'o3-pro',maxOutput: 100_000,pricing: {- input: 20,- output: 80,+ units: [+ { name: 'textInput', rate: 20, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 80, strategy: 'fixed', unit: 'millionTokens' },+ ],},releasedAt: '2025-06-10',settings: {@@ -199,9 +213,11 @@ export const openaiChatModels: AIChatModelCard[] = [id: 'o3',maxOutput: 100_000,pricing: {- cachedInput: 0.5,- input: 2,- output: 8,+ units: [+ { name: 'textInput_cacheRead', rate: 0.5, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textInput', rate: 2, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 8, strategy: 'fixed', unit: 'millionTokens' },+ ],},releasedAt: '2025-04-16',settings: {@@ -224,9 +240,11 @@ export const openaiChatModels: AIChatModelCard[] = [id: 'o3-deep-research',maxOutput: 100_000,pricing: {- cachedInput: 2.5,- input: 10,- output: 40,+ units: [+ { name: 'textInput_cacheRead', rate: 2.5, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textInput', rate: 10, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 40, strategy: 'fixed', unit: 'millionTokens' },+ ],},releasedAt: '2025-06-26',settings: {@@ -247,9 +265,11 @@ export const openaiChatModels: AIChatModelCard[] = [id: 'o3-mini',maxOutput: 100_000,pricing: {- cachedInput: 0.55,- input: 1.1,- output: 4.4,+ units: [+ { name: 'textInput_cacheRead', rate: 0.55, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textInput', rate: 1.1, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 4.4, strategy: 'fixed', unit: 'millionTokens' },+ ],},releasedAt: '2025-01-31',settings: {@@ -270,8 +290,10 @@ export const openaiChatModels: AIChatModelCard[] = [id: 'o1-pro',maxOutput: 100_000,pricing: {- input: 150,- output: 600,+ units: [+ { name: 'textInput', rate: 150, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 600, strategy: 'fixed', unit: 'millionTokens' },+ ],},releasedAt: '2025-03-19',settings: {@@ -290,9 +312,11 @@ export const openaiChatModels: AIChatModelCard[] = [id: 'o1-mini', // deprecated on 2025-10-27maxOutput: 65_536,pricing: {- cachedInput: 0.55,- input: 1.1,- output: 4.4,+ units: [+ { name: 'textInput_cacheRead', rate: 0.55, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textInput', rate: 1.1, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 4.4, strategy: 'fixed', unit: 'millionTokens' },+ ],},releasedAt: '2024-09-12',settings: {@@ -313,9 +337,11 @@ export const openaiChatModels: AIChatModelCard[] = [id: 'o1',maxOutput: 100_000,pricing: {- cachedInput: 7.5,- input: 15,- output: 60,+ units: [+ { name: 'textInput_cacheRead', rate: 7.5, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textInput', rate: 15, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 60, strategy: 'fixed', unit: 'millionTokens' },+ ],},releasedAt: '2024-12-17',settings: {@@ -334,8 +360,10 @@ export const openaiChatModels: AIChatModelCard[] = [id: 'o1-preview',maxOutput: 32_768,pricing: {- input: 15,- output: 60,+ units: [+ { name: 'textInput', rate: 15, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 60, strategy: 'fixed', unit: 'millionTokens' },+ ],},releasedAt: '2024-09-12',settings: {@@ -355,9 +383,11 @@ export const openaiChatModels: AIChatModelCard[] = [id: 'gpt-4.1',maxOutput: 32_768,pricing: {- cachedInput: 0.5,- input: 2,- output: 8,+ units: [+ { name: 'textInput_cacheRead', rate: 0.5, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textInput', rate: 2, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 8, strategy: 'fixed', unit: 'millionTokens' },+ ],},releasedAt: '2025-04-14',settings: {@@ -378,9 +408,11 @@ export const openaiChatModels: AIChatModelCard[] = [id: 'gpt-4.1-mini',maxOutput: 32_768,pricing: {- cachedInput: 0.1,- input: 0.4,- output: 1.6,+ units: [+ { name: 'textInput_cacheRead', rate: 0.1, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textInput', rate: 0.4, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 1.6, strategy: 'fixed', unit: 'millionTokens' },+ ],},releasedAt: '2025-04-14',settings: {@@ -399,9 +431,11 @@ export const openaiChatModels: AIChatModelCard[] = [id: 'gpt-4.1-nano',maxOutput: 32_768,pricing: {- cachedInput: 0.025,- input: 0.1,- output: 0.4,+ units: [+ { name: 'textInput_cacheRead', rate: 0.025, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textInput', rate: 0.1, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 0.4, strategy: 'fixed', unit: 'millionTokens' },+ ],},releasedAt: '2025-04-14',type: 'chat',@@ -418,9 +452,11 @@ export const openaiChatModels: AIChatModelCard[] = [id: 'gpt-4.5-preview', // deprecated on 2025-07-14maxOutput: 16_384,pricing: {- cachedInput: 37.5,- input: 75,- output: 150,+ units: [+ { name: 'textInput_cacheRead', rate: 37.5, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textInput', rate: 75, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 150, strategy: 'fixed', unit: 'millionTokens' },+ ],},releasedAt: '2025-02-27',type: 'chat',@@ -438,9 +474,11 @@ export const openaiChatModels: AIChatModelCard[] = [id: 'gpt-4o-mini',maxOutput: 16_384,pricing: {- cachedInput: 0.075,- input: 0.15,- output: 0.6,+ units: [+ { name: 'textInput_cacheRead', rate: 0.075, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textInput', rate: 0.15, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 0.6, strategy: 'fixed', unit: 'millionTokens' },+ ],},releasedAt: '2024-07-18',settings: {@@ -459,8 +497,10 @@ export const openaiChatModels: AIChatModelCard[] = [id: 'gpt-4o-mini-search-preview',maxOutput: 16_384,pricing: {- input: 0.15,- output: 0.6,+ units: [+ { name: 'textInput', rate: 0.15, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 0.6, strategy: 'fixed', unit: 'millionTokens' },+ ],},releasedAt: '2025-03-11',settings: {@@ -479,8 +519,10 @@ export const openaiChatModels: AIChatModelCard[] = [id: 'gpt-4o-mini-audio-preview',maxOutput: 16_384,pricing: {- input: 0.15,- output: 0.6,+ units: [+ { name: 'textInput', rate: 0.15, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 0.6, strategy: 'fixed', unit: 'millionTokens' },+ ],},releasedAt: '2024-12-17',/*@@ -502,9 +544,11 @@ export const openaiChatModels: AIChatModelCard[] = [displayName: 'GPT-4o',id: 'gpt-4o',pricing: {- cachedInput: 1.25,- input: 2.5,- output: 10,+ units: [+ { name: 'textInput_cacheRead', rate: 1.25, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textInput', rate: 2.5, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 10, strategy: 'fixed', unit: 'millionTokens' },+ ],},releasedAt: '2024-05-13',settings: {@@ -523,8 +567,10 @@ export const openaiChatModels: AIChatModelCard[] = [id: 'gpt-4o-search-preview',maxOutput: 16_384,pricing: {- input: 2.5,- output: 10,+ units: [+ { name: 'textInput', rate: 2.5, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 10, strategy: 'fixed', unit: 'millionTokens' },+ ],},releasedAt: '2025-03-11',settings: {@@ -544,9 +590,11 @@ export const openaiChatModels: AIChatModelCard[] = [displayName: 'GPT-4o 1120',id: 'gpt-4o-2024-11-20',pricing: {- cachedInput: 1.25,- input: 2.5,- output: 10,+ units: [+ { name: 'textInput_cacheRead', rate: 1.25, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textInput', rate: 2.5, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 10, strategy: 'fixed', unit: 'millionTokens' },+ ],},releasedAt: '2024-11-20',settings: {@@ -566,8 +614,10 @@ export const openaiChatModels: AIChatModelCard[] = [displayName: 'GPT-4o 0513',id: 'gpt-4o-2024-05-13',pricing: {- input: 5,- output: 15,+ units: [+ { name: 'textInput', rate: 5, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 15, strategy: 'fixed', unit: 'millionTokens' },+ ],},releasedAt: '2024-05-13',settings: {@@ -586,8 +636,10 @@ export const openaiChatModels: AIChatModelCard[] = [id: 'gpt-4o-audio-preview',maxOutput: 16_384,pricing: {- input: 2.5,- output: 10,+ units: [+ { name: 'textInput', rate: 2.5, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 10, strategy: 'fixed', unit: 'millionTokens' },+ ],},releasedAt: '2024-12-17',/*@@ -607,8 +659,10 @@ export const openaiChatModels: AIChatModelCard[] = [displayName: 'ChatGPT-4o',id: 'chatgpt-4o-latest',pricing: {- input: 5,- output: 15,+ units: [+ { name: 'textInput', rate: 5, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 15, strategy: 'fixed', unit: 'millionTokens' },+ ],},releasedAt: '2024-08-14',type: 'chat',@@ -624,8 +678,10 @@ export const openaiChatModels: AIChatModelCard[] = [displayName: 'GPT-4 Turbo',id: 'gpt-4-turbo',pricing: {- input: 10,- output: 30,+ units: [+ { name: 'textInput', rate: 10, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 30, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -640,8 +696,10 @@ export const openaiChatModels: AIChatModelCard[] = [displayName: 'GPT-4 Turbo Vision 0409',id: 'gpt-4-turbo-2024-04-09',pricing: {- input: 10,- output: 30,+ units: [+ { name: 'textInput', rate: 10, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 30, strategy: 'fixed', unit: 'millionTokens' },+ ],},releasedAt: '2024-04-09',type: 'chat',@@ -656,8 +714,10 @@ export const openaiChatModels: AIChatModelCard[] = [displayName: 'GPT-4 Turbo Preview',id: 'gpt-4-turbo-preview',pricing: {- input: 10,- output: 30,+ units: [+ { name: 'textInput', rate: 10, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 30, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -671,8 +731,10 @@ export const openaiChatModels: AIChatModelCard[] = [displayName: 'GPT-4 Turbo Preview 0125',id: 'gpt-4-0125-preview',pricing: {- input: 10,- output: 30,+ units: [+ { name: 'textInput', rate: 10, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 30, strategy: 'fixed', unit: 'millionTokens' },+ ],},releasedAt: '2024-01-25',type: 'chat',@@ -687,8 +749,10 @@ export const openaiChatModels: AIChatModelCard[] = [displayName: 'GPT-4 Turbo Preview 1106',id: 'gpt-4-1106-preview',pricing: {- input: 10,- output: 30,+ units: [+ { name: 'textInput', rate: 10, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 30, strategy: 'fixed', unit: 'millionTokens' },+ ],},releasedAt: '2023-11-06',type: 'chat',@@ -703,8 +767,10 @@ export const openaiChatModels: AIChatModelCard[] = [displayName: 'GPT-4',id: 'gpt-4',pricing: {- input: 30,- output: 60,+ units: [+ { name: 'textInput', rate: 30, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 60, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -718,8 +784,10 @@ export const openaiChatModels: AIChatModelCard[] = [displayName: 'GPT-4 0613',id: 'gpt-4-0613',pricing: {- input: 30,- output: 60,+ units: [+ { name: 'textInput', rate: 30, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 60, strategy: 'fixed', unit: 'millionTokens' },+ ],},releasedAt: '2023-06-13',type: 'chat',@@ -734,8 +802,10 @@ export const openaiChatModels: AIChatModelCard[] = [displayName: 'GPT-3.5 Turbo',id: 'gpt-3.5-turbo',pricing: {- input: 0.5,- output: 1.5,+ units: [+ { name: 'textInput', rate: 0.5, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 1.5, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -749,8 +819,10 @@ export const openaiChatModels: AIChatModelCard[] = [displayName: 'GPT-3.5 Turbo 0125',id: 'gpt-3.5-turbo-0125',pricing: {- input: 0.5,- output: 1.5,+ units: [+ { name: 'textInput', rate: 0.5, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 1.5, strategy: 'fixed', unit: 'millionTokens' },+ ],},releasedAt: '2024-01-25',type: 'chat',@@ -765,8 +837,10 @@ export const openaiChatModels: AIChatModelCard[] = [displayName: 'GPT-3.5 Turbo 1106',id: 'gpt-3.5-turbo-1106',pricing: {- input: 1,- output: 2,+ units: [+ { name: 'textInput', rate: 1, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 2, strategy: 'fixed', unit: 'millionTokens' },+ ],},releasedAt: '2023-11-06',type: 'chat',@@ -777,8 +851,10 @@ export const openaiChatModels: AIChatModelCard[] = [displayName: 'GPT-3.5 Turbo Instruct',id: 'gpt-3.5-turbo-instruct',pricing: {- input: 1.5,- output: 2,+ units: [+ { name: 'textInput', rate: 1.5, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 2, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -795,9 +871,11 @@ export const openaiChatModels: AIChatModelCard[] = [id: 'codex-mini-latest',maxOutput: 100_000,pricing: {- cachedInput: 0.375,- input: 1.5,- output: 6,+ units: [+ { name: 'textInput_cacheRead', rate: 0.375, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textInput', rate: 1.5, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 6, strategy: 'fixed', unit: 'millionTokens' },+ ],},releasedAt: '2025-06-01',settings: {@@ -818,8 +896,10 @@ export const openaiChatModels: AIChatModelCard[] = [id: 'computer-use-preview',maxOutput: 1024,pricing: {- input: 3,- output: 12,+ units: [+ { name: 'textInput', rate: 3, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 12, strategy: 'fixed', unit: 'millionTokens' },+ ],},releasedAt: '2025-03-11',settings: {@@ -838,7 +918,7 @@ export const openaiEmbeddingModels: AIEmbeddingModelCard[] = [maxDimension: 3072,pricing: {currency: 'USD',- input: 0.13,+ units: [{ name: 'textInput', rate: 0.13, strategy: 'fixed', unit: 'millionTokens' }],},releasedAt: '2024-01-25',type: 'embedding',@@ -851,7 +931,7 @@ export const openaiEmbeddingModels: AIEmbeddingModelCard[] = [maxDimension: 1536,pricing: {currency: 'USD',- input: 0.02,+ units: [{ name: 'textInput', rate: 0.02, strategy: 'fixed', unit: 'millionTokens' }],},releasedAt: '2024-01-25',type: 'embedding',@@ -865,7 +945,7 @@ export const openaiTTSModels: AITTSModelCard[] = [displayName: 'TTS-1',id: 'tts-1',pricing: {- input: 15,+ units: [{ name: 'textInput', rate: 15, strategy: 'fixed', unit: 'millionCharacters' }],},type: 'tts',},@@ -874,7 +954,7 @@ export const openaiTTSModels: AITTSModelCard[] = [displayName: 'TTS-1 HD',id: 'tts-1-hd',pricing: {- input: 30,+ units: [{ name: 'textInput', rate: 30, strategy: 'fixed', unit: 'millionCharacters' }],},type: 'tts',},@@ -884,8 +964,10 @@ export const openaiTTSModels: AITTSModelCard[] = [displayName: 'GPT-4o Mini TTS',id: 'gpt-4o-mini-tts',pricing: {- input: 0.6,- output: 12,+ units: [+ { name: 'textInput', rate: 0.6, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'audioOutput', rate: 12, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'tts',},@@ -898,7 +980,14 @@ export const openaiSTTModels: AISTTModelCard[] = [displayName: 'Whisper',id: 'whisper-1',pricing: {- input: 0.006, // per minute+ units: [+ {+ name: 'audioInput',+ rate: 0.0001, // $0.006 per minute => $0.0001 per second+ strategy: 'fixed',+ unit: 'second',+ },+ ],},type: 'stt',},@@ -910,8 +999,11 @@ export const openaiSTTModels: AISTTModelCard[] = [id: 'gpt-4o-transcribe',maxOutput: 2000,pricing: {- input: 6, // Audio- output: 10,+ units: [+ { name: 'textInput', rate: 2.5, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'audioInput', rate: 6, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 10, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'stt',},@@ -923,8 +1015,11 @@ export const openaiSTTModels: AISTTModelCard[] = [id: 'gpt-4o-mini-transcribe',maxOutput: 2000,pricing: {- input: 3, // Audio- output: 5,+ units: [+ { name: 'textInput', rate: 1.25, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'audioInput', rate: 3, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 5, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'stt',},@@ -954,8 +1049,24 @@ export const openaiImageModels: AIImageModelCard[] = [},},pricing: {- hd: 0.08,- standard: 0.04,+ units: [+ {+ lookup: {+ prices: {+ hd_1024x1024: 0.08,+ hd_1024x1792: 0.12,+ hd_1792x1024: 0.12,+ standard_1024x1024: 0.04,+ standard_1024x1792: 0.08,+ standard_1792x1024: 0.08,+ },+ pricingParams: ['quality', 'size'],+ },+ name: 'imageGeneration',+ strategy: 'lookup',+ unit: 'image',+ },+ ],},resolutions: ['1024x1024', '1024x1792', '1792x1024'],type: 'image',@@ -973,7 +1084,21 @@ export const openaiImageModels: AIImageModelCard[] = [},},pricing: {- input: 0.02, // $0.020 per image (1024×1024)+ units: [+ {+ lookup: {+ prices: {+ '1024x1024': 0.02,+ '256x256': 0.016,+ '512x512': 0.018,+ },+ pricingParams: ['size'],+ },+ name: 'imageGeneration',+ strategy: 'lookup',+ unit: 'image',+ },+ ],},resolutions: ['256x256', '512x512', '1024x1024'],type: 'image',@@ -989,12 +1114,14 @@ export const openaiRealtimeModels: AIRealtimeModelCard[] = [id: 'gpt-4o-realtime-preview',maxOutput: 4096,pricing: {- audioInput: 40,- audioOutput: 80,- cachedAudioInput: 2.5,- cachedInput: 2.5,- input: 5,- output: 20,+ units: [+ { name: 'audioInput', rate: 40, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'audioOutput', rate: 80, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'audioInput_cacheRead', rate: 2.5, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textInput_cacheRead', rate: 2.5, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textInput', rate: 5, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 20, strategy: 'fixed', unit: 'millionTokens' },+ ],},releasedAt: '2024-12-17',type: 'realtime',@@ -1006,12 +1133,14 @@ export const openaiRealtimeModels: AIRealtimeModelCard[] = [id: 'gpt-4o-realtime-preview-2025-06-03',maxOutput: 4096,pricing: {- audioInput: 40,- audioOutput: 80,- cachedAudioInput: 2.5,- cachedInput: 2.5,- input: 5,- output: 20,+ units: [+ { name: 'audioInput', rate: 40, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'audioOutput', rate: 80, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'audioInput_cacheRead', rate: 2.5, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textInput_cacheRead', rate: 2.5, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textInput', rate: 5, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 20, strategy: 'fixed', unit: 'millionTokens' },+ ],},releasedAt: '2025-06-03',type: 'realtime',@@ -1023,12 +1152,14 @@ export const openaiRealtimeModels: AIRealtimeModelCard[] = [id: 'gpt-4o-realtime-preview-2024-10-01', // deprecated on 2025-09-10maxOutput: 4096,pricing: {- audioInput: 100,- audioOutput: 200,- cachedAudioInput: 20,- cachedInput: 2.5,- input: 5,- output: 20,+ units: [+ { name: 'audioInput', rate: 100, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'audioOutput', rate: 200, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'audioInput_cacheRead', rate: 20, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textInput_cacheRead', rate: 2.5, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textInput', rate: 5, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 20, strategy: 'fixed', unit: 'millionTokens' },+ ],},releasedAt: '2024-10-01',type: 'realtime',@@ -1040,12 +1171,14 @@ export const openaiRealtimeModels: AIRealtimeModelCard[] = [id: 'gpt-4o-mini-realtime-preview',maxOutput: 4096,pricing: {- audioInput: 10,- audioOutput: 20,- cachedAudioInput: 0.3,- cachedInput: 0.3,- input: 0.6,- output: 2.4,+ units: [+ { name: 'audioInput', rate: 10, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'audioOutput', rate: 20, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'audioInput_cacheRead', rate: 0.3, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textInput_cacheRead', rate: 0.3, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textInput', rate: 0.6, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 2.4, strategy: 'fixed', unit: 'millionTokens' },+ ],},releasedAt: '2024-12-17',type: 'realtime',diff --git a/src/config/aiModels/openrouter.ts b/src/config/aiModels/openrouter.tsindex 64c4dea152e..dafe3d1f0bd 100644--- a/src/config/aiModels/openrouter.ts+++ b/src/config/aiModels/openrouter.ts@@ -33,8 +33,10 @@ const openrouterChatModels: AIChatModelCard[] = [id: 'qwen/qwen3-30b-a3b',maxOutput: 40_960,pricing: {- input: 0.1,- output: 0.3,+ units: [+ { name: 'textInput', rate: 0.1, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 0.3, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -72,8 +74,10 @@ const openrouterChatModels: AIChatModelCard[] = [id: 'qwen/qwen3-14b',maxOutput: 40_960,pricing: {- input: 0.08,- output: 0.24,+ units: [+ { name: 'textInput', rate: 0.08, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 0.24, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -98,8 +102,10 @@ const openrouterChatModels: AIChatModelCard[] = [displayName: 'Qwen3 32B',id: 'qwen/qwen3-32b',pricing: {- input: 0.1,- output: 0.3,+ units: [+ { name: 'textInput', rate: 0.1, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 0.3, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -125,8 +131,10 @@ const openrouterChatModels: AIChatModelCard[] = [id: 'qwen/qwen3-235b-a22b',maxOutput: 40_960,pricing: {- input: 0.2,- output: 0.6,+ units: [+ { name: 'textInput', rate: 0.2, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 0.6, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -151,8 +159,10 @@ const openrouterChatModels: AIChatModelCard[] = [displayName: 'GLM Z1 Rumination 32B',id: 'thudm/glm-z1-rumination-32b',pricing: {- input: 0.24,- output: 0.24,+ units: [+ { name: 'textInput', rate: 0.24, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 0.24, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -196,8 +206,10 @@ const openrouterChatModels: AIChatModelCard[] = [displayName: 'GLM Z1 32B',id: 'thudm/glm-z1-32b',pricing: {- input: 0.24,- output: 0.24,+ units: [+ { name: 'textInput', rate: 0.24, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 0.24, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -222,8 +234,10 @@ const openrouterChatModels: AIChatModelCard[] = [displayName: 'GLM 4 32B',id: 'thudm/glm-4-32b',pricing: {- input: 0.24,- output: 0.24,+ units: [+ { name: 'textInput', rate: 0.24, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 0.24, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -240,8 +254,10 @@ const openrouterChatModels: AIChatModelCard[] = [id: 'google/gemini-2.5-pro',maxOutput: 65_536,pricing: {- input: 1.25,- output: 10,+ units: [+ { name: 'textInput', rate: 1.25, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 10, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -258,8 +274,10 @@ const openrouterChatModels: AIChatModelCard[] = [id: 'google/gemini-2.5-pro-preview',maxOutput: 65_536,pricing: {- input: 1.25,- output: 10,+ units: [+ { name: 'textInput', rate: 1.25, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 10, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -276,8 +294,10 @@ const openrouterChatModels: AIChatModelCard[] = [id: 'google/gemini-2.5-flash',maxOutput: 65_535,pricing: {- input: 0.15,- output: 0.6,+ units: [+ { name: 'textInput', rate: 0.15, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 0.6, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -294,8 +314,10 @@ const openrouterChatModels: AIChatModelCard[] = [id: 'google/gemini-2.5-flash-preview',maxOutput: 65_535,pricing: {- input: 0.15,- output: 0.6,+ units: [+ { name: 'textInput', rate: 0.15, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 0.6, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -312,8 +334,10 @@ const openrouterChatModels: AIChatModelCard[] = [id: 'google/gemini-2.5-flash-preview:thinking',maxOutput: 65_535,pricing: {- input: 0.15,- output: 3.5,+ units: [+ { name: 'textInput', rate: 0.15, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 3.5, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -330,9 +354,11 @@ const openrouterChatModels: AIChatModelCard[] = [id: 'openai/o3',maxOutput: 100_000,pricing: {- cachedInput: 2.5,- input: 10,- output: 40,+ units: [+ { name: 'textInput_cacheRead', rate: 2.5, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textInput', rate: 10, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 40, strategy: 'fixed', unit: 'millionTokens' },+ ],},releasedAt: '2025-04-17',type: 'chat',@@ -350,9 +376,11 @@ const openrouterChatModels: AIChatModelCard[] = [id: 'openai/o4-mini-high',maxOutput: 100_000,pricing: {- cachedInput: 0.275,- input: 1.1,- output: 4.4,+ units: [+ { name: 'textInput_cacheRead', rate: 0.275, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textInput', rate: 1.1, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 4.4, strategy: 'fixed', unit: 'millionTokens' },+ ],},releasedAt: '2025-04-17',type: 'chat',@@ -369,9 +397,11 @@ const openrouterChatModels: AIChatModelCard[] = [id: 'openai/o4-mini',maxOutput: 100_000,pricing: {- cachedInput: 0.275,- input: 1.1,- output: 4.4,+ units: [+ { name: 'textInput_cacheRead', rate: 0.275, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textInput', rate: 1.1, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 4.4, strategy: 'fixed', unit: 'millionTokens' },+ ],},releasedAt: '2025-04-17',type: 'chat',@@ -387,9 +417,11 @@ const openrouterChatModels: AIChatModelCard[] = [id: 'openai/gpt-4.1',maxOutput: 32_768,pricing: {- cachedInput: 0.5,- input: 2,- output: 8,+ units: [+ { name: 'textInput_cacheRead', rate: 0.5, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textInput', rate: 2, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 8, strategy: 'fixed', unit: 'millionTokens' },+ ],},releasedAt: '2025-04-14',type: 'chat',@@ -406,9 +438,11 @@ const openrouterChatModels: AIChatModelCard[] = [id: 'openai/gpt-4.1-mini',maxOutput: 32_768,pricing: {- cachedInput: 0.1,- input: 0.4,- output: 1.6,+ units: [+ { name: 'textInput_cacheRead', rate: 0.1, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textInput', rate: 0.4, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 1.6, strategy: 'fixed', unit: 'millionTokens' },+ ],},releasedAt: '2025-04-14',type: 'chat',@@ -424,9 +458,11 @@ const openrouterChatModels: AIChatModelCard[] = [id: 'openai/gpt-4.1-nano',maxOutput: 32_768,pricing: {- cachedInput: 0.025,- input: 0.1,- output: 0.4,+ units: [+ { name: 'textInput_cacheRead', rate: 0.025, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textInput', rate: 0.1, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 0.4, strategy: 'fixed', unit: 'millionTokens' },+ ],},releasedAt: '2025-04-14',type: 'chat',@@ -442,9 +478,11 @@ const openrouterChatModels: AIChatModelCard[] = [id: 'openai/o3-mini-high',maxOutput: 100_000,pricing: {- cachedInput: 0.55,- input: 1.1,- output: 4.4,+ units: [+ { name: 'textInput_cacheRead', rate: 0.55, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textInput', rate: 1.1, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 4.4, strategy: 'fixed', unit: 'millionTokens' },+ ],},releasedAt: '2025-01-31',type: 'chat',@@ -460,9 +498,11 @@ const openrouterChatModels: AIChatModelCard[] = [id: 'openai/o3-mini',maxOutput: 100_000,pricing: {- cachedInput: 0.55,- input: 1.1,- output: 4.4,+ units: [+ { name: 'textInput_cacheRead', rate: 0.55, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textInput', rate: 1.1, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 4.4, strategy: 'fixed', unit: 'millionTokens' },+ ],},releasedAt: '2025-01-31',type: 'chat',@@ -478,8 +518,10 @@ const openrouterChatModels: AIChatModelCard[] = [id: 'openai/o1-mini',maxOutput: 65_536,pricing: {- input: 3,- output: 12,+ units: [+ { name: 'textInput', rate: 3, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 12, strategy: 'fixed', unit: 'millionTokens' },+ ],},releasedAt: '2024-09-12',type: 'chat',@@ -495,8 +537,10 @@ const openrouterChatModels: AIChatModelCard[] = [id: 'openai/o1-preview',maxOutput: 32_768,pricing: {- input: 15,- output: 60,+ units: [+ { name: 'textInput', rate: 15, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 60, strategy: 'fixed', unit: 'millionTokens' },+ ],},releasedAt: '2024-09-12',type: 'chat',@@ -513,8 +557,10 @@ const openrouterChatModels: AIChatModelCard[] = [id: 'openai/gpt-4o-mini',maxOutput: 16_385,pricing: {- input: 0.15,- output: 0.6,+ units: [+ { name: 'textInput', rate: 0.15, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 0.6, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -529,8 +575,10 @@ const openrouterChatModels: AIChatModelCard[] = [displayName: 'GPT-4o',id: 'openai/gpt-4o',pricing: {- input: 2.5,- output: 10,+ units: [+ { name: 'textInput', rate: 2.5, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 10, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -545,8 +593,10 @@ const openrouterChatModels: AIChatModelCard[] = [displayName: 'DeepSeek R1 0528',id: 'deepseek/deepseek-r1-0528',pricing: {- input: 0.5,- output: 2.18,+ units: [+ { name: 'textInput', rate: 0.5, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 2.18, strategy: 'fixed', unit: 'millionTokens' },+ ],},releasedAt: '2025-05-28',type: 'chat',@@ -573,8 +623,10 @@ const openrouterChatModels: AIChatModelCard[] = [displayName: 'DeepSeek R1',id: 'deepseek/deepseek-r1',pricing: {- input: 3,- output: 8,+ units: [+ { name: 'textInput', rate: 3, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 8, strategy: 'fixed', unit: 'millionTokens' },+ ],},releasedAt: '2025-01-20',type: 'chat',@@ -598,9 +650,11 @@ const openrouterChatModels: AIChatModelCard[] = [displayName: 'DeepSeek V3 0324',id: 'deepseek/deepseek-chat-v3-0324',pricing: {- cachedInput: 0.07,- input: 0.27,- output: 1.1,+ units: [+ { name: 'textInput_cacheRead', rate: 0.07, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textInput', rate: 0.27, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 1.1, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -624,10 +678,17 @@ const openrouterChatModels: AIChatModelCard[] = [id: 'anthropic/claude-3-haiku',maxOutput: 4096,pricing: {- cachedInput: 0.025,- input: 0.25,- output: 1.25,- writeCacheInput: 0.3125,+ units: [+ { name: 'textInput_cacheRead', rate: 0.025, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textInput', rate: 0.25, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 1.25, strategy: 'fixed', unit: 'millionTokens' },+ {+ lookup: { prices: { '5m': 0.3125 }, pricingParams: ['ttl'] },+ name: 'textInput_cacheWrite',+ strategy: 'lookup',+ unit: 'millionTokens',+ },+ ],},releasedAt: '2024-03-07',type: 'chat',@@ -643,10 +704,17 @@ const openrouterChatModels: AIChatModelCard[] = [id: 'anthropic/claude-3.5-haiku',maxOutput: 8192,pricing: {- cachedInput: 0.1,- input: 1,- output: 5,- writeCacheInput: 1.25,+ units: [+ { name: 'textInput_cacheRead', rate: 0.1, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textInput', rate: 1, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 5, strategy: 'fixed', unit: 'millionTokens' },+ {+ lookup: { prices: { '5m': 1.25 }, pricingParams: ['ttl'] },+ name: 'textInput_cacheWrite',+ strategy: 'lookup',+ unit: 'millionTokens',+ },+ ],},releasedAt: '2024-11-05',type: 'chat',@@ -663,10 +731,17 @@ const openrouterChatModels: AIChatModelCard[] = [id: 'anthropic/claude-3.5-sonnet',maxOutput: 8192,pricing: {- cachedInput: 0.3,- input: 3,- output: 15,- writeCacheInput: 3.75,+ units: [+ { name: 'textInput_cacheRead', rate: 0.3, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textInput', rate: 3, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 15, strategy: 'fixed', unit: 'millionTokens' },+ {+ lookup: { prices: { '5m': 3.75 }, pricingParams: ['ttl'] },+ name: 'textInput_cacheWrite',+ strategy: 'lookup',+ unit: 'millionTokens',+ },+ ],},releasedAt: '2024-06-20',type: 'chat',@@ -684,10 +759,17 @@ const openrouterChatModels: AIChatModelCard[] = [id: 'anthropic/claude-3.7-sonnet',maxOutput: 8192,pricing: {- cachedInput: 0.3,- input: 3,- output: 15,- writeCacheInput: 3.75,+ units: [+ { name: 'textInput_cacheRead', rate: 0.3, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textInput', rate: 3, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 15, strategy: 'fixed', unit: 'millionTokens' },+ {+ lookup: { prices: { '5m': 3.75 }, pricingParams: ['ttl'] },+ name: 'textInput_cacheWrite',+ strategy: 'lookup',+ unit: 'millionTokens',+ },+ ],},releasedAt: '2025-02-24',settings: {@@ -708,8 +790,10 @@ const openrouterChatModels: AIChatModelCard[] = [id: 'anthropic/claude-sonnet-4',maxOutput: 64_000,pricing: {- input: 3,- output: 15,+ units: [+ { name: 'textInput', rate: 3, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 15, strategy: 'fixed', unit: 'millionTokens' },+ ],},releasedAt: '2025-05-23',settings: {@@ -730,8 +814,10 @@ const openrouterChatModels: AIChatModelCard[] = [id: 'anthropic/claude-opus-4',maxOutput: 32_000,pricing: {- input: 15,- output: 75,+ units: [+ { name: 'textInput', rate: 15, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 75, strategy: 'fixed', unit: 'millionTokens' },+ ],},releasedAt: '2025-05-23',settings: {@@ -751,10 +837,17 @@ const openrouterChatModels: AIChatModelCard[] = [id: 'anthropic/claude-3-opus',maxOutput: 4096,pricing: {- cachedInput: 1.5,- input: 15,- output: 75,- writeCacheInput: 18.75,+ units: [+ { name: 'textInput_cacheRead', rate: 1.5, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textInput', rate: 15, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 75, strategy: 'fixed', unit: 'millionTokens' },+ {+ lookup: { prices: { '5m': 18.75 }, pricingParams: ['ttl'] },+ name: 'textInput_cacheWrite',+ strategy: 'lookup',+ unit: 'millionTokens',+ },+ ],},releasedAt: '2024-02-29',type: 'chat',@@ -770,8 +863,10 @@ const openrouterChatModels: AIChatModelCard[] = [id: 'google/gemini-flash-1.5',maxOutput: 8192,pricing: {- input: 0.075,- output: 0.3,+ units: [+ { name: 'textInput', rate: 0.075, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 0.3, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -787,9 +882,11 @@ const openrouterChatModels: AIChatModelCard[] = [id: 'google/gemini-2.0-flash-001',maxOutput: 8192,pricing: {- cachedInput: 0.025,- input: 0.1,- output: 0.4,+ units: [+ { name: 'textInput_cacheRead', rate: 0.025, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textInput', rate: 0.1, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 0.4, strategy: 'fixed', unit: 'millionTokens' },+ ],},releasedAt: '2025-02-05',type: 'chat',@@ -805,8 +902,10 @@ const openrouterChatModels: AIChatModelCard[] = [id: 'google/gemini-pro-1.5',maxOutput: 8192,pricing: {- input: 3.5,- output: 10.5,+ units: [+ { name: 'textInput', rate: 3.5, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 10.5, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -820,8 +919,10 @@ const openrouterChatModels: AIChatModelCard[] = [displayName: 'Llama 3.2 11B Vision',id: 'meta-llama/llama-3.2-11b-vision-instruct',pricing: {- input: 0.162,- output: 0.162,+ units: [+ { name: 'textInput', rate: 0.162, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 0.162, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -835,8 +936,10 @@ const openrouterChatModels: AIChatModelCard[] = [displayName: 'Llama 3.2 90B Vision',id: 'meta-llama/llama-3.2-90b-vision-instruct',pricing: {- input: 0.4,- output: 0.4,+ units: [+ { name: 'textInput', rate: 0.4, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 0.4, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -850,8 +953,10 @@ const openrouterChatModels: AIChatModelCard[] = [displayName: 'Llama 3.3 70B Instruct',id: 'meta-llama/llama-3.3-70b-instruct',pricing: {- input: 0.12,- output: 0.3,+ units: [+ { name: 'textInput', rate: 0.12, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 0.3, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},diff --git a/src/config/aiModels/perplexity.ts b/src/config/aiModels/perplexity.tsindex dd16e889ee3..b0ac68a150c 100644--- a/src/config/aiModels/perplexity.ts+++ b/src/config/aiModels/perplexity.ts@@ -12,7 +12,12 @@ const perplexityChatModels: AIChatModelCard[] = [enabled: true,id: 'sonar-deep-research',maxOutput: 8192,- pricing: { input: 2, output: 8 },+ pricing: {+ units: [+ { name: 'textInput', rate: 2, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 8, strategy: 'fixed', unit: 'millionTokens' },+ ],+ },releasedAt: '2025-02-14',settings: {extendParams: ['reasoningEffort'],@@ -32,7 +37,12 @@ const perplexityChatModels: AIChatModelCard[] = [enabled: true,id: 'sonar-reasoning-pro',maxOutput: 8192,- pricing: { input: 2, output: 8 },+ pricing: {+ units: [+ { name: 'textInput', rate: 2, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 8, strategy: 'fixed', unit: 'millionTokens' },+ ],+ },releasedAt: '2025-01-21',settings: {searchImpl: 'internal',@@ -51,7 +61,12 @@ const perplexityChatModels: AIChatModelCard[] = [enabled: true,id: 'sonar-reasoning',maxOutput: 8192,- pricing: { input: 1, output: 5 },+ pricing: {+ units: [+ { name: 'textInput', rate: 1, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 5, strategy: 'fixed', unit: 'millionTokens' },+ ],+ },releasedAt: '2025-01-21',settings: {searchImpl: 'internal',@@ -68,7 +83,12 @@ const perplexityChatModels: AIChatModelCard[] = [displayName: 'Sonar Pro',enabled: true,id: 'sonar-pro',- pricing: { input: 3, output: 15 },+ pricing: {+ units: [+ { name: 'textInput', rate: 3, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 15, strategy: 'fixed', unit: 'millionTokens' },+ ],+ },releasedAt: '2025-01-21',settings: {searchImpl: 'internal',@@ -85,7 +105,12 @@ const perplexityChatModels: AIChatModelCard[] = [displayName: 'Sonar',enabled: true,id: 'sonar',- pricing: { input: 1, output: 1 },+ pricing: {+ units: [+ { name: 'textInput', rate: 1, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 1, strategy: 'fixed', unit: 'millionTokens' },+ ],+ },releasedAt: '2025-01-21',settings: {searchImpl: 'internal',@@ -102,7 +127,12 @@ const perplexityChatModels: AIChatModelCard[] = ['R1-1776 是 DeepSeek R1 模型的一个版本,经过后训练,可提供未经审查、无偏见的事实信息。',displayName: 'R1 1776',id: 'r1-1776',- pricing: { input: 2, output: 8 },+ pricing: {+ units: [+ { name: 'textInput', rate: 2, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 8, strategy: 'fixed', unit: 'millionTokens' },+ ],+ },releasedAt: '2025-02-18',type: 'chat',},diff --git a/src/config/aiModels/ppio.ts b/src/config/aiModels/ppio.tsindex 7b1dcd4150a..881388c89b9 100644--- a/src/config/aiModels/ppio.ts+++ b/src/config/aiModels/ppio.ts@@ -13,8 +13,10 @@ const ppioChatModels: AIChatModelCard[] = [id: 'deepseek/deepseek-r1/community',pricing: {currency: 'CNY',- input: 4,- output: 16,+ units: [+ { name: 'textInput', rate: 4, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 16, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -27,8 +29,10 @@ const ppioChatModels: AIChatModelCard[] = [id: 'deepseek/deepseek-v3/community',pricing: {currency: 'CNY',- input: 1,- output: 2,+ units: [+ { name: 'textInput', rate: 1, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 2, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -44,8 +48,10 @@ const ppioChatModels: AIChatModelCard[] = [id: 'deepseek/deepseek-r1',pricing: {currency: 'CNY',- input: 4,- output: 16,+ units: [+ { name: 'textInput', rate: 4, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 16, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -58,8 +64,10 @@ const ppioChatModels: AIChatModelCard[] = [id: 'deepseek/deepseek-v3',pricing: {currency: 'CNY',- input: 1,- output: 2,+ units: [+ { name: 'textInput', rate: 1, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 2, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -75,8 +83,10 @@ const ppioChatModels: AIChatModelCard[] = [id: 'deepseek/deepseek-r1-distill-llama-70b',pricing: {currency: 'CNY',- input: 5.8,- output: 5.8,+ units: [+ { name: 'textInput', rate: 5.8, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 5.8, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -92,8 +102,10 @@ const ppioChatModels: AIChatModelCard[] = [id: 'deepseek/deepseek-r1-distill-qwen-32b',pricing: {currency: 'CNY',- input: 2.18,- output: 2.18,+ units: [+ { name: 'textInput', rate: 2.18, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 2.18, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -109,8 +121,10 @@ const ppioChatModels: AIChatModelCard[] = [id: 'deepseek/deepseek-r1-distill-qwen-14b',pricing: {currency: 'CNY',- input: 1,- output: 1,+ units: [+ { name: 'textInput', rate: 1, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 1, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -126,8 +140,10 @@ const ppioChatModels: AIChatModelCard[] = [id: 'deepseek/deepseek-r1-distill-llama-8b',pricing: {currency: 'CNY',- input: 0.3,- output: 0.3,+ units: [+ { name: 'textInput', rate: 0.3, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 0.3, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -140,8 +156,10 @@ const ppioChatModels: AIChatModelCard[] = [id: 'qwen/qwen-2.5-72b-instruct',pricing: {currency: 'CNY',- input: 2.75,- output: 2.88,+ units: [+ { name: 'textInput', rate: 2.75, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 2.88, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -157,8 +175,10 @@ const ppioChatModels: AIChatModelCard[] = [id: 'qwen/qwen-2-vl-72b-instruct',pricing: {currency: 'CNY',- input: 4.5,- output: 4.5,+ units: [+ { name: 'textInput', rate: 4.5, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 4.5, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -170,8 +190,10 @@ const ppioChatModels: AIChatModelCard[] = [id: 'meta-llama/llama-3.2-3b-instruct',pricing: {currency: 'CNY',- input: 0.216,- output: 0.36,+ units: [+ { name: 'textInput', rate: 0.216, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 0.36, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -184,8 +206,10 @@ const ppioChatModels: AIChatModelCard[] = [id: 'qwen/qwen2.5-32b-instruct',pricing: {currency: 'CNY',- input: 1.26,- output: 1.26,+ units: [+ { name: 'textInput', rate: 1.26, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 1.26, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -198,8 +222,10 @@ const ppioChatModels: AIChatModelCard[] = [id: 'baichuan/baichuan2-13b-chat',pricing: {currency: 'CNY',- input: 1.75,- output: 1.75,+ units: [+ { name: 'textInput', rate: 1.75, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 1.75, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -212,8 +238,10 @@ const ppioChatModels: AIChatModelCard[] = [id: 'meta-llama/llama-3.1-70b-instruct',pricing: {currency: 'CNY',- input: 2.45,- output: 2.82,+ units: [+ { name: 'textInput', rate: 2.45, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 2.82, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -226,8 +254,10 @@ const ppioChatModels: AIChatModelCard[] = [id: 'meta-llama/llama-3.1-8b-instruct',pricing: {currency: 'CNY',- input: 0.4,- output: 0.4,+ units: [+ { name: 'textInput', rate: 0.4, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 0.4, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -240,8 +270,10 @@ const ppioChatModels: AIChatModelCard[] = [id: '01-ai/yi-1.5-34b-chat',pricing: {currency: 'CNY',- input: 1.1,- output: 1.1,+ units: [+ { name: 'textInput', rate: 1.1, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 1.1, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -254,8 +286,10 @@ const ppioChatModels: AIChatModelCard[] = [id: '01-ai/yi-1.5-9b-chat',pricing: {currency: 'CNY',- input: 0.4,- output: 0.4,+ units: [+ { name: 'textInput', rate: 0.4, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 0.4, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -267,8 +301,10 @@ const ppioChatModels: AIChatModelCard[] = [id: 'thudm/glm-4-9b-chat',pricing: {currency: 'CNY',- input: 0.5,- output: 0.5,+ units: [+ { name: 'textInput', rate: 0.5, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 0.5, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -281,8 +317,10 @@ const ppioChatModels: AIChatModelCard[] = [id: 'qwen/qwen-2-7b-instruct',pricing: {currency: 'CNY',- input: 0.32,- output: 0.32,+ units: [+ { name: 'textInput', rate: 0.32, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 0.32, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},diff --git a/src/config/aiModels/qwen.ts b/src/config/aiModels/qwen.tsindex 2e9068107c7..cf6712cd91b 100644--- a/src/config/aiModels/qwen.ts+++ b/src/config/aiModels/qwen.ts@@ -17,8 +17,10 @@ const qwenChatModels: AIChatModelCard[] = [organization: 'Qwen',pricing: {currency: 'CNY',- input: 4,- output: 16,+ units: [+ { name: 'textInput', rate: 4, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 16, strategy: 'fixed', unit: 'millionTokens' },+ ],},releasedAt: '2025-07-17',settings: {@@ -34,16 +36,19 @@ const qwenChatModels: AIChatModelCard[] = [deploymentName: 'qwen3-coder-plus',},contextWindowTokens: 1_048_576,- description: '通义千问代码模型。最新的 Qwen3-Coder 系列模型是基于 Qwen3 的代码生成模型,具有强大的Coding Agent能力,擅长工具调用和环境交互,能够实现自主编程,代码能力卓越的同时兼具通用能力。',+ description:+ '通义千问代码模型。最新的 Qwen3-Coder 系列模型是基于 Qwen3 的代码生成模型,具有强大的Coding Agent能力,擅长工具调用和环境交互,能够实现自主编程,代码能力卓越的同时兼具通用能力。',displayName: 'Qwen3 Coder Plus',id: 'qwen3-coder-plus',maxOutput: 65_536,organization: 'Qwen',pricing: {- cachedInput: 2.4, // tokens 32K ~ 128K- currency: 'CNY',- input: 6,- output: 24,+ currency: 'CNY',+ units: [+ { name: 'textInput_cacheRead', rate: 2.4, strategy: 'fixed', unit: 'millionTokens' }, // tokens 32K ~ 128K+ { name: 'textInput', rate: 6, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 24, strategy: 'fixed', unit: 'millionTokens' },+ ],},releasedAt: '2025-07-22',type: 'chat',@@ -56,16 +61,19 @@ const qwenChatModels: AIChatModelCard[] = [deploymentName: 'qwen3-coder-flash',},contextWindowTokens: 1_048_576,- description: '通义千问代码模型。最新的 Qwen3-Coder 系列模型是基于 Qwen3 的代码生成模型,具有强大的Coding Agent能力,擅长工具调用和环境交互,能够实现自主编程,代码能力卓越的同时兼具通用能力。',+ description:+ '通义千问代码模型。最新的 Qwen3-Coder 系列模型是基于 Qwen3 的代码生成模型,具有强大的Coding Agent能力,擅长工具调用和环境交互,能够实现自主编程,代码能力卓越的同时兼具通用能力。',displayName: 'Qwen3 Coder Flash',id: 'qwen3-coder-flash',maxOutput: 65_536,organization: 'Qwen',pricing: {- cachedInput: 0.6, // tokens 32K ~ 128K- currency: 'CNY',- input: 1.5,- output: 6,+ currency: 'CNY',+ units: [+ { name: 'textInput_cacheRead', rate: 0.6, strategy: 'fixed', unit: 'millionTokens' }, // tokens 32K ~ 128K+ { name: 'textInput', rate: 1.5, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 6, strategy: 'fixed', unit: 'millionTokens' },+ ],},releasedAt: '2025-07-28',type: 'chat',@@ -75,15 +83,18 @@ const qwenChatModels: AIChatModelCard[] = [functionCall: true,},contextWindowTokens: 262_144,- description: '通义千问代码模型开源版。最新的 qwen3-coder-480b-a35b-instruct 是基于 Qwen3 的代码生成模型,具有强大的Coding Agent能力,擅长工具调用和环境交互,能够实现自主编程、代码能力卓越的同时兼具通用能力。',+ description:+ '通义千问代码模型开源版。最新的 qwen3-coder-480b-a35b-instruct 是基于 Qwen3 的代码生成模型,具有强大的Coding Agent能力,擅长工具调用和环境交互,能够实现自主编程、代码能力卓越的同时兼具通用能力。',displayName: 'Qwen3 Coder 480B A35B',id: 'qwen3-coder-480b-a35b-instruct',maxOutput: 65_536,organization: 'Qwen',pricing: {currency: 'CNY',- input: 9, // tokens 32K ~ 128K- output: 36,+ units: [+ { name: 'textInput', rate: 9, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 36, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -102,8 +113,10 @@ const qwenChatModels: AIChatModelCard[] = [organization: 'Qwen',pricing: {currency: 'CNY',- input: 2,- output: 20,+ units: [+ { name: 'textInput', rate: 2, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 20, strategy: 'fixed', unit: 'millionTokens' },+ ],},releasedAt: '2025-07-25',settings: {@@ -125,8 +138,10 @@ const qwenChatModels: AIChatModelCard[] = [organization: 'Qwen',pricing: {currency: 'CNY',- input: 2,- output: 8,+ units: [+ { name: 'textInput', rate: 2, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 8, strategy: 'fixed', unit: 'millionTokens' },+ ],},releasedAt: '2025-07-22',type: 'chat',@@ -146,8 +161,10 @@ const qwenChatModels: AIChatModelCard[] = [organization: 'Qwen',pricing: {currency: 'CNY',- input: 0.75,- output: 7.5,+ units: [+ { name: 'textInput', rate: 0.75, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 7.5, strategy: 'fixed', unit: 'millionTokens' },+ ],},releasedAt: '2025-07-30',settings: {@@ -169,8 +186,10 @@ const qwenChatModels: AIChatModelCard[] = [organization: 'Qwen',pricing: {currency: 'CNY',- input: 0.75,- output: 3,+ units: [+ { name: 'textInput', rate: 0.75, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 3, strategy: 'fixed', unit: 'millionTokens' },+ ],},releasedAt: '2025-07-29',type: 'chat',@@ -189,8 +208,10 @@ const qwenChatModels: AIChatModelCard[] = [organization: 'Qwen',pricing: {currency: 'CNY',- input: 2,- output: 20, // Thinking mode pricing+ units: [+ { name: 'textInput', rate: 2, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 20, strategy: 'fixed', unit: 'millionTokens' },+ ],},releasedAt: '2025-04-28',settings: {@@ -212,8 +233,10 @@ const qwenChatModels: AIChatModelCard[] = [organization: 'Qwen',pricing: {currency: 'CNY',- input: 2,- output: 20, // Thinking mode pricing+ units: [+ { name: 'textInput', rate: 2, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 20, strategy: 'fixed', unit: 'millionTokens' },+ ],},releasedAt: '2025-04-28',settings: {@@ -235,8 +258,10 @@ const qwenChatModels: AIChatModelCard[] = [organization: 'Qwen',pricing: {currency: 'CNY',- input: 0.75,- output: 7.5, // Thinking mode pricing+ units: [+ { name: 'textInput', rate: 0.75, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 7.5, strategy: 'fixed', unit: 'millionTokens' },+ ],},releasedAt: '2025-04-28',settings: {@@ -258,8 +283,10 @@ const qwenChatModels: AIChatModelCard[] = [organization: 'Qwen',pricing: {currency: 'CNY',- input: 1,- output: 10, // Thinking mode pricing+ units: [+ { name: 'textInput', rate: 1, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 10, strategy: 'fixed', unit: 'millionTokens' },+ ],},releasedAt: '2025-04-28',settings: {@@ -281,8 +308,10 @@ const qwenChatModels: AIChatModelCard[] = [organization: 'Qwen',pricing: {currency: 'CNY',- input: 0.5,- output: 5, // Thinking mode pricing+ units: [+ { name: 'textInput', rate: 0.5, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 5, strategy: 'fixed', unit: 'millionTokens' },+ ],},releasedAt: '2025-04-28',settings: {@@ -304,8 +333,10 @@ const qwenChatModels: AIChatModelCard[] = [organization: 'Qwen',pricing: {currency: 'CNY',- input: 0.3,- output: 3, // Thinking mode pricing+ units: [+ { name: 'textInput', rate: 0.3, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 3, strategy: 'fixed', unit: 'millionTokens' },+ ],},releasedAt: '2025-04-28',settings: {@@ -327,8 +358,10 @@ const qwenChatModels: AIChatModelCard[] = [organization: 'Qwen',pricing: {currency: 'CNY',- input: 0.3,- output: 3, // Thinking mode pricing+ units: [+ { name: 'textInput', rate: 0.3, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 3, strategy: 'fixed', unit: 'millionTokens' },+ ],},releasedAt: '2025-04-28',settings: {@@ -350,8 +383,10 @@ const qwenChatModels: AIChatModelCard[] = [organization: 'Qwen',pricing: {currency: 'CNY',- input: 0.3,- output: 3, // Thinking mode pricing+ units: [+ { name: 'textInput', rate: 0.3, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 3, strategy: 'fixed', unit: 'millionTokens' },+ ],},releasedAt: '2025-04-28',settings: {@@ -377,8 +412,10 @@ const qwenChatModels: AIChatModelCard[] = [organization: 'Qwen',pricing: {currency: 'CNY',- input: 1.6,- output: 4,+ units: [+ { name: 'textInput', rate: 1.6, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 4, strategy: 'fixed', unit: 'millionTokens' },+ ],},releasedAt: '2025-03-06',settings: {@@ -403,10 +440,12 @@ const qwenChatModels: AIChatModelCard[] = [maxOutput: 16_384,organization: 'Qwen',pricing: {- cachedInput: 0.12,currency: 'CNY',- input: 0.3,- output: 3, // Thinking mode pricing+ units: [+ { name: 'textInput_cacheRead', rate: 0.12, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textInput', rate: 0.3, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 3, strategy: 'fixed', unit: 'millionTokens' },+ ],},releasedAt: '2025-07-15',settings: {@@ -432,10 +471,12 @@ const qwenChatModels: AIChatModelCard[] = [maxOutput: 16_384,organization: 'Qwen',pricing: {- cachedInput: 0.32,currency: 'CNY',- input: 0.8,- output: 8, // Thinking mode pricing+ units: [+ { name: 'textInput_cacheRead', rate: 0.32, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textInput', rate: 0.8, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 8, strategy: 'fixed', unit: 'millionTokens' },+ ],},releasedAt: '2025-07-14',settings: {@@ -461,10 +502,12 @@ const qwenChatModels: AIChatModelCard[] = [maxOutput: 8192,organization: 'Qwen',pricing: {- cachedInput: 0.96,currency: 'CNY',- input: 2.4,- output: 9.6,+ units: [+ { name: 'textInput_cacheRead', rate: 0.96, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textInput', rate: 2.4, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 9.6, strategy: 'fixed', unit: 'millionTokens' },+ ],},settings: {searchImpl: 'params',@@ -487,8 +530,10 @@ const qwenChatModels: AIChatModelCard[] = [organization: 'Qwen',pricing: {currency: 'CNY',- input: 0.5,- output: 2,+ units: [+ { name: 'textInput', rate: 0.5, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 2, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -508,8 +553,10 @@ const qwenChatModels: AIChatModelCard[] = [organization: 'Qwen',pricing: {currency: 'CNY',- input: 1.5, // use image input price- output: 4.5,+ units: [+ { name: 'textInput', rate: 1.5, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 4.5, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -526,8 +573,10 @@ const qwenChatModels: AIChatModelCard[] = [organization: 'Qwen',pricing: {currency: 'CNY',- input: 2, // use image input price- output: 6,+ units: [+ { name: 'textInput', rate: 2, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 6, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -546,10 +595,12 @@ const qwenChatModels: AIChatModelCard[] = [maxOutput: 8192,organization: 'Qwen',pricing: {- cachedInput: 0.6,currency: 'CNY',- input: 1.5,- output: 4.5,+ units: [+ { name: 'textInput_cacheRead', rate: 0.6, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textInput', rate: 1.5, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 4.5, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -568,10 +619,12 @@ const qwenChatModels: AIChatModelCard[] = [maxOutput: 8192,organization: 'Qwen',pricing: {- cachedInput: 1.2,currency: 'CNY',- input: 3,- output: 9,+ units: [+ { name: 'textInput_cacheRead', rate: 1.2, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textInput', rate: 3, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 9, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -591,8 +644,10 @@ const qwenChatModels: AIChatModelCard[] = [organization: 'Qwen',pricing: {currency: 'CNY',- input: 5,- output: 5,+ units: [+ { name: 'textInput', rate: 5, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 5, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -608,8 +663,10 @@ const qwenChatModels: AIChatModelCard[] = [organization: 'Qwen',pricing: {currency: 'CNY',- input: 2,- output: 6,+ units: [+ { name: 'textInput', rate: 2, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 6, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -625,8 +682,10 @@ const qwenChatModels: AIChatModelCard[] = [organization: 'Qwen',pricing: {currency: 'CNY',- input: 4,- output: 12,+ units: [+ { name: 'textInput', rate: 4, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 12, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -642,8 +701,10 @@ const qwenChatModels: AIChatModelCard[] = [organization: 'Qwen',pricing: {currency: 'CNY',- input: 2,- output: 6,+ units: [+ { name: 'textInput', rate: 2, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 6, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -659,8 +720,10 @@ const qwenChatModels: AIChatModelCard[] = [organization: 'Qwen',pricing: {currency: 'CNY',- input: 3.5,- output: 7,+ units: [+ { name: 'textInput', rate: 3.5, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 7, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -678,8 +741,10 @@ const qwenChatModels: AIChatModelCard[] = [organization: 'Qwen',pricing: {currency: 'CNY',- input: 2,- output: 6,+ units: [+ { name: 'textInput', rate: 2, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 6, strategy: 'fixed', unit: 'millionTokens' },+ ],},releasedAt: '2025-03-06',settings: {@@ -699,8 +764,10 @@ const qwenChatModels: AIChatModelCard[] = [organization: 'Qwen',pricing: {currency: 'CNY',- input: 2,- output: 6,+ units: [+ { name: 'textInput', rate: 2, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 6, strategy: 'fixed', unit: 'millionTokens' },+ ],},releasedAt: '2024-11-28',type: 'chat',@@ -722,8 +789,10 @@ const qwenChatModels: AIChatModelCard[] = [organization: 'Qwen',pricing: {currency: 'CNY',- input: 8,- output: 32,+ units: [+ { name: 'textInput', rate: 8, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 32, strategy: 'fixed', unit: 'millionTokens' },+ ],},releasedAt: '2025-05-15',type: 'chat',@@ -745,8 +814,10 @@ const qwenChatModels: AIChatModelCard[] = [organization: 'Qwen',pricing: {currency: 'CNY',- input: 2,- output: 5,+ units: [+ { name: 'textInput', rate: 2, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 5, strategy: 'fixed', unit: 'millionTokens' },+ ],},releasedAt: '2025-05-15',type: 'chat',@@ -765,8 +836,10 @@ const qwenChatModels: AIChatModelCard[] = [organization: 'Qwen',pricing: {currency: 'CNY',- input: 12,- output: 36,+ units: [+ { name: 'textInput', rate: 12, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 36, strategy: 'fixed', unit: 'millionTokens' },+ ],},releasedAt: '2024-12-25',type: 'chat',@@ -783,8 +856,10 @@ const qwenChatModels: AIChatModelCard[] = [organization: 'Qwen',pricing: {currency: 'CNY',- input: 0.5,- output: 1,+ units: [+ { name: 'textInput', rate: 0.5, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 1, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -800,8 +875,10 @@ const qwenChatModels: AIChatModelCard[] = [organization: 'Qwen',pricing: {currency: 'CNY',- input: 1,- output: 3,+ units: [+ { name: 'textInput', rate: 1, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 3, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -817,8 +894,10 @@ const qwenChatModels: AIChatModelCard[] = [organization: 'Qwen',pricing: {currency: 'CNY',- input: 2,- output: 6,+ units: [+ { name: 'textInput', rate: 2, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 6, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -834,8 +913,10 @@ const qwenChatModels: AIChatModelCard[] = [organization: 'Qwen',pricing: {currency: 'CNY',- input: 4,- output: 12,+ units: [+ { name: 'textInput', rate: 4, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 12, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -851,8 +932,10 @@ const qwenChatModels: AIChatModelCard[] = [organization: 'Qwen',pricing: {currency: 'CNY',- input: 1,- output: 3,+ units: [+ { name: 'textInput', rate: 1, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 3, strategy: 'fixed', unit: 'millionTokens' },+ ],},releasedAt: '2025-01-27',type: 'chat',@@ -866,8 +949,10 @@ const qwenChatModels: AIChatModelCard[] = [organization: 'Qwen',pricing: {currency: 'CNY',- input: 1,- output: 2,+ units: [+ { name: 'textInput', rate: 1, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 2, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -880,8 +965,10 @@ const qwenChatModels: AIChatModelCard[] = [organization: 'Qwen',pricing: {currency: 'CNY',- input: 4,- output: 12,+ units: [+ { name: 'textInput', rate: 4, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 12, strategy: 'fixed', unit: 'millionTokens' },+ ],},releasedAt: '2025-07-23',type: 'chat',@@ -895,8 +982,10 @@ const qwenChatModels: AIChatModelCard[] = [organization: 'Qwen',pricing: {currency: 'CNY',- input: 1,- output: 2,+ units: [+ { name: 'textInput', rate: 1, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 2, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -909,8 +998,10 @@ const qwenChatModels: AIChatModelCard[] = [organization: 'Qwen',pricing: {currency: 'CNY',- input: 2,- output: 6,+ units: [+ { name: 'textInput', rate: 2, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 6, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -923,8 +1014,10 @@ const qwenChatModels: AIChatModelCard[] = [organization: 'Qwen',pricing: {currency: 'CNY',- input: 2,- output: 6,+ units: [+ { name: 'textInput', rate: 2, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 6, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -941,8 +1034,10 @@ const qwenChatModels: AIChatModelCard[] = [organization: 'Qwen',pricing: {currency: 'CNY',- input: 16,- output: 48,+ units: [+ { name: 'textInput', rate: 16, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 48, strategy: 'fixed', unit: 'millionTokens' },+ ],},releasedAt: '2025-01-27',type: 'chat',@@ -960,8 +1055,10 @@ const qwenChatModels: AIChatModelCard[] = [organization: 'Qwen',pricing: {currency: 'CNY',- input: 8,- output: 24,+ units: [+ { name: 'textInput', rate: 8, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 24, strategy: 'fixed', unit: 'millionTokens' },+ ],},releasedAt: '2025-03-24',type: 'chat',@@ -979,8 +1076,10 @@ const qwenChatModels: AIChatModelCard[] = [organization: 'Qwen',pricing: {currency: 'CNY',- input: 2,- output: 5,+ units: [+ { name: 'textInput', rate: 2, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 5, strategy: 'fixed', unit: 'millionTokens' },+ ],},releasedAt: '2025-01-27',type: 'chat',@@ -998,8 +1097,10 @@ const qwenChatModels: AIChatModelCard[] = [organization: 'DeepSeek',pricing: {currency: 'CNY',- input: 4,- output: 16,+ units: [+ { name: 'textInput', rate: 4, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 16, strategy: 'fixed', unit: 'millionTokens' },+ ],},releasedAt: '2025-05-28',type: 'chat',@@ -1014,8 +1115,10 @@ const qwenChatModels: AIChatModelCard[] = [organization: 'DeepSeek',pricing: {currency: 'CNY',- input: 2,- output: 8,+ units: [+ { name: 'textInput', rate: 2, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 8, strategy: 'fixed', unit: 'millionTokens' },+ ],},releasedAt: '2025-01-27',type: 'chat',@@ -1033,8 +1136,10 @@ const qwenChatModels: AIChatModelCard[] = [organization: 'DeepSeek',pricing: {currency: 'CNY',- input: 0,- output: 0,+ units: [+ { name: 'textInput', rate: 0, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 0, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -1051,8 +1156,10 @@ const qwenChatModels: AIChatModelCard[] = [organization: 'DeepSeek',pricing: {currency: 'CNY',- input: 0.5,- output: 1,+ units: [+ { name: 'textInput', rate: 0.5, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 1, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -1069,8 +1176,10 @@ const qwenChatModels: AIChatModelCard[] = [organization: 'DeepSeek',pricing: {currency: 'CNY',- input: 1,- output: 3,+ units: [+ { name: 'textInput', rate: 1, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 3, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -1087,8 +1196,10 @@ const qwenChatModels: AIChatModelCard[] = [organization: 'DeepSeek',pricing: {currency: 'CNY',- input: 2,- output: 6,+ units: [+ { name: 'textInput', rate: 2, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 6, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -1105,8 +1216,10 @@ const qwenChatModels: AIChatModelCard[] = [organization: 'DeepSeek',pricing: {currency: 'CNY',- input: 0,- output: 0,+ units: [+ { name: 'textInput', rate: 0, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 0, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -1123,8 +1236,10 @@ const qwenChatModels: AIChatModelCard[] = [organization: 'DeepSeek',pricing: {currency: 'CNY',- input: 0,- output: 0,+ units: [+ { name: 'textInput', rate: 0, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 0, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -1132,7 +1247,8 @@ const qwenChatModels: AIChatModelCard[] = [const qwenImageModels: AIImageModelCard[] = [{- description: '万相2.2极速版,当前最新模型。在创意性、稳定性、写实质感上全面升级,生成速度快,性价比高。',+ description:+ '万相2.2极速版,当前最新模型。在创意性、稳定性、写实质感上全面升级,生成速度快,性价比高。',displayName: 'Wanxiang2.2 T2I Flash',enabled: true,id: 'wan2.2-t2i-flash',@@ -1149,7 +1265,8 @@ const qwenImageModels: AIImageModelCard[] = [type: 'image',},{- description: '万相2.2专业版,当前最新模型。在创意性、稳定性、写实质感上全面升级,生成细节丰富。',+ description:+ '万相2.2专业版,当前最新模型。在创意性、稳定性、写实质感上全面升级,生成细节丰富。',displayName: 'Wanxiang2.2 T2I Plus',enabled: true,id: 'wan2.2-t2i-plus',@@ -1230,7 +1347,8 @@ const qwenImageModels: AIImageModelCard[] = [type: 'image',},{- description: 'FLUX.1 [schnell] 作为目前开源最先进的少步模型,不仅超越了同类竞争者,甚至还优于诸如 Midjourney v6.0 和 DALL·E 3 (HD) 等强大的非精馏模型。该模型经过专门微调,以保留预训练阶段的全部输出多样性,相较于当前市场上的最先进模型,FLUX.1 [schnell] 显著提升了在视觉质量、指令遵从、尺寸/比例变化、字体处理及输出多样性等方面的可能,为用户带来更为丰富多样的创意图像生成体验。',+ description:+ 'FLUX.1 [schnell] 作为目前开源最先进的少步模型,不仅超越了同类竞争者,甚至还优于诸如 Midjourney v6.0 和 DALL·E 3 (HD) 等强大的非精馏模型。该模型经过专门微调,以保留预训练阶段的全部输出多样性,相较于当前市场上的最先进模型,FLUX.1 [schnell] 显著提升了在视觉质量、指令遵从、尺寸/比例变化、字体处理及输出多样性等方面的可能,为用户带来更为丰富多样的创意图像生成体验。',displayName: 'FLUX.1 [schnell]',enabled: true,id: 'flux-schnell',@@ -1250,7 +1368,8 @@ const qwenImageModels: AIImageModelCard[] = [type: 'image',},{- description: 'FLUX.1 [dev] 是一款面向非商业应用的开源权重、精炼模型。FLUX.1 [dev] 在保持了与FLUX专业版相近的图像质量和指令遵循能力的同时,具备更高的运行效率。相较于同尺寸的标准模型,它在资源利用上更为高效。',+ description:+ 'FLUX.1 [dev] 是一款面向非商业应用的开源权重、精炼模型。FLUX.1 [dev] 在保持了与FLUX专业版相近的图像质量和指令遵循能力的同时,具备更高的运行效率。相较于同尺寸的标准模型,它在资源利用上更为高效。',displayName: 'FLUX.1 [dev]',enabled: true,id: 'flux-dev',@@ -1270,7 +1389,8 @@ const qwenImageModels: AIImageModelCard[] = [type: 'image',},{- description: 'FLUX.1-merged 模型结合了 "DEV" 在开发阶段探索的深度特性和 "Schnell" 所代表的高速执行优势。通过这一举措,FLUX.1-merged 不仅提升了模型的性能界限,还拓宽了其应用范围。',+ description:+ 'FLUX.1-merged 模型结合了 "DEV" 在开发阶段探索的深度特性和 "Schnell" 所代表的高速执行优势。通过这一举措,FLUX.1-merged 不仅提升了模型的性能界限,还拓宽了其应用范围。',displayName: 'FLUX.1-merged',enabled: true,id: 'flux-merged',@@ -1290,7 +1410,8 @@ const qwenImageModels: AIImageModelCard[] = [type: 'image',},{- description: 'stable-diffusion-3.5-large 是一个具有8亿参数的多模态扩散变压器(MMDiT)文本到图像生成模型,具备卓越的图像质量和提示词匹配度,支持生成 100 万像素的高分辨率图像,且能够在普通消费级硬件上高效运行。',+ description:+ 'stable-diffusion-3.5-large 是一个具有8亿参数的多模态扩散变压器(MMDiT)文本到图像生成模型,具备卓越的图像质量和提示词匹配度,支持生成 100 万像素的高分辨率图像,且能够在普通消费级硬件上高效运行。',displayName: 'StableDiffusion 3.5 Large',id: 'stable-diffusion-3.5-large',organization: 'Qwen',@@ -1306,7 +1427,8 @@ const qwenImageModels: AIImageModelCard[] = [type: 'image',},{- description: 'stable-diffusion-3.5-large-turbo 是在 stable-diffusion-3.5-large 的基础上采用对抗性扩散蒸馏(ADD)技术的模型,具备更快的速度。',+ description:+ 'stable-diffusion-3.5-large-turbo 是在 stable-diffusion-3.5-large 的基础上采用对抗性扩散蒸馏(ADD)技术的模型,具备更快的速度。',displayName: 'StableDiffusion 3.5 Large Turbo',id: 'stable-diffusion-3.5-large-turbo',organization: 'Qwen',@@ -1322,7 +1444,8 @@ const qwenImageModels: AIImageModelCard[] = [type: 'image',},{- description: 'stable-diffusion-xl 相比于 v1.5 做了重大的改进,并且与当前开源的文生图 SOTA 模型 midjourney 效果相当。具体改进之处包括: 更大的 unet backbone,是之前的 3 倍; 增加了 refinement 模块用于改善生成图片的质量;更高效的训练技巧等。',+ description:+ 'stable-diffusion-xl 相比于 v1.5 做了重大的改进,并且与当前开源的文生图 SOTA 模型 midjourney 效果相当。具体改进之处包括: 更大的 unet backbone,是之前的 3 倍; 增加了 refinement 模块用于改善生成图片的质量;更高效的训练技巧等。',displayName: 'StableDiffusion xl',id: 'stable-diffusion-xl',organization: 'Qwen',@@ -1338,7 +1461,8 @@ const qwenImageModels: AIImageModelCard[] = [type: 'image',},{- description: 'stable-diffusion-v1.5 是以 stable-diffusion-v1.2 检查点的权重进行初始化,并在 "laion-aesthetics v2 5+" 上以 512x512 的分辨率进行了595k步的微调,减少了 10% 的文本条件化,以提高无分类器的引导采样。',+ description:+ 'stable-diffusion-v1.5 是以 stable-diffusion-v1.2 检查点的权重进行初始化,并在 "laion-aesthetics v2 5+" 上以 512x512 的分辨率进行了595k步的微调,减少了 10% 的文本条件化,以提高无分类器的引导采样。',displayName: 'StableDiffusion v1.5',id: 'stable-diffusion-v1.5',organization: 'Qwen',diff --git a/src/config/aiModels/sambanova.ts b/src/config/aiModels/sambanova.tsindex 2acf1042461..2bf29c5d5b6 100644--- a/src/config/aiModels/sambanova.ts+++ b/src/config/aiModels/sambanova.ts@@ -12,8 +12,10 @@ const sambanovaChatModels: AIChatModelCard[] = [enabled: true,id: 'Meta-Llama-3.3-70B-Instruct',pricing: {- input: 0.6,- output: 1.2,+ units: [+ { name: 'textInput', rate: 0.6, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 1.2, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -23,8 +25,10 @@ const sambanovaChatModels: AIChatModelCard[] = [displayName: 'Meta Llama 3.2 1B Instruct',id: 'Meta-Llama-3.2-1B-Instruct',pricing: {- input: 0.04,- output: 0.08,+ units: [+ { name: 'textInput', rate: 0.04, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 0.08, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -34,8 +38,10 @@ const sambanovaChatModels: AIChatModelCard[] = [displayName: 'Meta Llama 3.2 3B Instruct',id: 'Meta-Llama-3.2-3B-Instruct',pricing: {- input: 0.08,- output: 0.16,+ units: [+ { name: 'textInput', rate: 0.08, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 0.16, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -49,8 +55,10 @@ const sambanovaChatModels: AIChatModelCard[] = [enabled: true,id: 'Llama-3.2-11B-Vision-Instruct',pricing: {- input: 0.15,- output: 0.3,+ units: [+ { name: 'textInput', rate: 0.15, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 0.3, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -64,8 +72,10 @@ const sambanovaChatModels: AIChatModelCard[] = [enabled: true,id: 'Llama-3.2-90B-Vision-Instruct ',pricing: {- input: 0.8,- output: 1.6,+ units: [+ { name: 'textInput', rate: 0.8, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 1.6, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -79,8 +89,10 @@ const sambanovaChatModels: AIChatModelCard[] = [displayName: 'Meta Llama 3.1 8B Instruct',id: 'Meta-Llama-3.1-8B-Instruct',pricing: {- input: 0.1,- output: 0.2,+ units: [+ { name: 'textInput', rate: 0.1, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 0.2, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -94,8 +106,10 @@ const sambanovaChatModels: AIChatModelCard[] = [displayName: 'Meta Llama 3.1 70B Instruct',id: 'Meta-Llama-3.1-70B-Instruct',pricing: {- input: 0.6,- output: 1.2,+ units: [+ { name: 'textInput', rate: 0.6, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 1.2, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -109,8 +123,10 @@ const sambanovaChatModels: AIChatModelCard[] = [displayName: 'Meta Llama 3.1 405B Instruct',id: 'Meta-Llama-3.1-405B-Instruct',pricing: {- input: 5,- output: 10,+ units: [+ { name: 'textInput', rate: 5, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 10, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -119,8 +135,10 @@ const sambanovaChatModels: AIChatModelCard[] = [displayName: 'Llama 3.1 Tulu 3 405B',id: 'Llama-3.1-Tulu-3-405B',pricing: {- input: 0.7,- output: 1.4,+ units: [+ { name: 'textInput', rate: 0.7, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 1.4, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -133,8 +151,10 @@ const sambanovaChatModels: AIChatModelCard[] = [displayName: 'DeepSeek R1',id: 'DeepSeek-R1',pricing: {- input: 5,- output: 7,+ units: [+ { name: 'textInput', rate: 5, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 7, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -149,8 +169,10 @@ const sambanovaChatModels: AIChatModelCard[] = [enabled: true,id: 'DeepSeek-R1-Distill-Llama-70B',pricing: {- input: 0.7,- output: 1.4,+ units: [+ { name: 'textInput', rate: 0.7, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 1.4, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -164,8 +186,10 @@ const sambanovaChatModels: AIChatModelCard[] = [enabled: true,id: 'QwQ-32B-Preview',pricing: {- input: 1.5,- output: 3,+ units: [+ { name: 'textInput', rate: 1.5, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 3, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -176,8 +200,10 @@ const sambanovaChatModels: AIChatModelCard[] = [enabled: true,id: 'Qwen2.5-72B-Instruct',pricing: {- input: 2,- output: 4,+ units: [+ { name: 'textInput', rate: 2, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 4, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -188,8 +214,10 @@ const sambanovaChatModels: AIChatModelCard[] = [enabled: true,id: 'Qwen2.5-Coder-32B-Instruct',pricing: {- input: 1.5,- output: 3,+ units: [+ { name: 'textInput', rate: 1.5, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 3, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},diff --git a/src/config/aiModels/sensenova.ts b/src/config/aiModels/sensenova.tsindex ed70f5c883d..a830d41b579 100644--- a/src/config/aiModels/sensenova.ts+++ b/src/config/aiModels/sensenova.ts@@ -10,14 +10,17 @@ const sensenovaChatModels: AIChatModelCard[] = [vision: true,},contextWindowTokens: 131_072,- description: '通过对多模态、语言及推理数据的全面更新与训练策略的优化,新模型在多模态推理和泛化指令跟随能力上实现了显著提升,支持高达128k的上下文窗口,并在OCR与文旅IP识别等专项任务中表现卓越。',+ description:+ '通过对多模态、语言及推理数据的全面更新与训练策略的优化,新模型在多模态推理和泛化指令跟随能力上实现了显著提升,支持高达128k的上下文窗口,并在OCR与文旅IP识别等专项任务中表现卓越。',displayName: 'SenseNova V6.5 Pro',enabled: true,id: 'SenseNova-V6-5-Pro',pricing: {currency: 'CNY',- input: 3,- output: 9,+ units: [+ { name: 'textInput', rate: 3, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 9, strategy: 'fixed', unit: 'millionTokens' },+ ],},releasedAt: '2025-07-23',settings: {@@ -31,14 +34,17 @@ const sensenovaChatModels: AIChatModelCard[] = [vision: true,},contextWindowTokens: 131_072,- description: '通过对多模态、语言及推理数据的全面更新与训练策略的优化,新模型在多模态推理和泛化指令跟随能力上实现了显著提升,支持高达128k的上下文窗口,并在OCR与文旅IP识别等专项任务中表现卓越。',+ description:+ '通过对多模态、语言及推理数据的全面更新与训练策略的优化,新模型在多模态推理和泛化指令跟随能力上实现了显著提升,支持高达128k的上下文窗口,并在OCR与文旅IP识别等专项任务中表现卓越。',displayName: 'SenseNova V6.5 Turbo',enabled: true,id: 'SenseNova-V6-5-Turbo',pricing: {currency: 'CNY',- input: 1.5,- output: 4.5,+ units: [+ { name: 'textInput', rate: 1.5, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 4.5, strategy: 'fixed', unit: 'millionTokens' },+ ],},releasedAt: '2025-07-23',settings: {@@ -51,14 +57,17 @@ const sensenovaChatModels: AIChatModelCard[] = [reasoning: true,},contextWindowTokens: 32_768,- description: 'Qwen3-235B-A22B,MoE(混合专家模型)模型,引入了“混合推理模式”,支持用户在“思考模式”和“非思考模式”之间无缝切换,支持119种语言和方言理解与推理,并具备强大的工具调用能力,在综合能力、代码与数学、多语言能力、知识与推理等多项基准测试中,都能与DeepSeek R1、OpenAI o1、o3-mini、Grok 3和谷歌Gemini 2.5 Pro等目前市场上的主流大模型竞争。',+ description:+ 'Qwen3-235B-A22B,MoE(混合专家模型)模型,引入了“混合推理模式”,支持用户在“思考模式”和“非思考模式”之间无缝切换,支持119种语言和方言理解与推理,并具备强大的工具调用能力,在综合能力、代码与数学、多语言能力、知识与推理等多项基准测试中,都能与DeepSeek R1、OpenAI o1、o3-mini、Grok 3和谷歌Gemini 2.5 Pro等目前市场上的主流大模型竞争。',displayName: 'Qwen3 235B A22B',id: 'Qwen3-235B',organization: 'Qwen',pricing: {currency: 'CNY',- input: 0,- output: 0,+ units: [+ { name: 'textInput', rate: 0, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 0, strategy: 'fixed', unit: 'millionTokens' },+ ],},releasedAt: '2025-05-27',settings: {@@ -71,14 +80,17 @@ const sensenovaChatModels: AIChatModelCard[] = [reasoning: true,},contextWindowTokens: 32_768,- description: 'Qwen3-32B,稠密模型(Dense Model),引入了“混合推理模式”,支持用户在“思考模式”和“非思考模式”之间无缝切换,由于模型架构改进、训练数据增加以及更有效的训练方法,整体性能与Qwen2.5-72B表现相当。',+ description:+ 'Qwen3-32B,稠密模型(Dense Model),引入了“混合推理模式”,支持用户在“思考模式”和“非思考模式”之间无缝切换,由于模型架构改进、训练数据增加以及更有效的训练方法,整体性能与Qwen2.5-72B表现相当。',displayName: 'Qwen3 32B',id: 'Qwen3-32B',organization: 'Qwen',pricing: {currency: 'CNY',- input: 0,- output: 0,+ units: [+ { name: 'textInput', rate: 0, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 0, strategy: 'fixed', unit: 'millionTokens' },+ ],},releasedAt: '2025-05-27',settings: {@@ -97,8 +109,10 @@ const sensenovaChatModels: AIChatModelCard[] = [id: 'SenseNova-V6-Reasoner',pricing: {currency: 'CNY',- input: 4,- output: 16,+ units: [+ { name: 'textInput', rate: 4, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 16, strategy: 'fixed', unit: 'millionTokens' },+ ],},releasedAt: '2025-04-14',type: 'chat',@@ -114,8 +128,10 @@ const sensenovaChatModels: AIChatModelCard[] = [id: 'SenseNova-V6-Turbo',pricing: {currency: 'CNY',- input: 1.5,- output: 4.5,+ units: [+ { name: 'textInput', rate: 1.5, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 4.5, strategy: 'fixed', unit: 'millionTokens' },+ ],},releasedAt: '2025-04-14',type: 'chat',@@ -131,8 +147,10 @@ const sensenovaChatModels: AIChatModelCard[] = [id: 'SenseNova-V6-Pro',pricing: {currency: 'CNY',- input: 3,- output: 9,+ units: [+ { name: 'textInput', rate: 3, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 9, strategy: 'fixed', unit: 'millionTokens' },+ ],},releasedAt: '2025-04-14',type: 'chat',@@ -144,8 +162,10 @@ const sensenovaChatModels: AIChatModelCard[] = [id: 'SenseChat-5-beta',pricing: {currency: 'CNY',- input: 8,- output: 20,+ units: [+ { name: 'textInput', rate: 8, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 20, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -160,8 +180,10 @@ const sensenovaChatModels: AIChatModelCard[] = [id: 'SenseChat-5-1202',pricing: {currency: 'CNY',- input: 8,- output: 20,+ units: [+ { name: 'textInput', rate: 8, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 20, strategy: 'fixed', unit: 'millionTokens' },+ ],},releasedAt: '2024-12-30',type: 'chat',@@ -176,8 +198,10 @@ const sensenovaChatModels: AIChatModelCard[] = [id: 'SenseChat-Turbo-1202',pricing: {currency: 'CNY',- input: 0.3,- output: 0.6,+ units: [+ { name: 'textInput', rate: 0.3, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 0.6, strategy: 'fixed', unit: 'millionTokens' },+ ],},releasedAt: '2024-12-30',type: 'chat',@@ -194,8 +218,10 @@ const sensenovaChatModels: AIChatModelCard[] = [maxOutput: 131_072,pricing: {currency: 'CNY',- input: 8,- output: 20,+ units: [+ { name: 'textInput', rate: 8, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 20, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -211,8 +237,10 @@ const sensenovaChatModels: AIChatModelCard[] = [maxOutput: 16_384,pricing: {currency: 'CNY',- input: 10, // 限时优惠- output: 60,+ units: [+ { name: 'textInput', rate: 10, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 60, strategy: 'fixed', unit: 'millionTokens' },+ ],},releasedAt: '2024-09-12',type: 'chat',@@ -228,8 +256,10 @@ const sensenovaChatModels: AIChatModelCard[] = [maxOutput: 32_768,pricing: {currency: 'CNY',- input: 0.3,- output: 0.6,+ units: [+ { name: 'textInput', rate: 0.3, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 0.6, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -241,8 +271,10 @@ const sensenovaChatModels: AIChatModelCard[] = [maxOutput: 131_072,pricing: {currency: 'CNY',- input: 60,- output: 60,+ units: [+ { name: 'textInput', rate: 60, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 60, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -254,8 +286,10 @@ const sensenovaChatModels: AIChatModelCard[] = [maxOutput: 32_768,pricing: {currency: 'CNY',- input: 36,- output: 36,+ units: [+ { name: 'textInput', rate: 36, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 36, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -267,8 +301,10 @@ const sensenovaChatModels: AIChatModelCard[] = [maxOutput: 4096,pricing: {currency: 'CNY',- input: 12,- output: 12,+ units: [+ { name: 'textInput', rate: 12, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 12, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -281,8 +317,10 @@ const sensenovaChatModels: AIChatModelCard[] = [maxOutput: 32_768,pricing: {currency: 'CNY',- input: 27,- output: 27,+ units: [+ { name: 'textInput', rate: 27, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 27, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -294,8 +332,10 @@ const sensenovaChatModels: AIChatModelCard[] = [maxOutput: 1024,pricing: {currency: 'CNY',- input: 12,- output: 12,+ units: [+ { name: 'textInput', rate: 12, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 12, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -307,8 +347,10 @@ const sensenovaChatModels: AIChatModelCard[] = [maxOutput: 4096,pricing: {currency: 'CNY',- input: 15,- output: 15,+ units: [+ { name: 'textInput', rate: 15, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 15, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -320,8 +362,10 @@ const sensenovaChatModels: AIChatModelCard[] = [id: 'DeepSeek-V3',pricing: {currency: 'CNY',- input: 2,- output: 8,+ units: [+ { name: 'textInput', rate: 2, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 8, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -336,8 +380,10 @@ const sensenovaChatModels: AIChatModelCard[] = [id: 'DeepSeek-R1',pricing: {currency: 'CNY',- input: 4,- output: 16,+ units: [+ { name: 'textInput', rate: 4, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 16, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -352,8 +398,10 @@ const sensenovaChatModels: AIChatModelCard[] = [id: 'DeepSeek-R1-Distill-Qwen-14B',pricing: {currency: 'CNY',- input: 0,- output: 0,+ units: [+ { name: 'textInput', rate: 0, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 0, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -368,8 +416,10 @@ const sensenovaChatModels: AIChatModelCard[] = [id: 'DeepSeek-R1-Distill-Qwen-32B',pricing: {currency: 'CNY',- input: 0,- output: 0,+ units: [+ { name: 'textInput', rate: 0, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 0, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},diff --git a/src/config/aiModels/siliconcloud.ts b/src/config/aiModels/siliconcloud.tsindex a8de285ddbd..57d82fdec30 100644--- a/src/config/aiModels/siliconcloud.ts+++ b/src/config/aiModels/siliconcloud.ts@@ -14,8 +14,10 @@ const siliconcloudChatModels: AIChatModelCard[] = [id: 'zai-org/GLM-4.5',pricing: {currency: 'CNY',- input: 3.5,- output: 14,+ units: [+ { name: 'textInput', rate: 3.5, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 14, strategy: 'fixed', unit: 'millionTokens' },+ ],},releasedAt: '2025-07-28',type: 'chat',@@ -32,8 +34,10 @@ const siliconcloudChatModels: AIChatModelCard[] = [id: 'zai-org/GLM-4.5-Air',pricing: {currency: 'CNY',- input: 1,- output: 6,+ units: [+ { name: 'textInput', rate: 1, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 6, strategy: 'fixed', unit: 'millionTokens' },+ ],},releasedAt: '2025-07-28',type: 'chat',@@ -49,8 +53,10 @@ const siliconcloudChatModels: AIChatModelCard[] = [id: 'ascend-tribe/pangu-pro-moe',pricing: {currency: 'CNY',- input: 1,- output: 4,+ units: [+ { name: 'textInput', rate: 1, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 4, strategy: 'fixed', unit: 'millionTokens' },+ ],},releasedAt: '2025-06-17',type: 'chat',@@ -63,8 +69,10 @@ const siliconcloudChatModels: AIChatModelCard[] = [id: 'baidu/ERNIE-4.5-300B-A47B',pricing: {currency: 'CNY',- input: 2,- output: 8,+ units: [+ { name: 'textInput', rate: 2, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 8, strategy: 'fixed', unit: 'millionTokens' },+ ],},releasedAt: '2025-06-30',type: 'chat',@@ -77,8 +85,10 @@ const siliconcloudChatModels: AIChatModelCard[] = [id: 'moonshotai/Kimi-K2-Instruct',pricing: {currency: 'CNY',- input: 4,- output: 16,+ units: [+ { name: 'textInput', rate: 4, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 16, strategy: 'fixed', unit: 'millionTokens' },+ ],},releasedAt: '2025-07-11',type: 'chat',@@ -91,8 +101,10 @@ const siliconcloudChatModels: AIChatModelCard[] = [id: 'Pro/moonshotai/Kimi-K2-Instruct',pricing: {currency: 'CNY',- input: 4,- output: 16,+ units: [+ { name: 'textInput', rate: 4, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 16, strategy: 'fixed', unit: 'millionTokens' },+ ],},releasedAt: '2025-07-11',type: 'chat',@@ -108,8 +120,10 @@ const siliconcloudChatModels: AIChatModelCard[] = [id: 'moonshotai/Kimi-Dev-72B',pricing: {currency: 'CNY',- input: 2,- output: 8,+ units: [+ { name: 'textInput', rate: 2, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 8, strategy: 'fixed', unit: 'millionTokens' },+ ],},releasedAt: '2025-06-17',type: 'chat',@@ -125,8 +139,10 @@ const siliconcloudChatModels: AIChatModelCard[] = [id: 'tencent/Hunyuan-A13B-Instruct',pricing: {currency: 'CNY',- input: 1,- output: 4,+ units: [+ { name: 'textInput', rate: 1, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 4, strategy: 'fixed', unit: 'millionTokens' },+ ],},releasedAt: '2025-06-27',type: 'chat',@@ -142,8 +158,10 @@ const siliconcloudChatModels: AIChatModelCard[] = [id: 'MiniMaxAI/MiniMax-M1-80k',pricing: {currency: 'CNY',- input: 4,- output: 16,+ units: [+ { name: 'textInput', rate: 4, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 16, strategy: 'fixed', unit: 'millionTokens' },+ ],},releasedAt: '2025-06-16',type: 'chat',@@ -159,8 +177,10 @@ const siliconcloudChatModels: AIChatModelCard[] = [id: 'Tongyi-Zhiwen/QwenLong-L1-32B',pricing: {currency: 'CNY',- input: 1,- output: 4,+ units: [+ { name: 'textInput', rate: 1, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 4, strategy: 'fixed', unit: 'millionTokens' },+ ],},releasedAt: '2025-05-26',type: 'chat',@@ -178,8 +198,10 @@ const siliconcloudChatModels: AIChatModelCard[] = [organization: 'Qwen',pricing: {currency: 'CNY',- input: 2.5,- output: 10,+ units: [+ { name: 'textInput', rate: 2.5, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 10, strategy: 'fixed', unit: 'millionTokens' },+ ],},releasedAt: '2025-07-25',type: 'chat',@@ -196,8 +218,10 @@ const siliconcloudChatModels: AIChatModelCard[] = [organization: 'Qwen',pricing: {currency: 'CNY',- input: 2.5,- output: 10,+ units: [+ { name: 'textInput', rate: 2.5, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 10, strategy: 'fixed', unit: 'millionTokens' },+ ],},releasedAt: '2025-07-21',type: 'chat',@@ -214,8 +238,10 @@ const siliconcloudChatModels: AIChatModelCard[] = [organization: 'Qwen',pricing: {currency: 'CNY',- input: 0.7,- output: 2.8,+ units: [+ { name: 'textInput', rate: 0.7, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 2.8, strategy: 'fixed', unit: 'millionTokens' },+ ],},releasedAt: '2025-07-29',type: 'chat',@@ -233,8 +259,10 @@ const siliconcloudChatModels: AIChatModelCard[] = [organization: 'Qwen',pricing: {currency: 'CNY',- input: 2.5,- output: 10,+ units: [+ { name: 'textInput', rate: 2.5, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 10, strategy: 'fixed', unit: 'millionTokens' },+ ],},releasedAt: '2025-04-28',settings: {@@ -255,8 +283,10 @@ const siliconcloudChatModels: AIChatModelCard[] = [organization: 'Qwen',pricing: {currency: 'CNY',- input: 1,- output: 4,+ units: [+ { name: 'textInput', rate: 1, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 4, strategy: 'fixed', unit: 'millionTokens' },+ ],},releasedAt: '2025-04-28',settings: {@@ -277,8 +307,10 @@ const siliconcloudChatModels: AIChatModelCard[] = [organization: 'Qwen',pricing: {currency: 'CNY',- input: 0.7,- output: 2.8,+ units: [+ { name: 'textInput', rate: 0.7, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 2.8, strategy: 'fixed', unit: 'millionTokens' },+ ],},releasedAt: '2025-04-28',settings: {@@ -299,8 +331,10 @@ const siliconcloudChatModels: AIChatModelCard[] = [organization: 'Qwen',pricing: {currency: 'CNY',- input: 0.5,- output: 2,+ units: [+ { name: 'textInput', rate: 0.5, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 2, strategy: 'fixed', unit: 'millionTokens' },+ ],},releasedAt: '2025-04-28',settings: {@@ -322,8 +356,10 @@ const siliconcloudChatModels: AIChatModelCard[] = [organization: 'Qwen',pricing: {currency: 'CNY',- input: 0,- output: 0,+ units: [+ { name: 'textInput', rate: 0, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 0, strategy: 'fixed', unit: 'millionTokens' },+ ],},releasedAt: '2025-04-28',settings: {@@ -344,8 +380,10 @@ const siliconcloudChatModels: AIChatModelCard[] = [id: 'THUDM/GLM-4.1V-9B-Thinking',pricing: {currency: 'CNY',- input: 0,- output: 0,+ units: [+ { name: 'textInput', rate: 0, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 0, strategy: 'fixed', unit: 'millionTokens' },+ ],},releasedAt: '2025-07-02',type: 'chat',@@ -362,8 +400,10 @@ const siliconcloudChatModels: AIChatModelCard[] = [id: 'Pro/THUDM/GLM-4.1V-9B-Thinking',pricing: {currency: 'CNY',- input: 0.25,- output: 1,+ units: [+ { name: 'textInput', rate: 0.25, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 1, strategy: 'fixed', unit: 'millionTokens' },+ ],},releasedAt: '2025-07-02',type: 'chat',@@ -379,8 +419,10 @@ const siliconcloudChatModels: AIChatModelCard[] = [id: 'THUDM/GLM-Z1-Rumination-32B-0414',pricing: {currency: 'CNY',- input: 1,- output: 4,+ units: [+ { name: 'textInput', rate: 1, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 4, strategy: 'fixed', unit: 'millionTokens' },+ ],},releasedAt: '2025-04-14',type: 'chat',@@ -397,8 +439,10 @@ const siliconcloudChatModels: AIChatModelCard[] = [id: 'THUDM/GLM-Z1-32B-0414',pricing: {currency: 'CNY',- input: 1,- output: 4,+ units: [+ { name: 'textInput', rate: 1, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 4, strategy: 'fixed', unit: 'millionTokens' },+ ],},releasedAt: '2025-04-14',type: 'chat',@@ -415,8 +459,10 @@ const siliconcloudChatModels: AIChatModelCard[] = [id: 'THUDM/GLM-Z1-9B-0414',pricing: {currency: 'CNY',- input: 0,- output: 0,+ units: [+ { name: 'textInput', rate: 0, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 0, strategy: 'fixed', unit: 'millionTokens' },+ ],},releasedAt: '2025-04-14',type: 'chat',@@ -432,8 +478,10 @@ const siliconcloudChatModels: AIChatModelCard[] = [id: 'THUDM/GLM-4-32B-0414',pricing: {currency: 'CNY',- input: 1.89,- output: 1.89,+ units: [+ { name: 'textInput', rate: 1.89, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 1.89, strategy: 'fixed', unit: 'millionTokens' },+ ],},releasedAt: '2025-04-14',type: 'chat',@@ -449,8 +497,10 @@ const siliconcloudChatModels: AIChatModelCard[] = [id: 'THUDM/GLM-4-9B-0414',pricing: {currency: 'CNY',- input: 0,- output: 0,+ units: [+ { name: 'textInput', rate: 0, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 0, strategy: 'fixed', unit: 'millionTokens' },+ ],},releasedAt: '2025-04-14',type: 'chat',@@ -466,8 +516,10 @@ const siliconcloudChatModels: AIChatModelCard[] = [id: 'THUDM/glm-4-9b-chat',pricing: {currency: 'CNY',- input: 0,- output: 0,+ units: [+ { name: 'textInput', rate: 0, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 0, strategy: 'fixed', unit: 'millionTokens' },+ ],},releasedAt: '2024-06-04',type: 'chat',@@ -483,8 +535,10 @@ const siliconcloudChatModels: AIChatModelCard[] = [id: 'Pro/THUDM/glm-4-9b-chat',pricing: {currency: 'CNY',- input: 0.6,- output: 0.6,+ units: [+ { name: 'textInput', rate: 0.6, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 0.6, strategy: 'fixed', unit: 'millionTokens' },+ ],},releasedAt: '2024-06-04',type: 'chat',@@ -501,8 +555,10 @@ const siliconcloudChatModels: AIChatModelCard[] = [id: 'deepseek-ai/DeepSeek-R1-0528-Qwen3-8B',pricing: {currency: 'CNY',- input: 0,- output: 0,+ units: [+ { name: 'textInput', rate: 0, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 0, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -518,8 +574,10 @@ const siliconcloudChatModels: AIChatModelCard[] = [id: 'deepseek-ai/DeepSeek-R1',pricing: {currency: 'CNY',- input: 4,- output: 16,+ units: [+ { name: 'textInput', rate: 4, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 16, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -534,8 +592,10 @@ const siliconcloudChatModels: AIChatModelCard[] = [id: 'deepseek-ai/DeepSeek-V3',pricing: {currency: 'CNY',- input: 2,- output: 8,+ units: [+ { name: 'textInput', rate: 2, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 8, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -551,8 +611,10 @@ const siliconcloudChatModels: AIChatModelCard[] = [id: 'Pro/deepseek-ai/DeepSeek-R1',pricing: {currency: 'CNY',- input: 4,- output: 16,+ units: [+ { name: 'textInput', rate: 4, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 16, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -567,8 +629,10 @@ const siliconcloudChatModels: AIChatModelCard[] = [id: 'Pro/deepseek-ai/DeepSeek-V3',pricing: {currency: 'CNY',- input: 2,- output: 8,+ units: [+ { name: 'textInput', rate: 2, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 8, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -584,8 +648,10 @@ const siliconcloudChatModels: AIChatModelCard[] = [id: 'deepseek-ai/DeepSeek-R1-Distill-Qwen-32B',pricing: {currency: 'CNY',- input: 1.26,- output: 1.26,+ units: [+ { name: 'textInput', rate: 1.26, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 1.26, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -601,8 +667,10 @@ const siliconcloudChatModels: AIChatModelCard[] = [id: 'deepseek-ai/DeepSeek-R1-Distill-Qwen-14B',pricing: {currency: 'CNY',- input: 0.7,- output: 0.7,+ units: [+ { name: 'textInput', rate: 0.7, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 0.7, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -618,8 +686,10 @@ const siliconcloudChatModels: AIChatModelCard[] = [id: 'deepseek-ai/DeepSeek-R1-Distill-Qwen-7B',pricing: {currency: 'CNY',- input: 0,- output: 0,+ units: [+ { name: 'textInput', rate: 0, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 0, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -635,8 +705,10 @@ const siliconcloudChatModels: AIChatModelCard[] = [id: 'Pro/deepseek-ai/DeepSeek-R1-Distill-Qwen-7B',pricing: {currency: 'CNY',- input: 0.35,- output: 0.35,+ units: [+ { name: 'textInput', rate: 0.35, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 0.35, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -651,8 +723,10 @@ const siliconcloudChatModels: AIChatModelCard[] = [id: 'deepseek-ai/DeepSeek-V2.5',pricing: {currency: 'CNY',- input: 1.33,- output: 1.33,+ units: [+ { name: 'textInput', rate: 1.33, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 1.33, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -667,8 +741,10 @@ const siliconcloudChatModels: AIChatModelCard[] = [id: 'deepseek-ai/deepseek-vl2',pricing: {currency: 'CNY',- input: 0.99,- output: 0.99,+ units: [+ { name: 'textInput', rate: 0.99, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 0.99, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -684,8 +760,10 @@ const siliconcloudChatModels: AIChatModelCard[] = [id: 'Qwen/QVQ-72B-Preview',pricing: {currency: 'CNY',- input: 9.9,- output: 9.9,+ units: [+ { name: 'textInput', rate: 9.9, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 9.9, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -701,8 +779,10 @@ const siliconcloudChatModels: AIChatModelCard[] = [id: 'Qwen/QwQ-32B',pricing: {currency: 'CNY',- input: 1,- output: 4,+ units: [+ { name: 'textInput', rate: 1, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 4, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -717,8 +797,10 @@ const siliconcloudChatModels: AIChatModelCard[] = [id: 'Qwen/Qwen2.5-7B-Instruct',pricing: {currency: 'CNY',- input: 0,- output: 0,+ units: [+ { name: 'textInput', rate: 0, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 0, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -733,8 +815,10 @@ const siliconcloudChatModels: AIChatModelCard[] = [id: 'Pro/Qwen/Qwen2.5-7B-Instruct',pricing: {currency: 'CNY',- input: 0.35,- output: 0.35,+ units: [+ { name: 'textInput', rate: 0.35, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 0.35, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -749,8 +833,10 @@ const siliconcloudChatModels: AIChatModelCard[] = [id: 'Qwen/Qwen2.5-14B-Instruct',pricing: {currency: 'CNY',- input: 0.7,- output: 0.7,+ units: [+ { name: 'textInput', rate: 0.7, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 0.7, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -765,8 +851,10 @@ const siliconcloudChatModels: AIChatModelCard[] = [id: 'Qwen/Qwen2.5-32B-Instruct',pricing: {currency: 'CNY',- input: 1.26,- output: 1.26,+ units: [+ { name: 'textInput', rate: 1.26, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 1.26, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -781,8 +869,10 @@ const siliconcloudChatModels: AIChatModelCard[] = [id: 'Qwen/Qwen2.5-72B-Instruct',pricing: {currency: 'CNY',- input: 4.13,- output: 4.13,+ units: [+ { name: 'textInput', rate: 4.13, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 4.13, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -797,8 +887,10 @@ const siliconcloudChatModels: AIChatModelCard[] = [id: 'Qwen/Qwen2.5-72B-Instruct-128K',pricing: {currency: 'CNY',- input: 4.13,- output: 4.13,+ units: [+ { name: 'textInput', rate: 4.13, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 4.13, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -810,8 +902,10 @@ const siliconcloudChatModels: AIChatModelCard[] = [id: 'Qwen/Qwen2.5-Coder-7B-Instruct',pricing: {currency: 'CNY',- input: 0,- output: 0,+ units: [+ { name: 'textInput', rate: 0, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 0, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -823,8 +917,10 @@ const siliconcloudChatModels: AIChatModelCard[] = [id: 'Pro/Qwen/Qwen2.5-Coder-7B-Instruct',pricing: {currency: 'CNY',- input: 0.35,- output: 0.35,+ units: [+ { name: 'textInput', rate: 0.35, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 0.35, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -836,8 +932,10 @@ const siliconcloudChatModels: AIChatModelCard[] = [id: 'Qwen/Qwen2.5-Coder-32B-Instruct',pricing: {currency: 'CNY',- input: 1.26,- output: 1.26,+ units: [+ { name: 'textInput', rate: 1.26, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 1.26, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -849,8 +947,10 @@ const siliconcloudChatModels: AIChatModelCard[] = [id: 'Qwen/Qwen2-7B-Instruct',pricing: {currency: 'CNY',- input: 0,- output: 0,+ units: [+ { name: 'textInput', rate: 0, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 0, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -862,8 +962,10 @@ const siliconcloudChatModels: AIChatModelCard[] = [id: 'Pro/Qwen/Qwen2-7B-Instruct',pricing: {currency: 'CNY',- input: 0.35,- output: 0.35,+ units: [+ { name: 'textInput', rate: 0.35, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 0.35, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -878,8 +980,10 @@ const siliconcloudChatModels: AIChatModelCard[] = [id: 'Qwen/Qwen2-VL-72B-Instruct',pricing: {currency: 'CNY',- input: 4.13,- output: 4.13,+ units: [+ { name: 'textInput', rate: 4.13, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 4.13, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -894,8 +998,10 @@ const siliconcloudChatModels: AIChatModelCard[] = [id: 'Pro/Qwen/Qwen2.5-VL-7B-Instruct',pricing: {currency: 'CNY',- input: 0.35,- output: 0.35,+ units: [+ { name: 'textInput', rate: 0.35, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 0.35, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -910,8 +1016,10 @@ const siliconcloudChatModels: AIChatModelCard[] = [id: 'Qwen/Qwen2.5-VL-32B-Instruct',pricing: {currency: 'CNY',- input: 1.89,- output: 1.89,+ units: [+ { name: 'textInput', rate: 1.89, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 1.89, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -926,8 +1034,10 @@ const siliconcloudChatModels: AIChatModelCard[] = [id: 'Qwen/Qwen2.5-VL-72B-Instruct',pricing: {currency: 'CNY',- input: 4.13,- output: 4.13,+ units: [+ { name: 'textInput', rate: 4.13, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 4.13, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -942,8 +1052,10 @@ const siliconcloudChatModels: AIChatModelCard[] = [id: 'internlm/internlm2_5-7b-chat',pricing: {currency: 'CNY',- input: 0,- output: 0,+ units: [+ { name: 'textInput', rate: 0, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 0, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},diff --git a/src/config/aiModels/stepfun.ts b/src/config/aiModels/stepfun.tsindex 76419e53c58..26a6676619c 100644--- a/src/config/aiModels/stepfun.ts+++ b/src/config/aiModels/stepfun.ts@@ -18,8 +18,10 @@ const stepfunChatModels: AIChatModelCard[] = [id: 'step-r1-v-mini',pricing: {currency: 'CNY',- input: 2.5,- output: 8,+ units: [+ { name: 'textInput', rate: 2.5, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 8, strategy: 'fixed', unit: 'millionTokens' },+ ],},// settings: {// searchImpl: 'params',@@ -37,8 +39,10 @@ const stepfunChatModels: AIChatModelCard[] = [id: 'step-1-8k',pricing: {currency: 'CNY',- input: 5,- output: 20,+ units: [+ { name: 'textInput', rate: 5, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 20, strategy: 'fixed', unit: 'millionTokens' },+ ],},settings: {searchImpl: 'params',@@ -56,8 +60,10 @@ const stepfunChatModels: AIChatModelCard[] = [id: 'step-1-32k',pricing: {currency: 'CNY',- input: 15,- output: 70,+ units: [+ { name: 'textInput', rate: 15, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 70, strategy: 'fixed', unit: 'millionTokens' },+ ],},settings: {searchImpl: 'params',@@ -75,8 +81,10 @@ const stepfunChatModels: AIChatModelCard[] = [id: 'step-1-256k',pricing: {currency: 'CNY',- input: 95,- output: 300,+ units: [+ { name: 'textInput', rate: 95, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 300, strategy: 'fixed', unit: 'millionTokens' },+ ],},settings: {searchImpl: 'params',@@ -96,8 +104,10 @@ const stepfunChatModels: AIChatModelCard[] = [id: 'step-2-mini',pricing: {currency: 'CNY',- input: 1,- output: 2,+ units: [+ { name: 'textInput', rate: 1, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 2, strategy: 'fixed', unit: 'millionTokens' },+ ],},releasedAt: '2025-01-14',settings: {@@ -116,8 +126,10 @@ const stepfunChatModels: AIChatModelCard[] = [id: 'step-2-16k',pricing: {currency: 'CNY',- input: 38,- output: 120,+ units: [+ { name: 'textInput', rate: 38, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 120, strategy: 'fixed', unit: 'millionTokens' },+ ],},settings: {searchImpl: 'params',@@ -136,8 +148,10 @@ const stepfunChatModels: AIChatModelCard[] = [id: 'step-2-16k-exp',pricing: {currency: 'CNY',- input: 38,- output: 120,+ units: [+ { name: 'textInput', rate: 38, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 120, strategy: 'fixed', unit: 'millionTokens' },+ ],},releasedAt: '2025-01-15',settings: {@@ -157,8 +171,10 @@ const stepfunChatModels: AIChatModelCard[] = [id: 'step-1v-8k',pricing: {currency: 'CNY',- input: 5,- output: 20,+ units: [+ { name: 'textInput', rate: 5, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 20, strategy: 'fixed', unit: 'millionTokens' },+ ],},settings: {searchImpl: 'params',@@ -177,8 +193,10 @@ const stepfunChatModels: AIChatModelCard[] = [id: 'step-1v-32k',pricing: {currency: 'CNY',- input: 15,- output: 70,+ units: [+ { name: 'textInput', rate: 15, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 70, strategy: 'fixed', unit: 'millionTokens' },+ ],},settings: {searchImpl: 'params',@@ -196,8 +214,10 @@ const stepfunChatModels: AIChatModelCard[] = [id: 'step-1o-vision-32k',pricing: {currency: 'CNY',- input: 15,- output: 70,+ units: [+ { name: 'textInput', rate: 15, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 70, strategy: 'fixed', unit: 'millionTokens' },+ ],},releasedAt: '2025-01-22',type: 'chat',@@ -214,8 +234,10 @@ const stepfunChatModels: AIChatModelCard[] = [id: 'step-1o-turbo-vision',pricing: {currency: 'CNY',- input: 8,- output: 35,+ units: [+ { name: 'textInput', rate: 8, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 35, strategy: 'fixed', unit: 'millionTokens' },+ ],},releasedAt: '2025-02-14',type: 'chat',diff --git a/src/config/aiModels/taichu.ts b/src/config/aiModels/taichu.tsindex d999f2e186f..e3740dc6ddd 100644--- a/src/config/aiModels/taichu.ts+++ b/src/config/aiModels/taichu.ts@@ -26,8 +26,10 @@ const taichuChatModels: AIChatModelCard[] = [id: 'taichu_llm',pricing: {currency: 'CNY',- input: 2,- output: 2,+ units: [+ { name: 'textInput', rate: 2, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 2, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -42,8 +44,10 @@ const taichuChatModels: AIChatModelCard[] = [id: 'taichu_vl',pricing: {currency: 'CNY',- input: 5,- output: 5,+ units: [+ { name: 'textInput', rate: 5, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 5, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},diff --git a/src/config/aiModels/tencentcloud.ts b/src/config/aiModels/tencentcloud.tsindex 0542d777902..4dd28019fc8 100644--- a/src/config/aiModels/tencentcloud.ts+++ b/src/config/aiModels/tencentcloud.ts@@ -15,8 +15,10 @@ const tencentCloudChatModels: AIChatModelCard[] = [maxOutput: 16_000,pricing: {currency: 'CNY',- input: 4,- output: 16,+ units: [+ { name: 'textInput', rate: 4, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 16, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -30,8 +32,10 @@ const tencentCloudChatModels: AIChatModelCard[] = [maxOutput: 16_000,pricing: {currency: 'CNY',- input: 2,- output: 8,+ units: [+ { name: 'textInput', rate: 2, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 8, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -43,8 +47,10 @@ const tencentCloudChatModels: AIChatModelCard[] = [maxOutput: 16_000,pricing: {currency: 'CNY',- input: 2,- output: 8,+ units: [+ { name: 'textInput', rate: 2, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 8, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},diff --git a/src/config/aiModels/upstage.ts b/src/config/aiModels/upstage.tsindex 37fc7d94b27..64baec2ee75 100644--- a/src/config/aiModels/upstage.ts+++ b/src/config/aiModels/upstage.ts@@ -11,8 +11,10 @@ const upstageChatModels: AIChatModelCard[] = [enabled: true,id: 'solar-pro',pricing: {- input: 0.25,- output: 0.25,+ units: [+ { name: 'textInput', rate: 0.25, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 0.25, strategy: 'fixed', unit: 'millionTokens' },+ ],},releasedAt: '2024-11-26',type: 'chat',@@ -28,8 +30,10 @@ const upstageChatModels: AIChatModelCard[] = [enabled: true,id: 'solar-mini',pricing: {- input: 0.15,- output: 0.15,+ units: [+ { name: 'textInput', rate: 0.15, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 0.15, strategy: 'fixed', unit: 'millionTokens' },+ ],},releasedAt: '2025-01-23',type: 'chat',diff --git a/src/config/aiModels/v0.ts b/src/config/aiModels/v0.tsindex 4684f0d5f9d..5a28566c669 100644--- a/src/config/aiModels/v0.ts+++ b/src/config/aiModels/v0.ts@@ -8,15 +8,16 @@ const v0ChatModels: AIChatModelCard[] = [vision: true,},contextWindowTokens: 512_000,- description:- 'v0-1.5-lg 模型适用于高级思考或推理任务',+ description: 'v0-1.5-lg 模型适用于高级思考或推理任务',displayName: 'v0-1.5-lg',enabled: true,id: 'v0-1.5-lg',maxOutput: 32_000,pricing: {- input: 15,- output: 75,+ units: [+ { name: 'textInput', rate: 15, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 75, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -27,15 +28,16 @@ const v0ChatModels: AIChatModelCard[] = [vision: true,},contextWindowTokens: 128_000,- description:- 'v0-1.5-md 模型适用于日常任务和用户界面(UI)生成',+ description: 'v0-1.5-md 模型适用于日常任务和用户界面(UI)生成',displayName: 'v0-1.5-md',enabled: true,id: 'v0-1.5-md',maxOutput: 32_000,pricing: {- input: 3,- output: 15,+ units: [+ { name: 'textInput', rate: 3, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 15, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -45,14 +47,15 @@ const v0ChatModels: AIChatModelCard[] = [vision: true,},contextWindowTokens: 128_000,- description:- 'v0-1.0-md 模型是通过 v0 API 提供服务的旧版模型',+ description: 'v0-1.0-md 模型是通过 v0 API 提供服务的旧版模型',displayName: 'v0-1.0-md',id: 'v0-1.0-md',maxOutput: 32_000,pricing: {- input: 3,- output: 15,+ units: [+ { name: 'textInput', rate: 3, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 15, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},diff --git a/src/config/aiModels/vertexai.ts b/src/config/aiModels/vertexai.tsindex 609ccab70cd..1f1db54fd4b 100644--- a/src/config/aiModels/vertexai.ts+++ b/src/config/aiModels/vertexai.ts@@ -17,9 +17,11 @@ const vertexaiChatModels: AIChatModelCard[] = [id: 'gemini-2.5-pro',maxOutput: 65_536,pricing: {- cachedInput: 0.31, // prompts <= 200k tokens- input: 1.25, // prompts <= 200k tokens- output: 10, // prompts <= 200k tokens+ units: [+ { name: 'textInput_cacheRead', rate: 0.31, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textInput', rate: 1.25, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 10, strategy: 'fixed', unit: 'millionTokens' },+ ],},releasedAt: '2025-06-17',settings: {@@ -42,8 +44,10 @@ const vertexaiChatModels: AIChatModelCard[] = [id: 'gemini-2.5-pro-preview-05-06',maxOutput: 65_536,pricing: {- input: 1.25, // prompts <= 200k tokens- output: 10, // prompts <= 200k tokens+ units: [+ { name: 'textInput', rate: 1.25, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 10, strategy: 'fixed', unit: 'millionTokens' },+ ],},releasedAt: '2025-05-06',type: 'chat',@@ -61,8 +65,10 @@ const vertexaiChatModels: AIChatModelCard[] = [id: 'gemini-2.5-pro-preview-03-25',maxOutput: 65_536,pricing: {- input: 1.25, // prompts <= 200k tokens- output: 10, // prompts <= 200k tokens+ units: [+ { name: 'textInput', rate: 1.25, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 10, strategy: 'fixed', unit: 'millionTokens' },+ ],},releasedAt: '2025-04-09',type: 'chat',@@ -81,9 +87,11 @@ const vertexaiChatModels: AIChatModelCard[] = [id: 'gemini-2.5-flash',maxOutput: 65_536,pricing: {- cachedInput: 0.075,- input: 0.3,- output: 2.5,+ units: [+ { name: 'textInput_cacheRead', rate: 0.075, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textInput', rate: 0.3, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 2.5, strategy: 'fixed', unit: 'millionTokens' },+ ],},releasedAt: '2025-06-17',settings: {@@ -105,8 +113,10 @@ const vertexaiChatModels: AIChatModelCard[] = [id: 'gemini-2.5-flash-preview-04-17',maxOutput: 65_536,pricing: {- input: 0.15,- output: 3.5, // Thinking+ units: [+ { name: 'textInput', rate: 0.15, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 3.5, strategy: 'fixed', unit: 'millionTokens' },+ ],},releasedAt: '2025-04-17',type: 'chat',@@ -125,9 +135,11 @@ const vertexaiChatModels: AIChatModelCard[] = [id: 'gemini-2.5-flash-lite',maxOutput: 64_000,pricing: {- cachedInput: 0.025,- input: 0.1,- output: 0.4,+ units: [+ { name: 'textInput_cacheRead', rate: 0.025, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textInput', rate: 0.1, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 0.4, strategy: 'fixed', unit: 'millionTokens' },+ ],},releasedAt: '2025-07-22',settings: {@@ -150,8 +162,10 @@ const vertexaiChatModels: AIChatModelCard[] = [id: 'gemini-2.5-flash-lite-preview-06-17',maxOutput: 64_000,pricing: {- input: 0.1,- output: 0.4,+ units: [+ { name: 'textInput', rate: 0.1, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 0.4, strategy: 'fixed', unit: 'millionTokens' },+ ],},releasedAt: '2025-06-17',settings: {@@ -172,9 +186,11 @@ const vertexaiChatModels: AIChatModelCard[] = [id: 'gemini-2.0-flash',maxOutput: 8192,pricing: {- cachedInput: 0.0375,- input: 0.15,- output: 0.6,+ units: [+ { name: 'textInput_cacheRead', rate: 0.0375, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textInput', rate: 0.15, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 0.6, strategy: 'fixed', unit: 'millionTokens' },+ ],},releasedAt: '2025-02-05',type: 'chat',@@ -190,9 +206,11 @@ const vertexaiChatModels: AIChatModelCard[] = [id: 'gemini-2.0-flash-lite',maxOutput: 8192,pricing: {- cachedInput: 0.018_75,- input: 0.075,- output: 0.3,+ units: [+ { name: 'textInput_cacheRead', rate: 0.018, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textInput', rate: 0.075, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 0.3, strategy: 'fixed', unit: 'millionTokens' },+ ],},releasedAt: '2025-02-05',type: 'chat',@@ -208,8 +226,10 @@ const vertexaiChatModels: AIChatModelCard[] = [id: 'gemini-1.5-flash-002',maxOutput: 8192,pricing: {- input: 0.075,- output: 0.3,+ units: [+ { name: 'textInput', rate: 0.075, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 0.3, strategy: 'fixed', unit: 'millionTokens' },+ ],},releasedAt: '2024-09-25',type: 'chat',@@ -226,8 +246,10 @@ const vertexaiChatModels: AIChatModelCard[] = [id: 'gemini-1.5-pro-002',maxOutput: 8192,pricing: {- input: 1.25,- output: 2.5,+ units: [+ { name: 'textInput', rate: 1.25, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 2.5, strategy: 'fixed', unit: 'millionTokens' },+ ],},releasedAt: '2024-09-24',type: 'chat',diff --git a/src/config/aiModels/volcengine.ts b/src/config/aiModels/volcengine.tsindex 53560e07a68..9a5aac4ef8c 100644--- a/src/config/aiModels/volcengine.ts+++ b/src/config/aiModels/volcengine.ts@@ -20,8 +20,10 @@ const doubaoChatModels: AIChatModelCard[] = [maxOutput: 16_384,pricing: {currency: 'CNY',- input: 4,- output: 16,+ units: [+ { name: 'textInput', rate: 4, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 16, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -43,8 +45,10 @@ const doubaoChatModels: AIChatModelCard[] = [maxOutput: 16_000,pricing: {currency: 'CNY',- input: 1.2, // 输入长度 (32, 128] 千 token- output: 16,+ units: [+ { name: 'textInput', rate: 1.2, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 16, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -66,8 +70,10 @@ const doubaoChatModels: AIChatModelCard[] = [maxOutput: 16_000,pricing: {currency: 'CNY',- input: 1.2, // 输入长度 (32, 128] 千 token- output: 16,+ units: [+ { name: 'textInput', rate: 1.2, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 16, strategy: 'fixed', unit: 'millionTokens' },+ ],},settings: {extendParams: ['thinking'],@@ -92,8 +98,10 @@ const doubaoChatModels: AIChatModelCard[] = [maxOutput: 16_000,pricing: {currency: 'CNY',- input: 0.3, // 输入长度 (32, 128] 千 token- output: 3,+ units: [+ { name: 'textInput', rate: 0.3, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 3, strategy: 'fixed', unit: 'millionTokens' },+ ],},settings: {extendParams: ['enableReasoning'],@@ -117,8 +125,10 @@ const doubaoChatModels: AIChatModelCard[] = [maxOutput: 16_000,pricing: {currency: 'CNY',- input: 3.5,- output: 12,+ units: [+ { name: 'textInput', rate: 3.5, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 12, strategy: 'fixed', unit: 'millionTokens' },+ ],},settings: {extendParams: ['thinking'],@@ -142,8 +152,10 @@ const doubaoChatModels: AIChatModelCard[] = [maxOutput: 16_000,pricing: {currency: 'CNY',- input: 3,- output: 9,+ units: [+ { name: 'textInput', rate: 3, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 9, strategy: 'fixed', unit: 'millionTokens' },+ ],},settings: {extendParams: ['thinking'],@@ -166,8 +178,10 @@ const doubaoChatModels: AIChatModelCard[] = [maxOutput: 16_000,pricing: {currency: 'CNY',- input: 4,- output: 16,+ units: [+ { name: 'textInput', rate: 4, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 16, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -188,8 +202,10 @@ const doubaoChatModels: AIChatModelCard[] = [maxOutput: 16_000,pricing: {currency: 'CNY',- input: 4,- output: 16,+ units: [+ { name: 'textInput', rate: 4, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 16, strategy: 'fixed', unit: 'millionTokens' },+ ],},settings: {extendParams: ['enableReasoning'],@@ -212,8 +228,10 @@ const doubaoChatModels: AIChatModelCard[] = [maxOutput: 16_384,pricing: {currency: 'CNY',- input: 4,- output: 16,+ units: [+ { name: 'textInput', rate: 4, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 16, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -233,8 +251,10 @@ const doubaoChatModels: AIChatModelCard[] = [maxOutput: 8192,pricing: {currency: 'CNY',- input: 1.5,- output: 6,+ units: [+ { name: 'textInput', rate: 1.5, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 6, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -254,8 +274,10 @@ const doubaoChatModels: AIChatModelCard[] = [maxOutput: 8192,pricing: {currency: 'CNY',- input: 0.6,- output: 2.4,+ units: [+ { name: 'textInput', rate: 0.6, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 2.4, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -274,8 +296,10 @@ const doubaoChatModels: AIChatModelCard[] = [maxOutput: 16_384,pricing: {currency: 'CNY',- input: 2,- output: 8,+ units: [+ { name: 'textInput', rate: 2, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 8, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -294,8 +318,10 @@ const doubaoChatModels: AIChatModelCard[] = [maxOutput: 16_384,pricing: {currency: 'CNY',- input: 0.8,- output: 2,+ units: [+ { name: 'textInput', rate: 0.8, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 2, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -311,8 +337,10 @@ const doubaoChatModels: AIChatModelCard[] = [maxOutput: 12_288,pricing: {currency: 'CNY',- input: 5,- output: 9,+ units: [+ { name: 'textInput', rate: 5, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 9, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -330,8 +358,10 @@ const doubaoChatModels: AIChatModelCard[] = [maxOutput: 12_288,pricing: {currency: 'CNY',- input: 0.3,- output: 0.6,+ units: [+ { name: 'textInput', rate: 0.3, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 0.6, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -351,8 +381,10 @@ const doubaoChatModels: AIChatModelCard[] = [maxOutput: 12_288,pricing: {currency: 'CNY',- input: 3,- output: 9,+ units: [+ { name: 'textInput', rate: 3, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 9, strategy: 'fixed', unit: 'millionTokens' },+ ],},releasedAt: '2025-01-15',type: 'chat',@@ -373,8 +405,10 @@ const doubaoChatModels: AIChatModelCard[] = [maxOutput: 16_384,pricing: {currency: 'CNY',- input: 3,- output: 9,+ units: [+ { name: 'textInput', rate: 3, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 9, strategy: 'fixed', unit: 'millionTokens' },+ ],},releasedAt: '2025-03-28',type: 'chat',@@ -395,8 +429,10 @@ const doubaoChatModels: AIChatModelCard[] = [maxOutput: 16_384,pricing: {currency: 'CNY',- input: 1.5,- output: 4.5,+ units: [+ { name: 'textInput', rate: 1.5, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 4.5, strategy: 'fixed', unit: 'millionTokens' },+ ],},releasedAt: '2025-03-15',type: 'chat',@@ -416,8 +452,10 @@ const doubaoChatModels: AIChatModelCard[] = [maxOutput: 4096,pricing: {currency: 'CNY',- input: 3,- output: 9,+ units: [+ { name: 'textInput', rate: 3, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 9, strategy: 'fixed', unit: 'millionTokens' },+ ],},releasedAt: '2024-10-28',type: 'chat',@@ -437,8 +475,10 @@ const doubaoChatModels: AIChatModelCard[] = [maxOutput: 4096,pricing: {currency: 'CNY',- input: 1.5,- output: 4.5,+ units: [+ { name: 'textInput', rate: 1.5, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 4.5, strategy: 'fixed', unit: 'millionTokens' },+ ],},releasedAt: '2024-10-15',type: 'chat',@@ -455,8 +495,10 @@ const doubaoChatModels: AIChatModelCard[] = [maxOutput: 4096,pricing: {currency: 'CNY',- input: 0.3,- output: 0.6,+ units: [+ { name: 'textInput', rate: 0.3, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 0.6, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -472,8 +514,10 @@ const doubaoChatModels: AIChatModelCard[] = [maxOutput: 4096,pricing: {currency: 'CNY',- input: 0.3,- output: 0.6,+ units: [+ { name: 'textInput', rate: 0.3, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 0.6, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -489,8 +533,10 @@ const doubaoChatModels: AIChatModelCard[] = [maxOutput: 4096,pricing: {currency: 'CNY',- input: 0.8,- output: 1,+ units: [+ { name: 'textInput', rate: 0.8, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 1, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -506,8 +552,10 @@ const doubaoChatModels: AIChatModelCard[] = [maxOutput: 4096,pricing: {currency: 'CNY',- input: 0.8,- output: 2,+ units: [+ { name: 'textInput', rate: 0.8, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 2, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -523,8 +571,10 @@ const doubaoChatModels: AIChatModelCard[] = [maxOutput: 4096,pricing: {currency: 'CNY',- input: 5,- output: 9,+ units: [+ { name: 'textInput', rate: 5, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 9, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -550,7 +600,16 @@ const volcengineImageModels: AIImageModelCard[] = [seed: { default: null },size: {default: '1024x1024',- enum: ['1024x1024', '864x1152', '1152x864', '1280x720', '720x1280', '832x1248', '1248x832', '1512x648'],+ enum: [+ '1024x1024',+ '864x1152',+ '1152x864',+ '1280x720',+ '720x1280',+ '832x1248',+ '1248x832',+ '1512x648',+ ],},},releasedAt: '2025-04-15',diff --git a/src/config/aiModels/wenxin.ts b/src/config/aiModels/wenxin.tsindex 3cf6656107d..ee20d47c7aa 100644--- a/src/config/aiModels/wenxin.ts+++ b/src/config/aiModels/wenxin.ts@@ -12,8 +12,10 @@ const wenxinChatModels: AIChatModelCard[] = [id: 'ernie-x1-turbo-32k',pricing: {currency: 'CNY',- input: 1,- output: 4,+ units: [+ { name: 'textInput', rate: 1, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 4, strategy: 'fixed', unit: 'millionTokens' },+ ],},releasedAt: '2025-04-24',type: 'chat',@@ -29,8 +31,10 @@ const wenxinChatModels: AIChatModelCard[] = [id: 'ernie-x1-32k',pricing: {currency: 'CNY',- input: 2,- output: 8,+ units: [+ { name: 'textInput', rate: 2, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 8, strategy: 'fixed', unit: 'millionTokens' },+ ],},releasedAt: '2025-04-15',type: 'chat',@@ -46,8 +50,10 @@ const wenxinChatModels: AIChatModelCard[] = [id: 'ernie-x1-32k-preview',pricing: {currency: 'CNY',- input: 2,- output: 8,+ units: [+ { name: 'textInput', rate: 2, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 8, strategy: 'fixed', unit: 'millionTokens' },+ ],},releasedAt: '2025-03-16',type: 'chat',@@ -65,8 +71,10 @@ const wenxinChatModels: AIChatModelCard[] = [id: 'ernie-4.5-turbo-128k',pricing: {currency: 'CNY',- input: 0.8,- output: 3.2,+ units: [+ { name: 'textInput', rate: 0.8, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 3.2, strategy: 'fixed', unit: 'millionTokens' },+ ],},releasedAt: '2025-04-24',settings: {@@ -86,8 +94,10 @@ const wenxinChatModels: AIChatModelCard[] = [id: 'ernie-4.5-turbo-32k',pricing: {currency: 'CNY',- input: 0.8,- output: 3.2,+ units: [+ { name: 'textInput', rate: 0.8, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 3.2, strategy: 'fixed', unit: 'millionTokens' },+ ],},releasedAt: '2025-04-24',settings: {@@ -107,8 +117,10 @@ const wenxinChatModels: AIChatModelCard[] = [id: 'ernie-4.5-turbo-vl-32k',pricing: {currency: 'CNY',- input: 3,- output: 9,+ units: [+ { name: 'textInput', rate: 3, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 9, strategy: 'fixed', unit: 'millionTokens' },+ ],},releasedAt: '2025-04-24',type: 'chat',@@ -124,8 +136,10 @@ const wenxinChatModels: AIChatModelCard[] = [id: 'ernie-4.5-8k-preview',pricing: {currency: 'CNY',- input: 4,- output: 16,+ units: [+ { name: 'textInput', rate: 4, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 16, strategy: 'fixed', unit: 'millionTokens' },+ ],},releasedAt: '2025-03-16',type: 'chat',@@ -142,8 +156,10 @@ const wenxinChatModels: AIChatModelCard[] = [id: 'ernie-4.0-8k-latest',pricing: {currency: 'CNY',- input: 30,- output: 90,+ units: [+ { name: 'textInput', rate: 30, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 90, strategy: 'fixed', unit: 'millionTokens' },+ ],},settings: {searchImpl: 'params',@@ -162,8 +178,10 @@ const wenxinChatModels: AIChatModelCard[] = [id: 'ernie-4.0-8k-preview',pricing: {currency: 'CNY',- input: 30,- output: 90,+ units: [+ { name: 'textInput', rate: 30, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 90, strategy: 'fixed', unit: 'millionTokens' },+ ],},settings: {searchImpl: 'params',@@ -182,8 +200,10 @@ const wenxinChatModels: AIChatModelCard[] = [id: 'ernie-4.0-turbo-8k-latest',pricing: {currency: 'CNY',- input: 20,- output: 60,+ units: [+ { name: 'textInput', rate: 20, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 60, strategy: 'fixed', unit: 'millionTokens' },+ ],},settings: {searchImpl: 'params',@@ -202,8 +222,10 @@ const wenxinChatModels: AIChatModelCard[] = [id: 'ernie-4.0-turbo-128k',pricing: {currency: 'CNY',- input: 20,- output: 60,+ units: [+ { name: 'textInput', rate: 20, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 60, strategy: 'fixed', unit: 'millionTokens' },+ ],},settings: {searchImpl: 'params',@@ -222,8 +244,10 @@ const wenxinChatModels: AIChatModelCard[] = [id: 'ernie-4.0-turbo-8k-preview',pricing: {currency: 'CNY',- input: 20,- output: 60,+ units: [+ { name: 'textInput', rate: 20, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 60, strategy: 'fixed', unit: 'millionTokens' },+ ],},settings: {searchImpl: 'params',@@ -242,8 +266,10 @@ const wenxinChatModels: AIChatModelCard[] = [id: 'ernie-3.5-8k',pricing: {currency: 'CNY',- input: 0.8,- output: 2,+ units: [+ { name: 'textInput', rate: 0.8, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 2, strategy: 'fixed', unit: 'millionTokens' },+ ],},settings: {searchImpl: 'params',@@ -262,8 +288,10 @@ const wenxinChatModels: AIChatModelCard[] = [id: 'ernie-3.5-8k-preview',pricing: {currency: 'CNY',- input: 0.8,- output: 2,+ units: [+ { name: 'textInput', rate: 0.8, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 2, strategy: 'fixed', unit: 'millionTokens' },+ ],},settings: {searchImpl: 'params',@@ -282,8 +310,10 @@ const wenxinChatModels: AIChatModelCard[] = [id: 'ernie-3.5-128k',pricing: {currency: 'CNY',- input: 0.8,- output: 2,+ units: [+ { name: 'textInput', rate: 0.8, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 2, strategy: 'fixed', unit: 'millionTokens' },+ ],},settings: {searchImpl: 'params',@@ -298,8 +328,10 @@ const wenxinChatModels: AIChatModelCard[] = [id: 'ernie-lite-8k',pricing: {currency: 'CNY',- input: 0,- output: 0,+ units: [+ { name: 'textInput', rate: 0, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 0, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -314,8 +346,10 @@ const wenxinChatModels: AIChatModelCard[] = [id: 'ernie-lite-pro-128k',pricing: {currency: 'CNY',- input: 0.2,- output: 0.4,+ units: [+ { name: 'textInput', rate: 0.2, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 0.4, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -326,8 +360,10 @@ const wenxinChatModels: AIChatModelCard[] = [id: 'ernie-tiny-8k',pricing: {currency: 'CNY',- input: 0,- output: 0,+ units: [+ { name: 'textInput', rate: 0, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 0, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -339,8 +375,10 @@ const wenxinChatModels: AIChatModelCard[] = [id: 'ernie-speed-128k',pricing: {currency: 'CNY',- input: 0,- output: 0,+ units: [+ { name: 'textInput', rate: 0, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 0, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -352,8 +390,10 @@ const wenxinChatModels: AIChatModelCard[] = [id: 'ernie-speed-pro-128k',pricing: {currency: 'CNY',- input: 0.3,- output: 0.6,+ units: [+ { name: 'textInput', rate: 0.3, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 0.6, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -365,8 +405,10 @@ const wenxinChatModels: AIChatModelCard[] = [id: 'ernie-char-8k',pricing: {currency: 'CNY',- input: 4,- output: 8,+ units: [+ { name: 'textInput', rate: 4, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 8, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -378,8 +420,10 @@ const wenxinChatModels: AIChatModelCard[] = [id: 'ernie-char-fiction-8k',pricing: {currency: 'CNY',- input: 4,- output: 8,+ units: [+ { name: 'textInput', rate: 4, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 8, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -390,8 +434,10 @@ const wenxinChatModels: AIChatModelCard[] = [id: 'ernie-novel-8k',pricing: {currency: 'CNY',- input: 40,- output: 120,+ units: [+ { name: 'textInput', rate: 40, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 120, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -403,8 +449,10 @@ const wenxinChatModels: AIChatModelCard[] = [id: 'deepseek-v3',pricing: {currency: 'CNY',- input: 0.8,- output: 1.6,+ units: [+ { name: 'textInput', rate: 0.8, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 1.6, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -419,8 +467,10 @@ const wenxinChatModels: AIChatModelCard[] = [id: 'deepseek-r1',pricing: {currency: 'CNY',- input: 2,- output: 8,+ units: [+ { name: 'textInput', rate: 2, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 8, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -434,8 +484,10 @@ const wenxinChatModels: AIChatModelCard[] = [id: 'deepseek-r1-distill-qwen-1.5b',pricing: {currency: 'CNY',- input: 2,- output: 8,+ units: [+ { name: 'textInput', rate: 2, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 8, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -449,8 +501,10 @@ const wenxinChatModels: AIChatModelCard[] = [id: 'deepseek-r1-distill-qwen-7b',pricing: {currency: 'CNY',- input: 0.6,- output: 2.4,+ units: [+ { name: 'textInput', rate: 0.6, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 2.4, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -464,8 +518,10 @@ const wenxinChatModels: AIChatModelCard[] = [id: 'deepseek-r1-distill-qwen-14b',pricing: {currency: 'CNY',- input: 0.6,- output: 2.4,+ units: [+ { name: 'textInput', rate: 0.6, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 2.4, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -479,8 +535,10 @@ const wenxinChatModels: AIChatModelCard[] = [id: 'deepseek-r1-distill-qwen-32b',pricing: {currency: 'CNY',- input: 1.5,- output: 6,+ units: [+ { name: 'textInput', rate: 1.5, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 6, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -494,8 +552,10 @@ const wenxinChatModels: AIChatModelCard[] = [id: 'deepseek-r1-distill-llama-8b',pricing: {currency: 'CNY',- input: 1.5,- output: 6,+ units: [+ { name: 'textInput', rate: 1.5, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 6, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -509,8 +569,10 @@ const wenxinChatModels: AIChatModelCard[] = [id: 'deepseek-r1-distill-llama-70b',pricing: {currency: 'CNY',- input: 2,- output: 8,+ units: [+ { name: 'textInput', rate: 2, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 8, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -525,8 +587,10 @@ const wenxinChatModels: AIChatModelCard[] = [id: 'deepseek-r1-distill-qianfan-llama-8b',pricing: {currency: 'CNY',- input: 1,- output: 4,+ units: [+ { name: 'textInput', rate: 1, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 4, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -541,8 +605,10 @@ const wenxinChatModels: AIChatModelCard[] = [id: 'deepseek-r1-distill-qianfan-llama-70b',pricing: {currency: 'CNY',- input: 2,- output: 8,+ units: [+ { name: 'textInput', rate: 2, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 8, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -557,8 +623,10 @@ const wenxinChatModels: AIChatModelCard[] = [id: 'qwq-32b',pricing: {currency: 'CNY',- input: 2,- output: 8,+ units: [+ { name: 'textInput', rate: 2, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 8, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -577,7 +645,20 @@ const wenxinImageModels: AIImageModelCard[] = [},size: {default: '1024x1024',- enum: ['768x768', '1024x1024', '1536x1536', '2048x2048', '1024x768', '2048x1536', '768x1024', '1536x2048', '1024x576', '2048x1152', '576x1024', '1152x2048'],+ enum: [+ '768x768',+ '1024x1024',+ '1536x1536',+ '2048x2048',+ '1024x768',+ '2048x1536',+ '768x1024',+ '1536x2048',+ '1024x576',+ '2048x1152',+ '576x1024',+ '1152x2048',+ ],},},releasedAt: '2025-02-05',@@ -596,15 +677,27 @@ const wenxinImageModels: AIImageModelCard[] = [},size: {default: '1024x1024',- enum: ['768x768', '1024x1024', '1536x1536', '2048x2048', '1024x768', '2048x1536', '768x1024', '1536x2048', '1024x576', '2048x1152', '576x1024', '1152x2048'],+ enum: [+ '768x768',+ '1024x1024',+ '1536x1536',+ '2048x2048',+ '1024x768',+ '2048x1536',+ '768x1024',+ '1536x2048',+ '1024x576',+ '2048x1152',+ '576x1024',+ '1152x2048',+ ],},},releasedAt: '2025-04-17',type: 'image',},{- description:- '具有120亿参数的修正流变换器,能够根据文本描述生成图像。',+ description: '具有120亿参数的修正流变换器,能够根据文本描述生成图像。',displayName: 'FLUX.1-schnell',enabled: true,id: 'flux.1-schnell',@@ -615,7 +708,20 @@ const wenxinImageModels: AIImageModelCard[] = [seed: { default: null },size: {default: '1024x1024',- enum: ['768x768', '1024x1024', '1536x1536', '2048x2048', '1024x768', '2048x1536', '768x1024', '1536x2048', '1024x576', '2048x1152', '576x1024', '1152x2048'],+ enum: [+ '768x768',+ '1024x1024',+ '1536x1536',+ '2048x2048',+ '1024x768',+ '2048x1536',+ '768x1024',+ '1536x2048',+ '1024x576',+ '2048x1152',+ '576x1024',+ '1152x2048',+ ],},steps: { default: 25, max: 50, min: 1 },},diff --git a/src/config/aiModels/xai.ts b/src/config/aiModels/xai.tsindex 53169629abd..498ba391ca2 100644--- a/src/config/aiModels/xai.ts+++ b/src/config/aiModels/xai.ts@@ -16,9 +16,11 @@ const xaiChatModels: AIChatModelCard[] = [enabled: true,id: 'grok-4',pricing: {- cachedInput: 0.75,- input: 3,- output: 15,+ units: [+ { name: 'textInput_cacheRead', rate: 0.75, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textInput', rate: 3, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 15, strategy: 'fixed', unit: 'millionTokens' },+ ],},releasedAt: '2025-07-09',settings: {@@ -39,9 +41,11 @@ const xaiChatModels: AIChatModelCard[] = [displayName: 'Grok 3',id: 'grok-3',pricing: {- cachedInput: 0.75,- input: 3,- output: 15,+ units: [+ { name: 'textInput_cacheRead', rate: 0.75, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textInput', rate: 3, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 15, strategy: 'fixed', unit: 'millionTokens' },+ ],},releasedAt: '2025-04-03',settings: {@@ -60,9 +64,11 @@ const xaiChatModels: AIChatModelCard[] = [displayName: 'Grok 3 (Fast mode)',id: 'grok-3-fast',pricing: {- cachedInput: 1.25,- input: 5,- output: 25,+ units: [+ { name: 'textInput_cacheRead', rate: 1.25, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textInput', rate: 5, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 25, strategy: 'fixed', unit: 'millionTokens' },+ ],},releasedAt: '2025-04-03',settings: {@@ -83,9 +89,11 @@ const xaiChatModels: AIChatModelCard[] = [enabled: true,id: 'grok-3-mini',pricing: {- cachedInput: 0.075,- input: 0.3,- output: 0.5,+ units: [+ { name: 'textInput_cacheRead', rate: 0.075, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textInput', rate: 0.3, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 0.5, strategy: 'fixed', unit: 'millionTokens' },+ ],},releasedAt: '2025-04-03',settings: {@@ -106,9 +114,11 @@ const xaiChatModels: AIChatModelCard[] = [displayName: 'Grok 3 Mini (Fast mode)',id: 'grok-3-mini-fast',pricing: {- cachedInput: 0.15,- input: 0.6,- output: 4,+ units: [+ { name: 'textInput_cacheRead', rate: 0.15, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textInput', rate: 0.6, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 4, strategy: 'fixed', unit: 'millionTokens' },+ ],},releasedAt: '2025-04-03',settings: {@@ -127,8 +137,10 @@ const xaiChatModels: AIChatModelCard[] = [displayName: 'Grok 2 1212',id: 'grok-2-1212', // legacypricing: {- input: 2,- output: 10,+ units: [+ { name: 'textInput', rate: 2, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 10, strategy: 'fixed', unit: 'millionTokens' },+ ],},releasedAt: '2024-12-12',settings: {@@ -147,8 +159,10 @@ const xaiChatModels: AIChatModelCard[] = [displayName: 'Grok 2 Vision 1212',id: 'grok-2-vision-1212',pricing: {- input: 2,- output: 10,+ units: [+ { name: 'textInput', rate: 2, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 10, strategy: 'fixed', unit: 'millionTokens' },+ ],},releasedAt: '2024-12-12',settings: {diff --git a/src/config/aiModels/zeroone.ts b/src/config/aiModels/zeroone.tsindex e9842d33dfa..694084653b2 100644--- a/src/config/aiModels/zeroone.ts+++ b/src/config/aiModels/zeroone.ts@@ -9,8 +9,10 @@ const zerooneChatModels: AIChatModelCard[] = [id: 'yi-lightning',pricing: {currency: 'CNY',- input: 0.99,- output: 0.99,+ units: [+ { name: 'textInput', rate: 0.99, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 0.99, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -25,8 +27,10 @@ const zerooneChatModels: AIChatModelCard[] = [id: 'yi-vision-v2',pricing: {currency: 'CNY',- input: 6,- output: 6,+ units: [+ { name: 'textInput', rate: 6, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 6, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -37,8 +41,10 @@ const zerooneChatModels: AIChatModelCard[] = [id: 'yi-spark',pricing: {currency: 'CNY',- input: 1,- output: 1,+ units: [+ { name: 'textInput', rate: 1, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 1, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -49,8 +55,10 @@ const zerooneChatModels: AIChatModelCard[] = [id: 'yi-medium',pricing: {currency: 'CNY',- input: 2.5,- output: 2.5,+ units: [+ { name: 'textInput', rate: 2.5, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 2.5, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -61,8 +69,10 @@ const zerooneChatModels: AIChatModelCard[] = [id: 'yi-medium-200k',pricing: {currency: 'CNY',- input: 12,- output: 12,+ units: [+ { name: 'textInput', rate: 12, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 12, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -73,8 +83,10 @@ const zerooneChatModels: AIChatModelCard[] = [id: 'yi-large-turbo',pricing: {currency: 'CNY',- input: 12,- output: 12,+ units: [+ { name: 'textInput', rate: 12, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 12, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -86,8 +98,10 @@ const zerooneChatModels: AIChatModelCard[] = [id: 'yi-large-rag',pricing: {currency: 'CNY',- input: 25,- output: 25,+ units: [+ { name: 'textInput', rate: 25, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 25, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -102,8 +116,10 @@ const zerooneChatModels: AIChatModelCard[] = [id: 'yi-large-fc',pricing: {currency: 'CNY',- input: 20,- output: 20,+ units: [+ { name: 'textInput', rate: 20, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 20, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -114,8 +130,10 @@ const zerooneChatModels: AIChatModelCard[] = [id: 'yi-large',pricing: {currency: 'CNY',- input: 20,- output: 20,+ units: [+ { name: 'textInput', rate: 20, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 20, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -129,8 +147,10 @@ const zerooneChatModels: AIChatModelCard[] = [id: 'yi-vision',pricing: {currency: 'CNY',- input: 6,- output: 6,+ units: [+ { name: 'textInput', rate: 6, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 6, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -141,8 +161,10 @@ const zerooneChatModels: AIChatModelCard[] = [id: 'yi-large-preview',pricing: {currency: 'CNY',- input: 20,- output: 20,+ units: [+ { name: 'textInput', rate: 20, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 20, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -153,8 +175,10 @@ const zerooneChatModels: AIChatModelCard[] = [id: 'yi-lightning-lite',pricing: {currency: 'CNY',- input: 0.99,- output: 0.99,+ units: [+ { name: 'textInput', rate: 0.99, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 0.99, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},diff --git a/src/config/aiModels/zhipu.ts b/src/config/aiModels/zhipu.tsindex ef8eb9f6e6b..6b83e79ca2a 100644--- a/src/config/aiModels/zhipu.ts+++ b/src/config/aiModels/zhipu.ts@@ -15,10 +15,12 @@ const zhipuChatModels: AIChatModelCard[] = [id: 'glm-4.5',maxOutput: 32_768,pricing: {- cachedInput: 0.8,currency: 'CNY',- input: 4, // 输入长度 [32k, 128k]- output: 16,+ units: [+ { name: 'textInput_cacheRead', rate: 0.8, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textInput', rate: 4, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 16, strategy: 'fixed', unit: 'millionTokens' },+ ],},settings: {extendParams: ['enableReasoning'],@@ -33,16 +35,17 @@ const zhipuChatModels: AIChatModelCard[] = [search: true,},contextWindowTokens: 128_000,- description:- 'GLM-4.5 的极速版,在性能强劲的同时,生成速度可达 100 tokens/秒。',+ description: 'GLM-4.5 的极速版,在性能强劲的同时,生成速度可达 100 tokens/秒。',displayName: 'GLM-4.5-X',id: 'glm-4.5-x',maxOutput: 32_768,pricing: {- cachedInput: 3.2,currency: 'CNY',- input: 16, // 输入长度 [32k, 128k]- output: 64,+ units: [+ { name: 'textInput_cacheRead', rate: 3.2, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textInput', rate: 16, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 64, strategy: 'fixed', unit: 'millionTokens' },+ ],},settings: {extendParams: ['enableReasoning'],@@ -57,16 +60,17 @@ const zhipuChatModels: AIChatModelCard[] = [search: true,},contextWindowTokens: 128_000,- description:- 'GLM-4.5 的轻量版,兼顾性能与性价比,可灵活切换混合思考模型。',+ description: 'GLM-4.5 的轻量版,兼顾性能与性价比,可灵活切换混合思考模型。',displayName: 'GLM-4.5-Air',id: 'glm-4.5-air',maxOutput: 32_768,pricing: {- cachedInput: 0.24,currency: 'CNY',- input: 1.2, // 输入长度 [32k, 128k]- output: 8,+ units: [+ { name: 'textInput_cacheRead', rate: 0.24, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textInput', rate: 1.2, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 8, strategy: 'fixed', unit: 'millionTokens' },+ ],},settings: {extendParams: ['enableReasoning'],@@ -81,16 +85,17 @@ const zhipuChatModels: AIChatModelCard[] = [search: true,},contextWindowTokens: 128_000,- description:- 'GLM-4.5-Air 的极速版,响应速度更快,专为大规模高速度需求打造。',+ description: 'GLM-4.5-Air 的极速版,响应速度更快,专为大规模高速度需求打造。',displayName: 'GLM-4.5-AirX',id: 'glm-4.5-airx',maxOutput: 32_768,pricing: {- cachedInput: 1.6,currency: 'CNY',- input: 8, // 输入长度 [32k, 128k]- output: 32,+ units: [+ { name: 'textInput_cacheRead', rate: 1.6, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textInput', rate: 8, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 32, strategy: 'fixed', unit: 'millionTokens' },+ ],},settings: {extendParams: ['enableReasoning'],@@ -105,17 +110,18 @@ const zhipuChatModels: AIChatModelCard[] = [search: true,},contextWindowTokens: 128_000,- description:- 'GLM-4.5 的免费版,推理、代码、智能体等任务表现出色。',+ description: 'GLM-4.5 的免费版,推理、代码、智能体等任务表现出色。',displayName: 'GLM-4.5-Flash',enabled: true,id: 'glm-4.5-flash',maxOutput: 32_768,pricing: {- cachedInput: 0,currency: 'CNY',- input: 0,- output: 0,+ units: [+ { name: 'textInput_cacheRead', rate: 0, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textInput', rate: 0, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 0, strategy: 'fixed', unit: 'millionTokens' },+ ],},settings: {extendParams: ['enableReasoning'],@@ -137,8 +143,10 @@ const zhipuChatModels: AIChatModelCard[] = [maxOutput: 16_384,pricing: {currency: 'CNY',- input: 2,- output: 2,+ units: [+ { name: 'textInput', rate: 2, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 2, strategy: 'fixed', unit: 'millionTokens' },+ ],},settings: {searchImpl: 'params',@@ -160,8 +168,10 @@ const zhipuChatModels: AIChatModelCard[] = [maxOutput: 16_384,pricing: {currency: 'CNY',- input: 0,- output: 0,+ units: [+ { name: 'textInput', rate: 0, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 0, strategy: 'fixed', unit: 'millionTokens' },+ ],},settings: {searchImpl: 'params',@@ -178,8 +188,10 @@ const zhipuChatModels: AIChatModelCard[] = [id: 'glm-zero-preview',pricing: {currency: 'CNY',- input: 10,- output: 10,+ units: [+ { name: 'textInput', rate: 10, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 10, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -195,8 +207,10 @@ const zhipuChatModels: AIChatModelCard[] = [maxOutput: 32_768,pricing: {currency: 'CNY',- input: 0.5,- output: 0.5,+ units: [+ { name: 'textInput', rate: 0.5, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 0.5, strategy: 'fixed', unit: 'millionTokens' },+ ],},settings: {searchImpl: 'params',@@ -215,8 +229,10 @@ const zhipuChatModels: AIChatModelCard[] = [maxOutput: 30_000,pricing: {currency: 'CNY',- input: 5,- output: 5,+ units: [+ { name: 'textInput', rate: 5, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 5, strategy: 'fixed', unit: 'millionTokens' },+ ],},settings: {searchImpl: 'params',@@ -235,8 +251,10 @@ const zhipuChatModels: AIChatModelCard[] = [maxOutput: 32_768,pricing: {currency: 'CNY',- input: 0.1,- output: 0.1,+ units: [+ { name: 'textInput', rate: 0.1, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 0.1, strategy: 'fixed', unit: 'millionTokens' },+ ],},settings: {searchImpl: 'params',@@ -249,15 +267,16 @@ const zhipuChatModels: AIChatModelCard[] = [search: true,},contextWindowTokens: 128_000,- description:- 'GLM-Z1 系列具备强大的复杂推理能力,在逻辑推理、数学、编程等领域表现优异。',+ description: 'GLM-Z1 系列具备强大的复杂推理能力,在逻辑推理、数学、编程等领域表现优异。',displayName: 'GLM-Z1-Flash',id: 'glm-z1-flash',maxOutput: 32_768,pricing: {currency: 'CNY',- input: 0,- output: 0,+ units: [+ { name: 'textInput', rate: 0, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 0, strategy: 'fixed', unit: 'millionTokens' },+ ],},settings: {searchImpl: 'params',@@ -276,8 +295,10 @@ const zhipuChatModels: AIChatModelCard[] = [maxOutput: 16_000,pricing: {currency: 'CNY',- input: 0,- output: 0,+ units: [+ { name: 'textInput', rate: 0, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 0, strategy: 'fixed', unit: 'millionTokens' },+ ],},settings: {searchImpl: 'params',@@ -296,8 +317,10 @@ const zhipuChatModels: AIChatModelCard[] = [maxOutput: 16_000,pricing: {currency: 'CNY',- input: 0.1,- output: 0.1,+ units: [+ { name: 'textInput', rate: 0.1, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 0.1, strategy: 'fixed', unit: 'millionTokens' },+ ],},settings: {searchImpl: 'params',@@ -316,8 +339,10 @@ const zhipuChatModels: AIChatModelCard[] = [maxOutput: 4000,pricing: {currency: 'CNY',- input: 1,- output: 1,+ units: [+ { name: 'textInput', rate: 1, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 1, strategy: 'fixed', unit: 'millionTokens' },+ ],},settings: {searchImpl: 'params',@@ -336,8 +361,10 @@ const zhipuChatModels: AIChatModelCard[] = [maxOutput: 16_000,pricing: {currency: 'CNY',- input: 0.5,- output: 0.5,+ units: [+ { name: 'textInput', rate: 0.5, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 0.5, strategy: 'fixed', unit: 'millionTokens' },+ ],},settings: {searchImpl: 'params',@@ -356,8 +383,10 @@ const zhipuChatModels: AIChatModelCard[] = [maxOutput: 4000,pricing: {currency: 'CNY',- input: 10,- output: 10,+ units: [+ { name: 'textInput', rate: 10, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 10, strategy: 'fixed', unit: 'millionTokens' },+ ],},settings: {searchImpl: 'params',@@ -376,8 +405,10 @@ const zhipuChatModels: AIChatModelCard[] = [id: 'glm-4-alltools',pricing: {currency: 'CNY',- input: 100,- output: 100,+ units: [+ { name: 'textInput', rate: 100, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 100, strategy: 'fixed', unit: 'millionTokens' },+ ],},settings: {searchImpl: 'params',@@ -396,8 +427,10 @@ const zhipuChatModels: AIChatModelCard[] = [maxOutput: 4000,pricing: {currency: 'CNY',- input: 5,- output: 5,+ units: [+ { name: 'textInput', rate: 5, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 5, strategy: 'fixed', unit: 'millionTokens' },+ ],},settings: {searchImpl: 'params',@@ -415,8 +448,10 @@ const zhipuChatModels: AIChatModelCard[] = [id: 'glm-4-0520', // 弃用时间 2025年12月30日pricing: {currency: 'CNY',- input: 100,- output: 100,+ units: [+ { name: 'textInput', rate: 100, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 100, strategy: 'fixed', unit: 'millionTokens' },+ ],},settings: {searchImpl: 'params',@@ -434,8 +469,10 @@ const zhipuChatModels: AIChatModelCard[] = [id: 'glm-4', // 弃用时间 2025年6月30日pricing: {currency: 'CNY',- input: 100,- output: 100,+ units: [+ { name: 'textInput', rate: 100, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 100, strategy: 'fixed', unit: 'millionTokens' },+ ],},settings: {searchImpl: 'params',@@ -453,8 +490,10 @@ const zhipuChatModels: AIChatModelCard[] = [id: 'glm-4v-flash',pricing: {currency: 'CNY',- input: 0,- output: 0,+ units: [+ { name: 'textInput', rate: 0, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 0, strategy: 'fixed', unit: 'millionTokens' },+ ],},releasedAt: '2024-12-09',type: 'chat',@@ -469,8 +508,10 @@ const zhipuChatModels: AIChatModelCard[] = [id: 'glm-4v-plus-0111',pricing: {currency: 'CNY',- input: 4,- output: 4,+ units: [+ { name: 'textInput', rate: 4, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 4, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -484,8 +525,10 @@ const zhipuChatModels: AIChatModelCard[] = [id: 'glm-4v',pricing: {currency: 'CNY',- input: 50,- output: 50,+ units: [+ { name: 'textInput', rate: 50, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 50, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -498,8 +541,10 @@ const zhipuChatModels: AIChatModelCard[] = [maxOutput: 32_768,pricing: {currency: 'CNY',- input: 0.1,- output: 0.1,+ units: [+ { name: 'textInput', rate: 0.1, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 0.1, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -511,8 +556,10 @@ const zhipuChatModels: AIChatModelCard[] = [maxOutput: 4000,pricing: {currency: 'CNY',- input: 1,- output: 1,+ units: [+ { name: 'textInput', rate: 1, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 1, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},@@ -524,8 +571,10 @@ const zhipuChatModels: AIChatModelCard[] = [maxOutput: 4000,pricing: {currency: 'CNY',- input: 15,- output: 15,+ units: [+ { name: 'textInput', rate: 15, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 15, strategy: 'fixed', unit: 'millionTokens' },+ ],},type: 'chat',},diff --git a/src/config/modelProviders/ai21.ts b/src/config/modelProviders/ai21.tsindex 263f6400f24..17f564a6529 100644--- a/src/config/modelProviders/ai21.ts+++ b/src/config/modelProviders/ai21.ts@@ -9,10 +9,6 @@ const Ai21: ModelProviderCard = {enabled: true,functionCall: true,id: 'jamba-1.5-mini',- pricing: {- input: 0.2,- output: 0.4,- },},{contextWindowTokens: 256_000,@@ -20,10 +16,6 @@ const Ai21: ModelProviderCard = {enabled: true,functionCall: true,id: 'jamba-1.5-large',- pricing: {- input: 2,- output: 8,- },},],checkModel: 'jamba-mini',diff --git a/src/config/modelProviders/ai360.ts b/src/config/modelProviders/ai360.tsindex 84222b2b898..bd89fb3fe97 100644--- a/src/config/modelProviders/ai360.ts+++ b/src/config/modelProviders/ai360.ts@@ -10,11 +10,6 @@ const Ai360: ModelProviderCard = {displayName: '360GPT2 o1',enabled: true,id: '360gpt2-o1',- pricing: {- currency: 'CNY',- input: 20,- output: 50,- },},{contextWindowTokens: 8000,@@ -22,11 +17,6 @@ const Ai360: ModelProviderCard = {displayName: '360GPT2 Pro',enabled: true,id: '360gpt2-pro',- pricing: {- currency: 'CNY',- input: 2,- output: 5,- },},{contextWindowTokens: 8000,@@ -35,11 +25,6 @@ const Ai360: ModelProviderCard = {enabled: true,functionCall: true,id: '360gpt-pro',- pricing: {- currency: 'CNY',- input: 2,- output: 5,- },},{contextWindowTokens: 7000,@@ -47,11 +32,6 @@ const Ai360: ModelProviderCard = {displayName: '360GPT Turbo',enabled: true,id: '360gpt-turbo',- pricing: {- currency: 'CNY',- input: 1,- output: 2,- },},],checkModel: '360gpt-turbo',diff --git a/src/config/modelProviders/anthropic.ts b/src/config/modelProviders/anthropic.tsindex b8e7fbb0130..66a522da480 100644--- a/src/config/modelProviders/anthropic.ts+++ b/src/config/modelProviders/anthropic.ts@@ -12,12 +12,6 @@ const Anthropic: ModelProviderCard = {functionCall: true,id: 'claude-opus-4-20250514',maxOutput: 32_000,- pricing: {- cachedInput: 7.5,- input: 30,- output: 150,- writeCacheInput: 37.5,- },releasedAt: '2025-05-14',vision: true,},@@ -30,12 +24,6 @@ const Anthropic: ModelProviderCard = {functionCall: true,id: 'claude-sonnet-4-20250514',maxOutput: 64_000,- pricing: {- cachedInput: 1.5,- input: 6,- output: 30,- writeCacheInput: 7.5,- },releasedAt: '2025-05-14',vision: true,},@@ -48,12 +36,6 @@ const Anthropic: ModelProviderCard = {functionCall: true,id: 'claude-3-7-sonnet-20250219',maxOutput: 64_000,- pricing: {- cachedInput: 0.1,- input: 1,- output: 5,- writeCacheInput: 1.25,- },releasedAt: '2025-02-24',},{@@ -65,12 +47,6 @@ const Anthropic: ModelProviderCard = {functionCall: true,id: 'claude-3-5-haiku-20241022',maxOutput: 8192,- pricing: {- cachedInput: 0.1,- input: 1,- output: 5,- writeCacheInput: 1.25,- },releasedAt: '2024-11-05',},{@@ -82,12 +58,6 @@ const Anthropic: ModelProviderCard = {functionCall: true,id: 'claude-3-5-sonnet-20241022',maxOutput: 8192,- pricing: {- cachedInput: 0.3,- input: 3,- output: 15,- writeCacheInput: 3.75,- },releasedAt: '2024-10-22',vision: true,},@@ -99,12 +69,6 @@ const Anthropic: ModelProviderCard = {functionCall: true,id: 'claude-3-5-sonnet-20240620',maxOutput: 8192,- pricing: {- cachedInput: 0.3,- input: 3,- output: 15,- writeCacheInput: 3.75,- },releasedAt: '2024-06-20',vision: true,},@@ -116,10 +80,6 @@ const Anthropic: ModelProviderCard = {functionCall: true,id: 'claude-3-haiku-20240307',maxOutput: 4096,- pricing: {- input: 0.25,- output: 1.25,- },releasedAt: '2024-03-07',vision: true,},@@ -131,10 +91,6 @@ const Anthropic: ModelProviderCard = {functionCall: true,id: 'claude-3-sonnet-20240229',maxOutput: 4096,- pricing: {- input: 3,- output: 15,- },releasedAt: '2024-02-29',vision: true,},@@ -147,10 +103,6 @@ const Anthropic: ModelProviderCard = {functionCall: true,id: 'claude-3-opus-20240229',maxOutput: 4096,- pricing: {- input: 15,- output: 75,- },releasedAt: '2024-02-29',vision: true,},@@ -161,10 +113,6 @@ const Anthropic: ModelProviderCard = {displayName: 'Claude 2.1',id: 'claude-2.1',maxOutput: 4096,- pricing: {- input: 8,- output: 24,- },releasedAt: '2023-11-21',},{@@ -174,10 +122,6 @@ const Anthropic: ModelProviderCard = {displayName: 'Claude 2.0',id: 'claude-2.0',maxOutput: 4096,- pricing: {- input: 8,- output: 24,- },releasedAt: '2023-07-11',},],diff --git a/src/config/modelProviders/baichuan.ts b/src/config/modelProviders/baichuan.tsindex cb4cca6d5dd..f11a6fbb3e9 100644--- a/src/config/modelProviders/baichuan.ts+++ b/src/config/modelProviders/baichuan.ts@@ -12,11 +12,6 @@ const Baichuan: ModelProviderCard = {functionCall: true,id: 'Baichuan4',maxOutput: 4096,- pricing: {- currency: 'CNY',- input: 100,- output: 100,- },},{contextWindowTokens: 32_768,@@ -27,11 +22,6 @@ const Baichuan: ModelProviderCard = {functionCall: true,id: 'Baichuan4-Turbo',maxOutput: 4096,- pricing: {- currency: 'CNY',- input: 15,- output: 15,- },},{contextWindowTokens: 32_768,@@ -42,11 +32,6 @@ const Baichuan: ModelProviderCard = {functionCall: true,id: 'Baichuan4-Air',maxOutput: 4096,- pricing: {- currency: 'CNY',- input: 0.98,- output: 0.98,- },},{contextWindowTokens: 32_768,@@ -56,11 +41,6 @@ const Baichuan: ModelProviderCard = {functionCall: true,id: 'Baichuan3-Turbo',maxOutput: 8192,- pricing: {- currency: 'CNY',- input: 12,- output: 12,- },},{contextWindowTokens: 128_000,@@ -69,11 +49,6 @@ const Baichuan: ModelProviderCard = {displayName: 'Baichuan 3 Turbo 128k',id: 'Baichuan3-Turbo-128k',maxOutput: 4096,- pricing: {- currency: 'CNY',- input: 24,- output: 24,- },},{contextWindowTokens: 32_768,@@ -82,11 +57,6 @@ const Baichuan: ModelProviderCard = {displayName: 'Baichuan 2 Turbo',id: 'Baichuan2-Turbo',maxOutput: 8192,- pricing: {- currency: 'CNY',- input: 8,- output: 8,- },},],checkModel: 'Baichuan3-Turbo',diff --git a/src/config/modelProviders/bedrock.ts b/src/config/modelProviders/bedrock.tsindex 50d6549927c..65fd88e9060 100644--- a/src/config/modelProviders/bedrock.ts+++ b/src/config/modelProviders/bedrock.ts@@ -35,12 +35,6 @@ const Bedrock: ModelProviderCard = {functionCall: true,id: 'us.anthropic.claude-3-7-sonnet-20250219-v1:0',maxOutput: 8192,- pricing: {- cachedInput: 0.1,- input: 1,- output: 5,- writeCacheInput: 1.25,- },releasedAt: '2025-02-24',},{@@ -52,12 +46,6 @@ const Bedrock: ModelProviderCard = {functionCall: true,id: 'us.anthropic.claude-3-7-sonnet-20250219-v1:0',maxOutput: 64_000,- pricing: {- cachedInput: 0.1,- input: 1,- output: 5,- writeCacheInput: 1.25,- },releasedAt: '2025-02-24',},{@@ -69,12 +57,6 @@ const Bedrock: ModelProviderCard = {functionCall: true,id: 'anthropic.claude-3-5-haiku-20241022-v1:0',maxOutput: 8192,- pricing: {- cachedInput: 0.1,- input: 1,- output: 5,- writeCacheInput: 1.25,- },releasedAt: '2024-11-05',},{@@ -85,10 +67,6 @@ const Bedrock: ModelProviderCard = {enabled: true,functionCall: true,id: 'anthropic.claude-3-5-sonnet-20241022-v2:0',- pricing: {- input: 3,- output: 15,- },vision: true,},{@@ -99,10 +77,6 @@ const Bedrock: ModelProviderCard = {enabled: true,functionCall: true,id: 'us.anthropic.claude-3-5-sonnet-20241022-v2:0',- pricing: {- input: 3,- output: 15,- },vision: true,},{@@ -113,10 +87,6 @@ const Bedrock: ModelProviderCard = {enabled: true,functionCall: true,id: 'anthropic.claude-3-5-sonnet-20240620-v1:0',- pricing: {- input: 3,- output: 15,- },vision: true,},{@@ -127,10 +97,6 @@ const Bedrock: ModelProviderCard = {enabled: true,functionCall: true,id: 'anthropic.claude-3-haiku-20240307-v1:0',- pricing: {- input: 0.25,- output: 1.25,- },vision: true,},{@@ -141,10 +107,6 @@ const Bedrock: ModelProviderCard = {enabled: true,functionCall: true,id: 'anthropic.claude-3-sonnet-20240229-v1:0',- pricing: {- input: 3,- output: 15,- },vision: true,},{@@ -155,10 +117,6 @@ const Bedrock: ModelProviderCard = {enabled: true,functionCall: true,id: 'anthropic.claude-3-opus-20240229-v1:0',- pricing: {- input: 15,- output: 75,- },vision: true,},{@@ -167,10 +125,6 @@ const Bedrock: ModelProviderCard = {'Claude 2 的更新版,具有双倍的上下文窗口,以及在长文档和 RAG 上下文中的可靠性、幻觉率和基于证据的准确性的改进。',displayName: 'Claude 2.1',id: 'anthropic.claude-v2:1',- pricing: {- input: 8,- output: 24,- },},{contextWindowTokens: 100_000,@@ -178,10 +132,6 @@ const Bedrock: ModelProviderCard = {'Anthropic 在从复杂对话和创意内容生成到详细指令跟随的广泛任务中都表现出高度能力的模型。',displayName: 'Claude 2.0',id: 'anthropic.claude-v2',- pricing: {- input: 8,- output: 24,- },},{contextWindowTokens: 100_000,@@ -189,10 +139,6 @@ const Bedrock: ModelProviderCard = {'一款快速、经济且仍然非常有能力的模型,可以处理包括日常对话、文本分析、总结和文档问答在内的一系列任务。',displayName: 'Claude Instant',id: 'anthropic.claude-instant-v1',- pricing: {- input: 0.8,- output: 2.4,- },},{contextWindowTokens: 128_000,@@ -202,10 +148,6 @@ const Bedrock: ModelProviderCard = {enabled: true,functionCall: true,id: 'meta.llama3-1-8b-instruct-v1:0',- pricing: {- input: 0.22,- output: 0.22,- },},{contextWindowTokens: 128_000,@@ -215,10 +157,6 @@ const Bedrock: ModelProviderCard = {enabled: true,functionCall: true,id: 'meta.llama3-1-70b-instruct-v1:0',- pricing: {- input: 0.99,- output: 0.99,- },},{contextWindowTokens: 128_000,@@ -228,10 +166,6 @@ const Bedrock: ModelProviderCard = {enabled: true,functionCall: true,id: 'meta.llama3-1-405b-instruct-v1:0',- pricing: {- input: 5.32,- output: 16,- },},{contextWindowTokens: 8000,@@ -239,10 +173,6 @@ const Bedrock: ModelProviderCard = {'Meta Llama 3 是一款面向开发者、研究人员和企业的开放大型语言模型 (LLM),旨在帮助他们构建、实验并负责任地扩展他们的生成 AI 想法。作为全球社区创新的基础系统的一部分,它非常适合计算能力和资源有限、边缘设备和更快的训练时间。',displayName: 'Llama 3 8B Instruct',id: 'meta.llama3-8b-instruct-v1:0',- pricing: {- input: 0.3,- output: 0.6,- },},{contextWindowTokens: 8000,@@ -250,10 +180,6 @@ const Bedrock: ModelProviderCard = {'Meta Llama 3 是一款面向开发者、研究人员和企业的开放大型语言模型 (LLM),旨在帮助他们构建、实验并负责任地扩展他们的生成 AI 想法。作为全球社区创新的基础系统的一部分,它非常适合内容创建、对话 AI、语言理解、研发和企业应用。',displayName: 'Llama 3 70B Instruct',id: 'meta.llama3-70b-instruct-v1:0',- pricing: {- input: 2.65,- output: 3.5,- },},/*// TODO: Not support for nowdiff --git a/src/config/modelProviders/deepseek.ts b/src/config/modelProviders/deepseek.tsindex 8c6be3c08dd..4fa8a5781ef 100644--- a/src/config/modelProviders/deepseek.ts+++ b/src/config/modelProviders/deepseek.ts@@ -11,13 +11,6 @@ const DeepSeek: ModelProviderCard = {enabled: true,functionCall: true,id: 'deepseek-chat',- pricing: {- // 2025.2.9 之后涨价- cachedInput: 0.1,- currency: 'CNY',- input: 1,- output: 2,- },releasedAt: '2024-12-26',},{@@ -27,12 +20,6 @@ const DeepSeek: ModelProviderCard = {displayName: 'DeepSeek R1',enabled: true,id: 'deepseek-reasoner',- pricing: {- cachedInput: 1,- currency: 'CNY',- input: 4,- output: 16,- },releasedAt: '2025-01-20',},],diff --git a/src/config/modelProviders/fireworksai.ts b/src/config/modelProviders/fireworksai.tsindex 0f8bc9298ac..86afb1d540d 100644--- a/src/config/modelProviders/fireworksai.ts+++ b/src/config/modelProviders/fireworksai.ts@@ -11,10 +11,6 @@ const FireworksAI: ModelProviderCard = {displayName: 'Llama 3.3 70B Instruct',enabled: true,id: 'accounts/fireworks/models/llama-v3p3-70b-instruct',- pricing: {- input: 0.9,- output: 0.9,- },},{contextWindowTokens: 131_072,@@ -23,10 +19,6 @@ const FireworksAI: ModelProviderCard = {displayName: 'Llama 3.2 3B Instruct',enabled: true,id: 'accounts/fireworks/models/llama-v3p2-3b-instruct',- pricing: {- input: 0.1,- output: 0.1,- },},{contextWindowTokens: 131_072,@@ -35,10 +27,6 @@ const FireworksAI: ModelProviderCard = {displayName: 'Llama 3.2 11B Vision Instruct',enabled: true,id: 'accounts/fireworks/models/llama-v3p2-11b-vision-instruct',- pricing: {- input: 0.2,- output: 0.2,- },vision: true,},{@@ -48,10 +36,6 @@ const FireworksAI: ModelProviderCard = {displayName: 'Llama 3.2 90B Vision Instruct',enabled: true,id: 'accounts/fireworks/models/llama-v3p2-90b-vision-instruct',- pricing: {- input: 0.9,- output: 0.9,- },vision: true,},{@@ -60,10 +44,6 @@ const FireworksAI: ModelProviderCard = {'Meta Llama 3.1 系列是多语言大语言模型(LLM)集合,包含 8B、70B 和 405B 三种参数规模的预训练和指令微调生成模型。Llama 3.1 指令微调文本模型(8B、70B、405B)专为多语言对话应用优化,并在常见的行业基准测试中优于许多现有的开源和闭源聊天模型。',displayName: 'Llama 3.1 8B Instruct',id: 'accounts/fireworks/models/llama-v3p1-8b-instruct',- pricing: {- input: 0.2,- output: 0.2,- },},{contextWindowTokens: 131_072,@@ -72,10 +52,6 @@ const FireworksAI: ModelProviderCard = {displayName: 'Llama 3.1 70B Instruct',functionCall: true,id: 'accounts/fireworks/models/llama-v3p1-70b-instruct',- pricing: {- input: 0.9,- output: 0.9,- },},{contextWindowTokens: 131_072,@@ -84,10 +60,6 @@ const FireworksAI: ModelProviderCard = {displayName: 'Llama 3.1 405B Instruct',functionCall: true,id: 'accounts/fireworks/models/llama-v3p1-405b-instruct',- pricing: {- input: 3,- output: 3,- },},{contextWindowTokens: 8192,@@ -95,10 +67,6 @@ const FireworksAI: ModelProviderCard = {'Meta 开发并发布了 Meta Llama 3 系列大语言模型(LLM),这是一个包含 8B 和 70B 参数规模的预训练和指令微调生成文本模型的集合。Llama 3 指令微调模型专为对话应用场景优化,并在常见的行业基准测试中优于许多现有的开源聊天模型。',displayName: 'Llama 3 8B Instruct',id: 'accounts/fireworks/models/llama-v3-8b-instruct',- pricing: {- input: 0.2,- output: 0.2,- },},{contextWindowTokens: 8192,@@ -106,10 +74,6 @@ const FireworksAI: ModelProviderCard = {'Meta 开发并发布了 Meta Llama 3 系列大语言模型(LLM),该系列包含 8B 和 70B 参数规模的预训练和指令微调生成文本模型。Llama 3 指令微调模型专为对话应用场景优化,并在常见的行业基准测试中优于许多现有的开源聊天模型。',displayName: 'Llama 3 70B Instruct',id: 'accounts/fireworks/models/llama-v3-70b-instruct',- pricing: {- input: 0.9,- output: 0.9,- },},{contextWindowTokens: 8192,@@ -117,10 +81,6 @@ const FireworksAI: ModelProviderCard = {'Meta Llama 3 指令微调模型专为对话应用场景优化,并在常见的行业基准测试中优于许多现有的开源聊天模型。Llama 3 8B Instruct(HF 版本)是 Llama 3 8B Instruct 的原始 FP16 版本,其结果应与官方 Hugging Face 实现一致。',displayName: 'Llama 3 8B Instruct (HF version)',id: 'accounts/fireworks/models/llama-v3-8b-instruct-hf',- pricing: {- input: 0.2,- output: 0.2,- },},{contextWindowTokens: 32_768,@@ -128,10 +88,6 @@ const FireworksAI: ModelProviderCard = {displayName: 'Mistral Small 3 Instruct',enabled: true,id: 'accounts/fireworks/models/mistral-small-24b-instruct-2501',- pricing: {- input: 0.9,- output: 0.9,- },},{contextWindowTokens: 32_768,@@ -139,10 +95,6 @@ const FireworksAI: ModelProviderCard = {'Mixtral MoE 8x7B Instruct 是 Mixtral MoE 8x7B 的指令微调版本,已启用聊天完成功能 API。',displayName: 'Mixtral MoE 8x7B Instruct',id: 'accounts/fireworks/models/mixtral-8x7b-instruct',- pricing: {- input: 0.5,- output: 0.5,- },},{contextWindowTokens: 65_536,@@ -151,10 +103,6 @@ const FireworksAI: ModelProviderCard = {displayName: 'Mixtral MoE 8x22B Instruct',functionCall: true,id: 'accounts/fireworks/models/mixtral-8x22b-instruct',- pricing: {- input: 1.2,- output: 1.2,- },},{contextWindowTokens: 32_064,@@ -163,10 +111,6 @@ const FireworksAI: ModelProviderCard = {displayName: 'Phi 3.5 Vision Instruct',enabled: true,id: 'accounts/fireworks/models/phi-3-vision-128k-instruct',- pricing: {- input: 0.2,- output: 0.2,- },vision: true,},{@@ -175,10 +119,6 @@ const FireworksAI: ModelProviderCard = {'MythoMix 的改进版,可能是其更为完善的变体,是 MythoLogic-L2 和 Huginn 的合并,采用了高度实验性的张量类型合并技术。由于其独特的性质,该模型在讲故事和角色扮演方面表现出色。',displayName: 'MythoMax L2 13b',id: 'accounts/fireworks/models/mythomax-l2-13b',- pricing: {- input: 0.2,- output: 0.2,- },},{contextWindowTokens: 131_072,@@ -187,10 +127,6 @@ const FireworksAI: ModelProviderCard = {displayName: 'Deepseek V3',enabled: true,id: 'accounts/fireworks/models/deepseek-v3',- pricing: {- input: 0.9,- output: 0.9,- },},{contextWindowTokens: 163_840,@@ -199,10 +135,6 @@ const FireworksAI: ModelProviderCard = {displayName: 'Deepseek R1',enabled: true,id: 'accounts/fireworks/models/deepseek-r1',- pricing: {- input: 8,- output: 8,- },},{contextWindowTokens: 32_768,@@ -211,10 +143,6 @@ const FireworksAI: ModelProviderCard = {displayName: 'Qwen Qwq 32b Preview',enabled: true,id: 'accounts/fireworks/models/qwen-qwq-32b-preview',- pricing: {- input: 0.9,- output: 0.9,- },},{contextWindowTokens: 32_768,@@ -223,10 +151,6 @@ const FireworksAI: ModelProviderCard = {displayName: 'Qwen2.5 72B Instruct',enabled: true,id: 'accounts/fireworks/models/qwen2p5-72b-instruct',- pricing: {- input: 0.9,- output: 0.9,- },},{contextWindowTokens: 32_768,@@ -234,10 +158,6 @@ const FireworksAI: ModelProviderCard = {displayName: 'Qwen2 VL 72B Instruct',enabled: true,id: 'accounts/fireworks/models/qwen2-vl-72b-instruct',- pricing: {- input: 0.9,- output: 0.9,- },vision: true,},{@@ -247,10 +167,6 @@ const FireworksAI: ModelProviderCard = {displayName: 'Qwen2.5-Coder-32B-Instruct',enabled: true,id: 'accounts/fireworks/models/qwen2p5-coder-32b-instruct',- pricing: {- input: 0.9,- output: 0.9,- },},{contextWindowTokens: 32_768,@@ -259,10 +175,6 @@ const FireworksAI: ModelProviderCard = {displayName: 'Yi-Large',enabled: true,id: 'accounts/yi-01-ai/models/yi-large',- pricing: {- input: 3,- output: 3,- },},],checkModel: 'accounts/fireworks/models/llama-v3p2-3b-instruct',diff --git a/src/config/modelProviders/google.ts b/src/config/modelProviders/google.tsindex 8ef5ac1fe63..5422b3c4ba9 100644--- a/src/config/modelProviders/google.ts+++ b/src/config/modelProviders/google.ts@@ -12,10 +12,6 @@ const Google: ModelProviderCard = {functionCall: true,id: 'gemini-2.5-pro-exp-03-25',maxOutput: 65_536,- pricing: {- input: 0,- output: 0,- },releasedAt: '2025-03-25',vision: true,},@@ -28,11 +24,6 @@ const Google: ModelProviderCard = {functionCall: true,id: 'gemini-2.0-pro-exp-02-05',maxOutput: 8192,- pricing: {- cachedInput: 0,- input: 0,- output: 0,- },releasedAt: '2025-02-05',vision: true,},@@ -45,11 +36,6 @@ const Google: ModelProviderCard = {functionCall: true,id: 'gemini-2.0-flash',maxOutput: 8192,- pricing: {- cachedInput: 0.025,- input: 0.1,- output: 0.4,- },releasedAt: '2025-02-05',vision: true,},@@ -61,11 +47,6 @@ const Google: ModelProviderCard = {functionCall: true,id: 'gemini-2.0-flash-001',maxOutput: 8192,- pricing: {- cachedInput: 0.025,- input: 0.1,- output: 0.4,- },releasedAt: '2025-02-05',vision: true,},@@ -75,11 +56,6 @@ const Google: ModelProviderCard = {displayName: 'Gemini 2.0 Flash-Lite Preview 02-05',id: 'gemini-2.0-flash-lite-preview-02-05',maxOutput: 8192,- pricing: {- cachedInput: 0.018_75,- input: 0.075,- output: 0.3,- },releasedAt: '2025-02-05',vision: true,},@@ -91,11 +67,6 @@ const Google: ModelProviderCard = {enabled: true,id: 'gemini-2.0-flash-thinking-exp-01-21',maxOutput: 65_536,- pricing: {- cachedInput: 0,- input: 0,- output: 0,- },releasedAt: '2025-01-21',vision: true,},@@ -107,11 +78,6 @@ const Google: ModelProviderCard = {functionCall: true,id: 'learnlm-1.5-pro-experimental',maxOutput: 8192,- pricing: {- cachedInput: 0,- input: 0,- output: 0,- },releasedAt: '2024-11-19',vision: true,},@@ -122,11 +88,6 @@ const Google: ModelProviderCard = {functionCall: true,id: 'gemini-1.5-flash-002',maxOutput: 8192,- pricing: {- cachedInput: 0.018_75,- input: 0.075,- output: 0.3,- },releasedAt: '2024-09-25',vision: true,},@@ -137,11 +98,6 @@ const Google: ModelProviderCard = {functionCall: true,id: 'gemini-1.5-flash-001',maxOutput: 8192,- pricing: {- cachedInput: 0.018_75,- input: 0.075,- output: 0.3,- },vision: true,},{@@ -152,11 +108,6 @@ const Google: ModelProviderCard = {functionCall: true,id: 'gemini-1.5-pro-002',maxOutput: 8192,- pricing: {- cachedInput: 0.315,- input: 1.25,- output: 2.5,- },releasedAt: '2024-09-24',vision: true,},@@ -167,11 +118,6 @@ const Google: ModelProviderCard = {functionCall: true,id: 'gemini-1.5-pro-001',maxOutput: 8192,- pricing: {- cachedInput: 0.875,- input: 3.5,- output: 10.5,- },releasedAt: '2024-02-15',vision: true,},@@ -182,11 +128,6 @@ const Google: ModelProviderCard = {functionCall: true,id: 'gemini-1.5-flash-8b',maxOutput: 8192,- pricing: {- cachedInput: 0.02,- input: 0.075,- output: 0.3,- },releasedAt: '2024-10-03',vision: true,},diff --git a/src/config/modelProviders/groq.ts b/src/config/modelProviders/groq.tsindex 244472cb86c..a0e9c1f88de 100644--- a/src/config/modelProviders/groq.ts+++ b/src/config/modelProviders/groq.ts@@ -13,10 +13,6 @@ const Groq: ModelProviderCard = {functionCall: true,id: 'llama-3.3-70b-versatile',maxOutput: 8192,- pricing: {- input: 0.05,- output: 0.08,- },},{contextWindowTokens: 8192,@@ -26,10 +22,6 @@ const Groq: ModelProviderCard = {enabled: true,id: 'llama-3.2-11b-vision-preview',maxOutput: 8192,- pricing: {- input: 0.05,- output: 0.08,- },vision: true,},{@@ -40,10 +32,6 @@ const Groq: ModelProviderCard = {enabled: true,id: 'llama-3.2-90b-vision-preview',maxOutput: 8192,- pricing: {- input: 0.59,- output: 0.79,- },vision: true,},{@@ -55,10 +43,6 @@ const Groq: ModelProviderCard = {functionCall: true,id: 'llama-3.1-8b-instant',maxOutput: 8192,- pricing: {- input: 0.05,- output: 0.08,- },},{contextWindowTokens: 131_072,@@ -69,10 +53,6 @@ const Groq: ModelProviderCard = {functionCall: true,id: 'llama-3.1-70b-versatile',maxOutput: 8192,- pricing: {- input: 0.59,- output: 0.79,- },},/*// Offline due to overwhelming demand! Stay tuned for updates.@@ -89,10 +69,6 @@ const Groq: ModelProviderCard = {displayName: 'Llama 3 Groq 8B Tool Use (Preview)',functionCall: true,id: 'llama3-groq-8b-8192-tool-use-preview',- pricing: {- input: 0.19,- output: 0.19,- },},{contextWindowTokens: 8192,@@ -100,10 +76,6 @@ const Groq: ModelProviderCard = {displayName: 'Llama 3 Groq 70B Tool Use (Preview)',functionCall: true,id: 'llama3-groq-70b-8192-tool-use-preview',- pricing: {- input: 0.89,- output: 0.89,- },},{contextWindowTokens: 8192,@@ -111,10 +83,6 @@ const Groq: ModelProviderCard = {displayName: 'Meta Llama 3 8B',functionCall: true,id: 'llama3-8b-8192',- pricing: {- input: 0.05,- output: 0.08,- },},{contextWindowTokens: 8192,@@ -122,10 +90,6 @@ const Groq: ModelProviderCard = {displayName: 'Meta Llama 3 70B',functionCall: true,id: 'llama3-70b-8192',- pricing: {- input: 0.59,- output: 0.79,- },},{contextWindowTokens: 8192,@@ -134,10 +98,6 @@ const Groq: ModelProviderCard = {enabled: true,functionCall: true,id: 'gemma2-9b-it',- pricing: {- input: 0.2,- output: 0.2,- },},{contextWindowTokens: 8192,@@ -145,10 +105,6 @@ const Groq: ModelProviderCard = {displayName: 'Gemma 7B',functionCall: true,id: 'gemma-7b-it',- pricing: {- input: 0.07,- output: 0.07,- },},{contextWindowTokens: 32_768,@@ -156,10 +112,6 @@ const Groq: ModelProviderCard = {displayName: 'Mixtral 8x7B',functionCall: true,id: 'mixtral-8x7b-32768',- pricing: {- input: 0.24,- output: 0.24,- },},{contextWindowTokens: 4096,diff --git a/src/config/modelProviders/higress.ts b/src/config/modelProviders/higress.tsindex 17a57894c20..0c2fc9bd4ed 100644--- a/src/config/modelProviders/higress.ts+++ b/src/config/modelProviders/higress.ts@@ -10,11 +10,6 @@ const Higress: ModelProviderCard = {enabled: true,functionCall: true,id: 'qwen-turbo',- pricing: {- currency: 'CNY',- input: 0.3,- output: 0.6,- },},{contextWindowTokens: 131_072,@@ -23,11 +18,6 @@ const Higress: ModelProviderCard = {enabled: true,functionCall: true,id: 'qwen-plus',- pricing: {- currency: 'CNY',- input: 0.8,- output: 2,- },},{contextWindowTokens: 32_768,@@ -37,11 +27,6 @@ const Higress: ModelProviderCard = {enabled: true,functionCall: true,id: 'qwen-max',- pricing: {- currency: 'CNY',- input: 20,- output: 60,- },},{contextWindowTokens: 1_000_000,@@ -49,11 +34,6 @@ const Higress: ModelProviderCard = {'通义千问超大规模语言模型,支持长文本上下文,以及基于长文档、多文档等多个场景的对话功能。',displayName: 'Qwen Long',id: 'qwen-long',- pricing: {- currency: 'CNY',- input: 0.5,- output: 2,- },},//后面几个qwen未知支持{@@ -63,11 +43,6 @@ const Higress: ModelProviderCard = {displayName: 'Qwen VL Plus',enabled: true,id: 'qwen-vl-plus-latest',- pricing: {- currency: 'CNY',- input: 8,- output: 8,- },vision: true,},{@@ -77,11 +52,6 @@ const Higress: ModelProviderCard = {displayName: 'Qwen VL Max',enabled: true,id: 'qwen-vl-max-latest',- pricing: {- currency: 'CNY',- input: 20,- output: 20,- },vision: true,},{@@ -89,33 +59,18 @@ const Higress: ModelProviderCard = {description: '通义千问数学模型是专门用于数学解题的语言模型。',displayName: 'Qwen Math Turbo',id: 'qwen-math-turbo-latest',- pricing: {- currency: 'CNY',- input: 2,- output: 6,- },},{contextWindowTokens: 4096,description: '通义千问数学模型是专门用于数学解题的语言模型。',displayName: 'Qwen Math Plus',id: 'qwen-math-plus-latest',- pricing: {- currency: 'CNY',- input: 4,- output: 12,- },},{contextWindowTokens: 131_072,description: '通义千问代码模型。',displayName: 'Qwen Coder Turbo',id: 'qwen-coder-turbo-latest',- pricing: {- currency: 'CNY',- input: 2,- output: 6,- },},{contextWindowTokens: 131_072,@@ -123,11 +78,6 @@ const Higress: ModelProviderCard = {displayName: 'Qwen2.5 7B',functionCall: true,id: 'qwen2.5-7b-instruct',- pricing: {- currency: 'CNY',- input: 1,- output: 2,- },},{contextWindowTokens: 131_072,@@ -135,11 +85,6 @@ const Higress: ModelProviderCard = {displayName: 'Qwen2.5 14B',functionCall: true,id: 'qwen2.5-14b-instruct',- pricing: {- currency: 'CNY',- input: 2,- output: 6,- },},{contextWindowTokens: 131_072,@@ -147,11 +92,6 @@ const Higress: ModelProviderCard = {displayName: 'Qwen2.5 32B',functionCall: true,id: 'qwen2.5-32b-instruct',- pricing: {- currency: 'CNY',- input: 3.5,- output: 7,- },},{contextWindowTokens: 131_072,@@ -159,77 +99,42 @@ const Higress: ModelProviderCard = {displayName: 'Qwen2.5 72B',functionCall: true,id: 'qwen2.5-72b-instruct',- pricing: {- currency: 'CNY',- input: 4,- output: 12,- },},{contextWindowTokens: 4096,description: 'Qwen-Math 模型具有强大的数学解题能力。',displayName: 'Qwen2.5 Math 1.5B',id: 'qwen2.5-math-1.5b-instruct',- pricing: {- currency: 'CNY',- input: 0,- output: 0,- },},{contextWindowTokens: 4096,description: 'Qwen-Math 模型具有强大的数学解题能力。',displayName: 'Qwen2.5 Math 7B',id: 'qwen2.5-math-7b-instruct',- pricing: {- currency: 'CNY',- input: 1,- output: 2,- },},{contextWindowTokens: 4096,description: 'Qwen-Math 模型具有强大的数学解题能力。',displayName: 'Qwen2.5 Math 72B',id: 'qwen2.5-math-72b-instruct',- pricing: {- currency: 'CNY',- input: 4,- output: 12,- },},{contextWindowTokens: 131_072,description: '通义千问代码模型开源版。',displayName: 'Qwen2.5 Coder 1.5B',id: 'qwen2.5-coder-1.5b-instruct',- pricing: {- currency: 'CNY',- input: 0,- output: 0,- },},{contextWindowTokens: 131_072,description: '通义千问代码模型开源版。',displayName: 'Qwen2.5 Coder 7B',id: 'qwen2.5-coder-7b-instruct',- pricing: {- currency: 'CNY',- input: 1,- output: 2,- },},{contextWindowTokens: 8000,description: '以 Qwen-7B 语言模型初始化,添加图像模型,图像输入分辨率为448的预训练模型。',displayName: 'Qwen VL',id: 'qwen-vl-v1',- pricing: {- currency: 'CNY',- input: 0,- output: 0,- },vision: true,},{@@ -237,11 +142,6 @@ const Higress: ModelProviderCard = {description: '通义千问VL支持灵活的交互方式,包括多图、多轮问答、创作等能力的模型。',displayName: 'Qwen VL Chat',id: 'qwen-vl-chat-v1',- pricing: {- currency: 'CNY',- input: 0,- output: 0,- },vision: true,},@@ -283,11 +183,6 @@ const Higress: ModelProviderCard = {functionCall: true,id: 'Baichuan4',maxOutput: 4096,- pricing: {- currency: 'CNY',- input: 100,- output: 100,- },},{description: '',@@ -296,41 +191,6 @@ const Higress: ModelProviderCard = {functionCall: true,id: 'Baichuan4-Turbo',// maxOutput: 4096,- // pricing: {- // currency: 'CNY',- // input: 100,- // output: 100,- // },- // tokens: 32_768,- },- {- description: '',- displayName: 'Baichuan 4 Air',- enabled: true,- functionCall: true,- id: 'Baichuan4-Air',- // maxOutput: 4096,- // pricing: {- // currency: 'CNY',- // input: 100,- // output: 100,- // },- // tokens: 32_768,- },- {- contextWindowTokens: 32_768,- description:- '针对企业高频场景优化,效果大幅提升,高性价比。相对于Baichuan2模型,内容创作提升20%,知识问答提升17%, 角色扮演能力提升40%。整体效果比GPT3.5更优。',- displayName: 'Baichuan 3 Turbo',- enabled: true,- functionCall: true,- id: 'Baichuan3-Turbo',- maxOutput: 8192,- pricing: {- currency: 'CNY',- input: 12,- output: 12,- },},{contextWindowTokens: 128_000,@@ -340,11 +200,6 @@ const Higress: ModelProviderCard = {enabled: true,id: 'Baichuan3-Turbo-128k',maxOutput: 4096,- pricing: {- currency: 'CNY',- input: 24,- output: 24,- },},{contextWindowTokens: 32_768,@@ -353,11 +208,6 @@ const Higress: ModelProviderCard = {displayName: 'Baichuan 2 Turbo',id: 'Baichuan2-Turbo',maxOutput: 8192,- pricing: {- currency: 'CNY',- input: 8,- output: 8,- },},//零一万物{@@ -366,11 +216,6 @@ const Higress: ModelProviderCard = {displayName: 'Yi Lightning',enabled: true,id: 'yi-lightning',- pricing: {- currency: 'CNY',- input: 0.99,- output: 0.99,- },},{contextWindowTokens: 16_384,@@ -378,11 +223,6 @@ const Higress: ModelProviderCard = {displayName: 'Yi Spark',enabled: true,id: 'yi-spark',- pricing: {- currency: 'CNY',- input: 1,- output: 1,- },},{contextWindowTokens: 16_384,@@ -390,11 +230,6 @@ const Higress: ModelProviderCard = {displayName: 'Yi Medium',enabled: true,id: 'yi-medium',- pricing: {- currency: 'CNY',- input: 2.5,- output: 2.5,- },},{contextWindowTokens: 200_000,@@ -402,11 +237,6 @@ const Higress: ModelProviderCard = {displayName: 'Yi Medium 200K',enabled: true,id: 'yi-medium-200k',- pricing: {- currency: 'CNY',- input: 12,- output: 12,- },},{contextWindowTokens: 16_384,@@ -414,11 +244,6 @@ const Higress: ModelProviderCard = {displayName: 'Yi Large Turbo',enabled: true,id: 'yi-large-turbo',- pricing: {- currency: 'CNY',- input: 12,- output: 12,- },},{contextWindowTokens: 16_384,@@ -427,11 +252,6 @@ const Higress: ModelProviderCard = {displayName: 'Yi Large RAG',enabled: true,id: 'yi-large-rag',- pricing: {- currency: 'CNY',- input: 25,- output: 25,- },},{contextWindowTokens: 32_768,@@ -441,22 +261,12 @@ const Higress: ModelProviderCard = {enabled: true,functionCall: true,id: 'yi-large-fc',- pricing: {- currency: 'CNY',- input: 20,- output: 20,- },},{contextWindowTokens: 32_768,description: '全新千亿参数模型,提供超强问答及文本生成能力。',displayName: 'Yi Large',id: 'yi-large',- pricing: {- currency: 'CNY',- input: 20,- output: 20,- },},{contextWindowTokens: 16_384,@@ -464,11 +274,6 @@ const Higress: ModelProviderCard = {displayName: 'Yi Vision',enabled: true,id: 'yi-vision',- pricing: {- currency: 'CNY',- input: 6,- output: 6,- },vision: true,},{@@ -476,22 +281,12 @@ const Higress: ModelProviderCard = {description: '初期版本,推荐使用 yi-large(新版本)。',displayName: 'Yi Large Preview',id: 'yi-large-preview',- pricing: {- currency: 'CNY',- input: 20,- output: 20,- },},{contextWindowTokens: 16_384,description: '轻量化版本,推荐使用 yi-lightning。',displayName: 'Yi Lightning Lite',id: 'yi-lightning-lite',- pricing: {- currency: 'CNY',- input: 0.99,- output: 0.99,- },},//智谱AI{@@ -501,11 +296,6 @@ const Higress: ModelProviderCard = {enabled: true,functionCall: true,id: 'glm-4-flash',- pricing: {- currency: 'CNY',- input: 0,- output: 0,- },},{contextWindowTokens: 128_000,@@ -514,11 +304,6 @@ const Higress: ModelProviderCard = {enabled: true,functionCall: true,id: 'glm-4-flashx',- pricing: {- currency: 'CNY',- input: 0.1,- output: 0.1,- },},{contextWindowTokens: 1_024_000,@@ -526,11 +311,6 @@ const Higress: ModelProviderCard = {displayName: 'GLM-4-Long',functionCall: true,id: 'glm-4-long',- pricing: {- currency: 'CNY',- input: 1,- output: 1,- },},{contextWindowTokens: 128_000,@@ -539,11 +319,6 @@ const Higress: ModelProviderCard = {enabled: true,functionCall: true,id: 'glm-4-air',- pricing: {- currency: 'CNY',- input: 1,- output: 1,- },},{contextWindowTokens: 8192,@@ -552,11 +327,6 @@ const Higress: ModelProviderCard = {enabled: true,functionCall: true,id: 'glm-4-airx',- pricing: {- currency: 'CNY',- input: 10,- output: 10,- },},{contextWindowTokens: 128_000,@@ -565,11 +335,6 @@ const Higress: ModelProviderCard = {displayName: 'GLM-4-AllTools',functionCall: true,id: 'glm-4-alltools',- pricing: {- currency: 'CNY',- input: 100,- output: 100,- },},{contextWindowTokens: 128_000,@@ -579,11 +344,6 @@ const Higress: ModelProviderCard = {enabled: true,functionCall: true,id: 'glm-4-plus',- pricing: {- currency: 'CNY',- input: 50,- output: 50,- },},{contextWindowTokens: 128_000,@@ -591,11 +351,6 @@ const Higress: ModelProviderCard = {displayName: 'GLM-4-0520',functionCall: true,id: 'glm-4-0520',- pricing: {- currency: 'CNY',- input: 100,- output: 100,- },},{contextWindowTokens: 128_000,@@ -603,11 +358,6 @@ const Higress: ModelProviderCard = {displayName: 'GLM-4',functionCall: true,id: 'glm-4',- pricing: {- currency: 'CNY',- input: 100,- output: 100,- },},{contextWindowTokens: 8192,@@ -615,11 +365,6 @@ const Higress: ModelProviderCard = {displayName: 'GLM-4V-Plus',enabled: true,id: 'glm-4v-plus',- pricing: {- currency: 'CNY',- input: 10,- output: 10,- },vision: true,},{@@ -627,11 +372,6 @@ const Higress: ModelProviderCard = {description: 'GLM-4V 提供强大的图像理解与推理能力,支持多种视觉任务。',displayName: 'GLM-4V',id: 'glm-4v',- pricing: {- currency: 'CNY',- input: 50,- output: 50,- },vision: true,},{@@ -639,22 +379,12 @@ const Higress: ModelProviderCard = {description: 'CharGLM-3 专为角色扮演与情感陪伴设计,支持超长多轮记忆与个性化对话,应用广泛。',displayName: 'CharGLM-3',id: 'charglm-3',- pricing: {- currency: 'CNY',- input: 15,- output: 15,- },},{contextWindowTokens: 8192,description: 'Emohaa 是心理模型,具备专业咨询能力,帮助用户理解情感问题。',displayName: 'Emohaa',id: 'emohaa',- pricing: {- currency: 'CNY',- input: 15,- output: 15,- },},//360智脑{@@ -665,11 +395,6 @@ const Higress: ModelProviderCard = {enabled: true,id: '360gpt2-pro',maxOutput: 7000,- pricing: {- currency: 'CNY',- input: 5,- output: 5,- },},{contextWindowTokens: 8192,@@ -680,11 +405,6 @@ const Higress: ModelProviderCard = {functionCall: true,id: '360gpt-pro',maxOutput: 7000,- pricing: {- currency: 'CNY',- input: 5,- output: 5,- },},{contextWindowTokens: 8192,@@ -694,11 +414,6 @@ const Higress: ModelProviderCard = {enabled: true,id: '360gpt-turbo',maxOutput: 7000,- pricing: {- currency: 'CNY',- input: 2,- output: 2,- },},{contextWindowTokens: 8192,@@ -708,11 +423,6 @@ const Higress: ModelProviderCard = {enabled: true,id: '360gpt-turbo-responsibility-8k',maxOutput: 2048,- pricing: {- currency: 'CNY',- input: 2,- output: 2,- },},//文心一言{@@ -722,11 +432,6 @@ const Higress: ModelProviderCard = {displayName: 'ERNIE 3.5 8K',enabled: true,id: 'ERNIE-3.5-8K',- pricing: {- currency: 'CNY',- input: 0.8,- output: 2,- },},{contextWindowTokens: 8192,@@ -734,11 +439,6 @@ const Higress: ModelProviderCard = {'百度自研的旗舰级大规模⼤语⾔模型,覆盖海量中英文语料,具有强大的通用能力,可满足绝大部分对话问答、创作生成、插件应用场景要求;支持自动对接百度搜索插件,保障问答信息时效。',displayName: 'ERNIE 3.5 8K Preview',id: 'ERNIE-3.5-8K-Preview',- pricing: {- currency: 'CNY',- input: 0.8,- output: 2,- },},{contextWindowTokens: 128_000,@@ -747,11 +447,6 @@ const Higress: ModelProviderCard = {displayName: 'ERNIE 3.5 128K',enabled: true,id: 'ERNIE-3.5-128K',- pricing: {- currency: 'CNY',- input: 0.8,- output: 2,- },},{contextWindowTokens: 8192,@@ -760,11 +455,6 @@ const Higress: ModelProviderCard = {displayName: 'ERNIE 4.0 8K',enabled: true,id: 'ERNIE-4.0-8K-Latest',- pricing: {- currency: 'CNY',- input: 30,- output: 90,- },},{contextWindowTokens: 8192,@@ -772,11 +462,6 @@ const Higress: ModelProviderCard = {'百度自研的旗舰级超大规模⼤语⾔模型,相较ERNIE 3.5实现了模型能力全面升级,广泛适用于各领域复杂任务场景;支持自动对接百度搜索插件,保障问答信息时效。',displayName: 'ERNIE 4.0 8K Preview',id: 'ERNIE-4.0-8K-Preview',- pricing: {- currency: 'CNY',- input: 30,- output: 90,- },},{contextWindowTokens: 8192,@@ -785,11 +470,6 @@ const Higress: ModelProviderCard = {displayName: 'ERNIE 4.0 Turbo 8K',enabled: true,id: 'ERNIE-4.0-Turbo-8K-Latest',- pricing: {- currency: 'CNY',- input: 20,- output: 60,- },},{contextWindowTokens: 8192,@@ -797,11 +477,6 @@ const Higress: ModelProviderCard = {'百度自研的旗舰级超大规模⼤语⾔模型,综合效果表现出色,广泛适用于各领域复杂任务场景;支持自动对接百度搜索插件,保障问答信息时效。相较于ERNIE 4.0在性能表现上更优秀',displayName: 'ERNIE 4.0 Turbo 8K Preview',id: 'ERNIE-4.0-Turbo-8K-Preview',- pricing: {- currency: 'CNY',- input: 20,- output: 60,- },},{contextWindowTokens: 128_000,@@ -810,11 +485,6 @@ const Higress: ModelProviderCard = {displayName: 'ERNIE Lite Pro 128K',enabled: true,id: 'ERNIE-Lite-Pro-128K',- pricing: {- currency: 'CNY',- input: 0.2,- output: 0.4,- },},{contextWindowTokens: 128_000,@@ -823,11 +493,6 @@ const Higress: ModelProviderCard = {displayName: 'ERNIE Speed Pro 128K',enabled: true,id: 'ERNIE-Speed-Pro-128K',- pricing: {- currency: 'CNY',- input: 0.3,- output: 0.6,- },},{contextWindowTokens: 128_000,@@ -835,11 +500,6 @@ const Higress: ModelProviderCard = {'百度2024年最新发布的自研高性能大语言模型,通用能力优异,适合作为基座模型进行精调,更好地处理特定场景问题,同时具备极佳的推理性能。',displayName: 'ERNIE Speed 128K',id: 'ERNIE-Speed-128K',- pricing: {- currency: 'CNY',- input: 0,- output: 0,- },},{contextWindowTokens: 8192,@@ -847,11 +507,6 @@ const Higress: ModelProviderCard = {'百度自研的垂直场景大语言模型,适合游戏NPC、客服对话、对话角色扮演等应用场景,人设风格更为鲜明、一致,指令遵循能力更强,推理性能更优。',displayName: 'ERNIE Character 8K',id: 'ERNIE-Character-8K',- pricing: {- currency: 'CNY',- input: 4,- output: 8,- },},//混元{@@ -862,11 +517,6 @@ const Higress: ModelProviderCard = {enabled: true,id: 'hunyuan-lite',maxOutput: 6000,- pricing: {- currency: 'CNY',- input: 0,- output: 0,- },},{contextWindowTokens: 32_000,@@ -876,11 +526,6 @@ const Higress: ModelProviderCard = {enabled: true,id: 'hunyuan-standard',maxOutput: 2000,- pricing: {- currency: 'CNY',- input: 4.5,- output: 5,- },},{contextWindowTokens: 256_000,@@ -890,11 +535,6 @@ const Higress: ModelProviderCard = {enabled: true,id: 'hunyuan-standard-256K',maxOutput: 6000,- pricing: {- currency: 'CNY',- input: 15,- output: 60,- },},{contextWindowTokens: 32_000,@@ -905,11 +545,6 @@ const Higress: ModelProviderCard = {functionCall: true,id: 'hunyuan-turbo',maxOutput: 4000,- pricing: {- currency: 'CNY',- input: 15,- output: 50,- },},{contextWindowTokens: 32_000,@@ -920,11 +555,6 @@ const Higress: ModelProviderCard = {functionCall: true,id: 'hunyuan-pro',maxOutput: 4000,- pricing: {- currency: 'CNY',- input: 30,- output: 100,- },},{description: '',@@ -933,25 +563,6 @@ const Higress: ModelProviderCard = {functionCall: true,id: 'hunyuan-large',// maxOutput: 4000,- // pricing: {- // currency: 'CNY',- // input: 30,- // output: 100,- // },- // tokens: 32_000,- },- {- contextWindowTokens: 8000,- description: '混元最新多模态模型,支持图片+文本输入生成文本内容。',- displayName: 'Hunyuan Vision',- enabled: true,- id: 'hunyuan-vision',- maxOutput: 4000,- pricing: {- currency: 'CNY',- input: 18,- output: 18,- },vision: true,},{@@ -961,11 +572,6 @@ const Higress: ModelProviderCard = {displayName: 'Hunyuan Code',id: 'hunyuan-code',maxOutput: 4000,- pricing: {- currency: 'CNY',- input: 4,- output: 8,- },},{contextWindowTokens: 32_000,@@ -975,11 +581,6 @@ const Higress: ModelProviderCard = {functionCall: true,id: 'hunyuan-functioncall',maxOutput: 4000,- pricing: {- currency: 'CNY',- input: 4,- output: 8,- },},{contextWindowTokens: 8000,@@ -988,11 +589,6 @@ const Higress: ModelProviderCard = {displayName: 'Hunyuan Role',id: 'hunyuan-role',maxOutput: 4000,- pricing: {- currency: 'CNY',- input: 4,- output: 8,- },},//阶跃星辰{@@ -1002,11 +598,6 @@ const Higress: ModelProviderCard = {enabled: true,functionCall: true,id: 'step-1-flash',- pricing: {- currency: 'CNY',- input: 1,- output: 4,- },},{contextWindowTokens: 8000,@@ -1015,11 +606,6 @@ const Higress: ModelProviderCard = {enabled: true,functionCall: true,id: 'step-1-8k',- pricing: {- currency: 'CNY',- input: 5,- output: 20,- },},{contextWindowTokens: 32_000,@@ -1028,11 +614,6 @@ const Higress: ModelProviderCard = {enabled: true,functionCall: true,id: 'step-1-32k',- pricing: {- currency: 'CNY',- input: 15,- output: 70,- },},{contextWindowTokens: 128_000,@@ -1041,11 +622,6 @@ const Higress: ModelProviderCard = {enabled: true,functionCall: true,id: 'step-1-128k',- pricing: {- currency: 'CNY',- input: 40,- output: 200,- },},{contextWindowTokens: 256_000,@@ -1053,11 +629,6 @@ const Higress: ModelProviderCard = {displayName: 'Step 1 256K',functionCall: true,id: 'step-1-256k',- pricing: {- currency: 'CNY',- input: 95,- output: 300,- },},{contextWindowTokens: 16_000,@@ -1066,11 +637,6 @@ const Higress: ModelProviderCard = {enabled: true,functionCall: true,id: 'step-2-16k',- pricing: {- currency: 'CNY',- input: 38,- output: 120,- },},{contextWindowTokens: 8000,@@ -1079,11 +645,6 @@ const Higress: ModelProviderCard = {enabled: true,functionCall: true,id: 'step-1v-8k',- pricing: {- currency: 'CNY',- input: 5,- output: 20,- },vision: true,},{@@ -1093,11 +654,6 @@ const Higress: ModelProviderCard = {enabled: true,functionCall: true,id: 'step-1v-32k',- pricing: {- currency: 'CNY',- input: 15,- output: 70,- },vision: true,},{@@ -1106,11 +662,6 @@ const Higress: ModelProviderCard = {displayName: 'Step 1.5V Mini',enabled: true,id: 'step-1.5v-mini',- pricing: {- currency: 'CNY',- input: 8,- output: 35,- },vision: true,},{@@ -1182,10 +733,6 @@ const Higress: ModelProviderCard = {enabled: true,id: 'o1-mini',maxOutput: 65_536,- pricing: {- input: 3,- output: 12,- },releasedAt: '2024-09-12',},{@@ -1196,10 +743,6 @@ const Higress: ModelProviderCard = {enabled: true,id: 'o1-preview',maxOutput: 32_768,- pricing: {- input: 15,- output: 60,- },releasedAt: '2024-09-12',},{@@ -1211,10 +754,6 @@ const Higress: ModelProviderCard = {functionCall: true,id: 'gpt-4o-mini',maxOutput: 16_385,- pricing: {- input: 0.15,- output: 0.6,- },vision: true,},{@@ -1225,10 +764,6 @@ const Higress: ModelProviderCard = {enabled: true,functionCall: true,id: 'gpt-4o',- pricing: {- input: 2.5,- output: 10,- },vision: true,},{@@ -1238,10 +773,6 @@ const Higress: ModelProviderCard = {displayName: 'GPT-4o 0806',functionCall: true,id: 'gpt-4o-2024-08-06',- pricing: {- input: 2.5,- output: 10,- },vision: true,},{@@ -1251,10 +782,6 @@ const Higress: ModelProviderCard = {displayName: 'GPT-4o 0513',functionCall: true,id: 'gpt-4o-2024-05-13',- pricing: {- input: 5,- output: 15,- },vision: true,},{@@ -1264,10 +791,6 @@ const Higress: ModelProviderCard = {displayName: 'ChatGPT-4o',enabled: true,id: 'chatgpt-4o-latest',- pricing: {- input: 5,- output: 15,- },vision: true,},{@@ -1277,10 +800,6 @@ const Higress: ModelProviderCard = {displayName: 'GPT-4 Turbo',functionCall: true,id: 'gpt-4-turbo',- pricing: {- input: 10,- output: 30,- },vision: true,},{@@ -1290,10 +809,6 @@ const Higress: ModelProviderCard = {displayName: 'GPT-4 Turbo Vision 0409',functionCall: true,id: 'gpt-4-turbo-2024-04-09',- pricing: {- input: 10,- output: 30,- },vision: true,},{@@ -1303,10 +818,6 @@ const Higress: ModelProviderCard = {displayName: 'GPT-4 Turbo Preview',functionCall: true,id: 'gpt-4-turbo-preview',- pricing: {- input: 10,- output: 30,- },},{contextWindowTokens: 128_000,@@ -1315,10 +826,6 @@ const Higress: ModelProviderCard = {displayName: 'GPT-4 Turbo Preview 0125',functionCall: true,id: 'gpt-4-0125-preview',- pricing: {- input: 10,- output: 30,- },},{contextWindowTokens: 128_000,@@ -1327,10 +834,6 @@ const Higress: ModelProviderCard = {displayName: 'GPT-4 Turbo Preview 1106',functionCall: true,id: 'gpt-4-1106-preview',- pricing: {- input: 10,- output: 30,- },},{contextWindowTokens: 8192,@@ -1339,10 +842,6 @@ const Higress: ModelProviderCard = {displayName: 'GPT-4',functionCall: true,id: 'gpt-4',- pricing: {- input: 30,- output: 60,- },},{contextWindowTokens: 8192,@@ -1351,10 +850,6 @@ const Higress: ModelProviderCard = {displayName: 'GPT-4 0613',functionCall: true,id: 'gpt-4-0613',- pricing: {- input: 30,- output: 60,- },},{contextWindowTokens: 32_768,@@ -1364,10 +859,6 @@ const Higress: ModelProviderCard = {displayName: 'GPT-4 32K',functionCall: true,id: 'gpt-4-32k',- pricing: {- input: 60,- output: 120,- },},{contextWindowTokens: 32_768,@@ -1377,10 +868,6 @@ const Higress: ModelProviderCard = {displayName: 'GPT-4 32K 0613',functionCall: true,id: 'gpt-4-32k-0613',- pricing: {- input: 60,- output: 120,- },},{contextWindowTokens: 16_385,@@ -1389,10 +876,6 @@ const Higress: ModelProviderCard = {displayName: 'GPT-3.5 Turbo',functionCall: true,id: 'gpt-3.5-turbo',- pricing: {- input: 0.5,- output: 1.5,- },},{contextWindowTokens: 16_385,@@ -1401,10 +884,6 @@ const Higress: ModelProviderCard = {displayName: 'GPT-3.5 Turbo 0125',functionCall: true,id: 'gpt-3.5-turbo-0125',- pricing: {- input: 0.5,- output: 1.5,- },},{contextWindowTokens: 16_385,@@ -1413,10 +892,6 @@ const Higress: ModelProviderCard = {displayName: 'GPT-3.5 Turbo 1106',functionCall: true,id: 'gpt-3.5-turbo-1106',- pricing: {- input: 1,- output: 2,- },},{contextWindowTokens: 4096,@@ -1424,10 +899,6 @@ const Higress: ModelProviderCard = {'GPT 3.5 Turbo,适用于各种文本生成和理解任务,Currently points to gpt-3.5-turbo-0125',displayName: 'GPT-3.5 Turbo Instruct',id: 'gpt-3.5-turbo-instruct',- pricing: {- input: 1.5,- output: 2,- },},//azure{@@ -1706,10 +1177,6 @@ const Higress: ModelProviderCard = {enabled: true,id: 'llama-3.2-11b-vision-preview',maxOutput: 8192,- pricing: {- input: 0.05,- output: 0.08,- },vision: true,},{@@ -1720,10 +1187,6 @@ const Higress: ModelProviderCard = {enabled: true,id: 'llama-3.2-90b-vision-preview',maxOutput: 8192,- pricing: {- input: 0.59,- output: 0.79,- },vision: true,},{@@ -1735,10 +1198,6 @@ const Higress: ModelProviderCard = {functionCall: true,id: 'llama-3.1-8b-instant',maxOutput: 8192,- pricing: {- input: 0.05,- output: 0.08,- },},{contextWindowTokens: 131_072,@@ -1749,10 +1208,6 @@ const Higress: ModelProviderCard = {functionCall: true,id: 'llama-3.1-70b-versatile',maxOutput: 8192,- pricing: {- input: 0.59,- output: 0.79,- },},/*// Offline due to overwhelming demand! Stay tuned for updates.@@ -1769,10 +1224,6 @@ const Higress: ModelProviderCard = {displayName: 'Llama 3 Groq 8B Tool Use (Preview)',functionCall: true,id: 'llama3-groq-8b-8192-tool-use-preview',- pricing: {- input: 0.19,- output: 0.19,- },},{contextWindowTokens: 8192,@@ -1780,10 +1231,6 @@ const Higress: ModelProviderCard = {displayName: 'Llama 3 Groq 70B Tool Use (Preview)',functionCall: true,id: 'llama3-groq-70b-8192-tool-use-preview',- pricing: {- input: 0.89,- output: 0.89,- },},{contextWindowTokens: 8192,@@ -1791,10 +1238,6 @@ const Higress: ModelProviderCard = {displayName: 'Meta Llama 3 8B',functionCall: true,id: 'llama3-8b-8192',- pricing: {- input: 0.05,- output: 0.08,- },},{contextWindowTokens: 8192,@@ -1802,10 +1245,6 @@ const Higress: ModelProviderCard = {displayName: 'Meta Llama 3 70B',functionCall: true,id: 'llama3-70b-8192',- pricing: {- input: 0.59,- output: 0.79,- },},{contextWindowTokens: 8192,@@ -1814,10 +1253,6 @@ const Higress: ModelProviderCard = {enabled: true,functionCall: true,id: 'gemma2-9b-it',- pricing: {- input: 0.2,- output: 0.2,- },},{contextWindowTokens: 8192,@@ -1825,10 +1260,6 @@ const Higress: ModelProviderCard = {displayName: 'Gemma 7B',functionCall: true,id: 'gemma-7b-it',- pricing: {- input: 0.07,- output: 0.07,- },},{contextWindowTokens: 32_768,@@ -1836,10 +1267,6 @@ const Higress: ModelProviderCard = {displayName: 'Mixtral 8x7B',functionCall: true,id: 'mixtral-8x7b-32768',- pricing: {- input: 0.24,- output: 0.24,- },},{contextWindowTokens: 4096,@@ -1857,11 +1284,6 @@ const Higress: ModelProviderCard = {enabled: true,functionCall: true,id: 'deepseek-chat',- pricing: {- cachedInput: 0.014,- input: 0.14,- output: 0.28,- },releasedAt: '2024-09-05',},//claude@@ -1874,12 +1296,6 @@ const Higress: ModelProviderCard = {functionCall: true,id: 'claude-3-5-haiku-20241022',maxOutput: 8192,- pricing: {- cachedInput: 0.1,- input: 1,- output: 5,- writeCacheInput: 1.25,- },releasedAt: '2024-11-05',},{@@ -1891,12 +1307,6 @@ const Higress: ModelProviderCard = {functionCall: true,id: 'claude-3-5-sonnet-20241022',maxOutput: 8192,- pricing: {- cachedInput: 0.3,- input: 3,- output: 15,- writeCacheInput: 3.75,- },releasedAt: '2024-10-22',vision: true,},@@ -1908,12 +1318,6 @@ const Higress: ModelProviderCard = {functionCall: true,id: 'claude-3-5-sonnet-20240620',maxOutput: 8192,- pricing: {- cachedInput: 0.3,- input: 3,- output: 15,- writeCacheInput: 3.75,- },releasedAt: '2024-06-20',vision: true,},@@ -1925,10 +1329,6 @@ const Higress: ModelProviderCard = {functionCall: true,id: 'claude-3-haiku-20240307',maxOutput: 4096,- pricing: {- input: 0.25,- output: 1.25,- },releasedAt: '2024-03-07',vision: true,},@@ -1940,10 +1340,6 @@ const Higress: ModelProviderCard = {functionCall: true,id: 'claude-3-sonnet-20240229',maxOutput: 4096,- pricing: {- input: 3,- output: 15,- },releasedAt: '2024-02-29',vision: true,},@@ -1956,10 +1352,6 @@ const Higress: ModelProviderCard = {functionCall: true,id: 'claude-3-opus-20240229',maxOutput: 4096,- pricing: {- input: 15,- output: 75,- },releasedAt: '2024-02-29',vision: true,},@@ -1970,10 +1362,6 @@ const Higress: ModelProviderCard = {displayName: 'Claude 2.1',id: 'claude-2.1',maxOutput: 4096,- pricing: {- input: 8,- output: 24,- },releasedAt: '2023-11-21',},{@@ -1983,10 +1371,6 @@ const Higress: ModelProviderCard = {displayName: 'Claude 2.0',id: 'claude-2.0',maxOutput: 4096,- pricing: {- input: 8,- output: 24,- },releasedAt: '2023-07-11',},//gemini@@ -1999,11 +1383,6 @@ const Higress: ModelProviderCard = {functionCall: true,id: 'gemini-1.5-flash-latest',maxOutput: 8192,- pricing: {- cachedInput: 0.018_75,- input: 0.075,- output: 0.3,- },vision: true,},{@@ -2014,11 +1393,6 @@ const Higress: ModelProviderCard = {functionCall: true,id: 'gemini-1.5-flash-002',maxOutput: 8192,- pricing: {- cachedInput: 0.018_75,- input: 0.075,- output: 0.3,- },releasedAt: '2024-09-25',vision: true,},@@ -2029,11 +1403,6 @@ const Higress: ModelProviderCard = {functionCall: true,id: 'gemini-1.5-flash-001',maxOutput: 8192,- pricing: {- cachedInput: 0.018_75,- input: 0.075,- output: 0.3,- },vision: true,},{@@ -2043,11 +1412,6 @@ const Higress: ModelProviderCard = {functionCall: true,id: 'gemini-1.5-flash-exp-0827',maxOutput: 8192,- pricing: {- cachedInput: 0.018_75,- input: 0.075,- output: 0.3,- },releasedAt: '2024-08-27',vision: true,},@@ -2059,11 +1423,6 @@ const Higress: ModelProviderCard = {functionCall: true,id: 'gemini-1.5-flash-8b',maxOutput: 8192,- pricing: {- cachedInput: 0.02,- input: 0.075,- output: 0.3,- },releasedAt: '2024-10-03',vision: true,},@@ -2075,11 +1434,6 @@ const Higress: ModelProviderCard = {functionCall: true,id: 'gemini-1.5-flash-8b-exp-0924',maxOutput: 8192,- pricing: {- cachedInput: 0.018_75,- input: 0.075,- output: 0.3,- },releasedAt: '2024-09-24',vision: true,},@@ -2092,11 +1446,6 @@ const Higress: ModelProviderCard = {functionCall: true,id: 'gemini-1.5-pro-latest',maxOutput: 8192,- pricing: {- cachedInput: 0.875,- input: 3.5,- output: 10.5,- },releasedAt: '2024-02-15',vision: true,},@@ -2109,11 +1458,6 @@ const Higress: ModelProviderCard = {functionCall: true,id: 'gemini-1.5-pro-002',maxOutput: 8192,- pricing: {- cachedInput: 0.315,- input: 1.25,- output: 2.5,- },releasedAt: '2024-09-24',vision: true,},@@ -2124,11 +1468,6 @@ const Higress: ModelProviderCard = {functionCall: true,id: 'gemini-1.5-pro-001',maxOutput: 8192,- pricing: {- cachedInput: 0.875,- input: 3.5,- output: 10.5,- },releasedAt: '2024-02-15',vision: true,},@@ -2139,11 +1478,6 @@ const Higress: ModelProviderCard = {functionCall: true,id: 'gemini-1.5-pro-exp-0827',maxOutput: 8192,- pricing: {- cachedInput: 0.875,- input: 3.5,- output: 10.5,- },releasedAt: '2024-08-27',vision: true,},@@ -2154,11 +1488,6 @@ const Higress: ModelProviderCard = {functionCall: true,id: 'gemini-1.5-pro-exp-0801',maxOutput: 8192,- pricing: {- cachedInput: 0.875,- input: 3.5,- output: 10.5,- },releasedAt: '2024-08-01',vision: true,},@@ -2168,10 +1497,6 @@ const Higress: ModelProviderCard = {displayName: 'Gemini 1.0 Pro',id: 'gemini-1.0-pro-latest',maxOutput: 2048,- pricing: {- input: 0.5,- output: 1.5,- },releasedAt: '2023-12-06',},{@@ -2182,10 +1507,6 @@ const Higress: ModelProviderCard = {functionCall: true,id: 'gemini-1.0-pro-001',maxOutput: 2048,- pricing: {- input: 0.5,- output: 1.5,- },releasedAt: '2023-12-06',},{@@ -2194,10 +1515,6 @@ const Higress: ModelProviderCard = {displayName: 'Gemini 1.0 Pro 002 (Tuning)',id: 'gemini-1.0-pro-002',maxOutput: 2048,- pricing: {- input: 0.5,- output: 1.5,- },releasedAt: '2023-12-06',},//mistral@@ -2210,10 +1527,6 @@ const Higress: ModelProviderCard = {enabled: true,functionCall: true,id: 'open-mistral-nemo',- pricing: {- input: 0.15,- output: 0.15,- },},{contextWindowTokens: 128_000,@@ -2223,10 +1536,6 @@ const Higress: ModelProviderCard = {enabled: true,functionCall: true,id: 'mistral-small-latest',- pricing: {- input: 0.2,- output: 0.6,- },},{contextWindowTokens: 128_000,@@ -2236,20 +1545,12 @@ const Higress: ModelProviderCard = {enabled: true,functionCall: true,id: 'mistral-large-latest',- pricing: {- input: 2,- output: 6,- },},{contextWindowTokens: 32_768,description: 'Codestral是专注于代码生成的尖端生成模型,优化了中间填充和代码补全任务。',displayName: 'Codestral',id: 'codestral-latest',- pricing: {- input: 0.2,- output: 0.6,- },},{contextWindowTokens: 128_000,@@ -2258,10 +1559,6 @@ const Higress: ModelProviderCard = {displayName: 'Pixtral 12B',enabled: true,id: 'pixtral-12b-2409',- pricing: {- input: 0.15,- output: 0.15,- },vision: true,},{@@ -2269,20 +1566,12 @@ const Higress: ModelProviderCard = {description: 'Ministral 3B 是Mistral的世界顶级边缘模型。',displayName: 'Ministral 3B',id: 'ministral-3b-latest',- pricing: {- input: 0.04,- output: 0.04,- },},{contextWindowTokens: 128_000,description: 'Ministral 8B 是Mistral的性价比极高的边缘模型。',displayName: 'Ministral 8B',id: 'ministral-8b-latest',- pricing: {- input: 0.1,- output: 0.1,- },},{contextWindowTokens: 32_768,@@ -2290,10 +1579,6 @@ const Higress: ModelProviderCard = {'Mistral 7B是一款紧凑但高性能的模型,擅长批量处理和简单任务,如分类和文本生成,具有良好的推理能力。',displayName: 'Mistral 7B',id: 'open-mistral-7b',- pricing: {- input: 0.25,- output: 0.25,- },},{contextWindowTokens: 32_768,@@ -2301,10 +1586,6 @@ const Higress: ModelProviderCard = {'Mixtral 8x7B是一个稀疏专家模型,利用多个参数提高推理速度,适合处理多语言和代码生成任务。',displayName: 'Mixtral 8x7B',id: 'open-mixtral-8x7b',- pricing: {- input: 0.7,- output: 0.7,- },},{contextWindowTokens: 65_536,@@ -2313,10 +1594,6 @@ const Higress: ModelProviderCard = {displayName: 'Mixtral 8x22B',functionCall: true,id: 'open-mixtral-8x22b',- pricing: {- input: 2,- output: 6,- },},{contextWindowTokens: 256_000,@@ -2324,10 +1601,6 @@ const Higress: ModelProviderCard = {'Codestral Mamba是专注于代码生成的Mamba 2语言模型,为先进的代码和推理任务提供强力支持。',displayName: 'Codestral Mamba',id: 'open-codestral-mamba',- pricing: {- input: 0.15,- output: 0.15,- },},//minimax{diff --git a/src/config/modelProviders/hunyuan.ts b/src/config/modelProviders/hunyuan.tsindex 35487f22e18..a996c7e7f46 100644--- a/src/config/modelProviders/hunyuan.ts+++ b/src/config/modelProviders/hunyuan.ts@@ -11,11 +11,6 @@ const Hunyuan: ModelProviderCard = {enabled: true,id: 'hunyuan-lite',maxOutput: 6000,- pricing: {- currency: 'CNY',- input: 0,- output: 0,- },},{contextWindowTokens: 32_000,@@ -25,11 +20,6 @@ const Hunyuan: ModelProviderCard = {enabled: true,id: 'hunyuan-standard',maxOutput: 2000,- pricing: {- currency: 'CNY',- input: 4.5,- output: 5,- },},{contextWindowTokens: 256_000,@@ -39,11 +29,6 @@ const Hunyuan: ModelProviderCard = {enabled: true,id: 'hunyuan-standard-256K',maxOutput: 6000,- pricing: {- currency: 'CNY',- input: 15,- output: 60,- },},{contextWindowTokens: 32_000,@@ -54,11 +39,6 @@ const Hunyuan: ModelProviderCard = {functionCall: true,id: 'hunyuan-turbo',maxOutput: 4000,- pricing: {- currency: 'CNY',- input: 15,- output: 50,- },},{contextWindowTokens: 32_000,@@ -69,11 +49,6 @@ const Hunyuan: ModelProviderCard = {functionCall: true,id: 'hunyuan-pro',maxOutput: 4000,- pricing: {- currency: 'CNY',- input: 30,- output: 100,- },},{contextWindowTokens: 8000,@@ -82,11 +57,6 @@ const Hunyuan: ModelProviderCard = {enabled: true,id: 'hunyuan-vision',maxOutput: 4000,- pricing: {- currency: 'CNY',- input: 18,- output: 18,- },vision: true,},{@@ -96,11 +66,6 @@ const Hunyuan: ModelProviderCard = {displayName: 'Hunyuan Code',id: 'hunyuan-code',maxOutput: 4000,- pricing: {- currency: 'CNY',- input: 4,- output: 8,- },},{contextWindowTokens: 32_000,@@ -110,11 +75,6 @@ const Hunyuan: ModelProviderCard = {functionCall: true,id: 'hunyuan-functioncall',maxOutput: 4000,- pricing: {- currency: 'CNY',- input: 4,- output: 8,- },},{contextWindowTokens: 8000,@@ -123,11 +83,6 @@ const Hunyuan: ModelProviderCard = {displayName: 'Hunyuan Role',id: 'hunyuan-role',maxOutput: 4000,- pricing: {- currency: 'CNY',- input: 4,- output: 8,- },},],checkModel: 'hunyuan-lite',diff --git a/src/config/modelProviders/infiniai.ts b/src/config/modelProviders/infiniai.tsindex 12f638e5eb1..af6f53ed7fa 100644--- a/src/config/modelProviders/infiniai.ts+++ b/src/config/modelProviders/infiniai.ts@@ -11,11 +11,6 @@ const InfiniAI: ModelProviderCard = {displayName: 'DeepSeek R1',enabled: true,id: 'deepseek-r1',- pricing: {- currency: 'CNY',- input: 0,- output: 0,- },},{contextWindowTokens: 65_536,@@ -24,11 +19,6 @@ const InfiniAI: ModelProviderCard = {displayName: 'DeepSeek V3',enabled: true,id: 'deepseek-v3',- pricing: {- currency: 'CNY',- input: 0,- output: 0,- },},{contextWindowTokens: 65_536,@@ -37,11 +27,6 @@ const InfiniAI: ModelProviderCard = {displayName: 'QwQ',enabled: true,id: 'qwq-32b',- pricing: {- currency: 'CNY',- input: 0,- output: 0,- },},{contextWindowTokens: 32_768,@@ -50,11 +35,6 @@ const InfiniAI: ModelProviderCard = {displayName: 'DeepSeek R1 Distill Qwen 32B',enabled: true,id: 'deepseek-r1-distill-qwen-32b',- pricing: {- currency: 'CNY',- input: 0,- output: 0,- },},{contextWindowTokens: 32_768,@@ -63,11 +43,6 @@ const InfiniAI: ModelProviderCard = {displayName: 'Qwen2.5 72B Instruct',enabled: true,id: 'qwen2.5-72b-instruct',- pricing: {- currency: 'CNY',- input: 0,- output: 0,- },},{contextWindowTokens: 32_768,@@ -76,11 +51,6 @@ const InfiniAI: ModelProviderCard = {displayName: 'Qwen2.5 32B Instruct',enabled: true,id: 'qwen2.5-32b-instruct',- pricing: {- currency: 'CNY',- input: 0,- output: 0,- },},{contextWindowTokens: 32_768,@@ -89,11 +59,6 @@ const InfiniAI: ModelProviderCard = {displayName: 'Qwen2.5 Coder 32B Instruct',enabled: true,id: 'qwen2.5-coder-32b-instruct',- pricing: {- currency: 'CNY',- input: 0,- output: 0,- },},{contextWindowTokens: 32_768,@@ -102,11 +67,6 @@ const InfiniAI: ModelProviderCard = {displayName: 'Qwen2.5 14B Instruct',enabled: true,id: 'qwen2.5-14b-instruct',- pricing: {- currency: 'CNY',- input: 0,- output: 0,- },},{contextWindowTokens: 32_768,@@ -115,11 +75,6 @@ const InfiniAI: ModelProviderCard = {displayName: 'Qwen2.5 7B Instruct',enabled: true,id: 'qwen2.5-7b-instruct',- pricing: {- currency: 'CNY',- input: 0,- output: 0,- },},{contextWindowTokens: 32_768,@@ -128,11 +83,6 @@ const InfiniAI: ModelProviderCard = {displayName: 'Qwen 2 72B Instruct',enabled: true,id: 'qwen2-72b-instruct',- pricing: {- currency: 'CNY',- input: 0,- output: 0,- },},{contextWindowTokens: 32_768,@@ -141,11 +91,6 @@ const InfiniAI: ModelProviderCard = {displayName: 'Qwen 2 7B Instruct',enabled: true,id: 'qwen2-7b-instruct',- pricing: {- currency: 'CNY',- input: 0,- output: 0,- },},{contextWindowTokens: 4096,@@ -154,11 +99,6 @@ const InfiniAI: ModelProviderCard = {displayName: 'Yi-1.5 34B Chat',enabled: true,id: 'yi-1.5-34b-chat',- pricing: {- currency: 'CNY',- input: 0,- output: 0,- },},],checkModel: 'qwen2.5-7b-instruct',diff --git a/src/config/modelProviders/internlm.ts b/src/config/modelProviders/internlm.tsindex 76070ee713a..faa8d449393 100644--- a/src/config/modelProviders/internlm.ts+++ b/src/config/modelProviders/internlm.ts@@ -11,10 +11,6 @@ const InternLM: ModelProviderCard = {functionCall: true,id: 'internlm2.5-latest',maxOutput: 4096,- pricing: {- input: 0,- output: 0,- },},{contextWindowTokens: 32_768,@@ -23,10 +19,6 @@ const InternLM: ModelProviderCard = {functionCall: true,id: 'internlm2-pro-chat',maxOutput: 4096,- pricing: {- input: 0,- output: 0,- },},],checkModel: 'internlm2.5-latest',diff --git a/src/config/modelProviders/mistral.ts b/src/config/modelProviders/mistral.tsindex 4e14682ce58..c2575a84c44 100644--- a/src/config/modelProviders/mistral.ts+++ b/src/config/modelProviders/mistral.ts@@ -12,10 +12,6 @@ const Mistral: ModelProviderCard = {enabled: true,functionCall: true,id: 'open-mistral-nemo',- pricing: {- input: 0.15,- output: 0.15,- },},{contextWindowTokens: 128_000,@@ -25,10 +21,6 @@ const Mistral: ModelProviderCard = {enabled: true,functionCall: true,id: 'mistral-small-latest',- pricing: {- input: 0.2,- output: 0.6,- },},{contextWindowTokens: 128_000,@@ -38,20 +30,12 @@ const Mistral: ModelProviderCard = {enabled: true,functionCall: true,id: 'mistral-large-latest',- pricing: {- input: 2,- output: 6,- },},{contextWindowTokens: 32_768,description: 'Codestral是专注于代码生成的尖端生成模型,优化了中间填充和代码补全任务。',displayName: 'Codestral',id: 'codestral-latest',- pricing: {- input: 0.2,- output: 0.6,- },},{contextWindowTokens: 128_000,@@ -61,10 +45,6 @@ const Mistral: ModelProviderCard = {enabled: true,functionCall: true,id: 'pixtral-large-latest',- pricing: {- input: 2,- output: 6,- },vision: true,},{@@ -74,10 +54,6 @@ const Mistral: ModelProviderCard = {displayName: 'Pixtral 12B',enabled: true,id: 'pixtral-12b-2409',- pricing: {- input: 0.15,- output: 0.15,- },vision: true,},{@@ -85,20 +61,12 @@ const Mistral: ModelProviderCard = {description: 'Ministral 3B 是Mistral的世界顶级边缘模型。',displayName: 'Ministral 3B',id: 'ministral-3b-latest',- pricing: {- input: 0.04,- output: 0.04,- },},{contextWindowTokens: 128_000,description: 'Ministral 8B 是Mistral的性价比极高的边缘模型。',displayName: 'Ministral 8B',id: 'ministral-8b-latest',- pricing: {- input: 0.1,- output: 0.1,- },},{contextWindowTokens: 32_768,@@ -106,10 +74,6 @@ const Mistral: ModelProviderCard = {'Mistral 7B是一款紧凑但高性能的模型,擅长批量处理和简单任务,如分类和文本生成,具有良好的推理能力。',displayName: 'Mistral 7B',id: 'open-mistral-7b',- pricing: {- input: 0.25,- output: 0.25,- },},{contextWindowTokens: 32_768,@@ -117,10 +81,6 @@ const Mistral: ModelProviderCard = {'Mixtral 8x7B是一个稀疏专家模型,利用多个参数提高推理速度,适合处理多语言和代码生成任务。',displayName: 'Mixtral 8x7B',id: 'open-mixtral-8x7b',- pricing: {- input: 0.7,- output: 0.7,- },},{contextWindowTokens: 65_536,@@ -129,10 +89,6 @@ const Mistral: ModelProviderCard = {displayName: 'Mixtral 8x22B',functionCall: true,id: 'open-mixtral-8x22b',- pricing: {- input: 2,- output: 6,- },},{contextWindowTokens: 256_000,@@ -140,10 +96,6 @@ const Mistral: ModelProviderCard = {'Codestral Mamba是专注于代码生成的Mamba 2语言模型,为先进的代码和推理任务提供强力支持。',displayName: 'Codestral Mamba',id: 'open-codestral-mamba',- pricing: {- input: 0.15,- output: 0.15,- },},],checkModel: 'ministral-3b-latest',diff --git a/src/config/modelProviders/modelscope.ts b/src/config/modelProviders/modelscope.tsindex 2a738147ff4..58324e9e04e 100644--- a/src/config/modelProviders/modelscope.ts+++ b/src/config/modelProviders/modelscope.ts@@ -5,7 +5,8 @@ const ModelScope: ModelProviderCard = {chatModels: [{contextWindowTokens: 131_072,- description: 'DeepSeek R1 通过利用增加的计算资源和在后训练过程中引入算法优化机制,显著提高了其推理和推断能力的深度。该模型在各种基准评估中表现出色,包括数学、编程和一般逻辑方面。其整体性能现已接近领先模型,如 O3 和 Gemini 2.5 Pro。',+ description:+ 'DeepSeek R1 通过利用增加的计算资源和在后训练过程中引入算法优化机制,显著提高了其推理和推断能力的深度。该模型在各种基准评估中表现出色,包括数学、编程和一般逻辑方面。其整体性能现已接近领先模型,如 O3 和 Gemini 2.5 Pro。',displayName: 'DeepSeek-R1-0528',enabled: true,functionCall: true,diff --git a/src/config/modelProviders/openai.ts b/src/config/modelProviders/openai.tsindex 0aa2b949bc1..1d8ee2cb53b 100644--- a/src/config/modelProviders/openai.ts+++ b/src/config/modelProviders/openai.ts@@ -14,9 +14,11 @@ const OpenAI: ModelProviderCard = {id: 'gpt-5-mini',maxOutput: 128_000,pricing: {- cachedInput: 0.03,- input: 0.25,- output: 2,+ units: [+ { name: 'textInput', rate: 0.25, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 2, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textInput_cacheRead', rate: 0.03, strategy: 'fixed', unit: 'millionTokens' },+ ],},releasedAt: '2025-08-07',vision: true,@@ -29,11 +31,6 @@ const OpenAI: ModelProviderCard = {functionCall: true,id: 'gpt-4.1-mini',maxOutput: 32_768,- pricing: {- cachedInput: 0.1,- input: 0.4,- output: 1.6,- },releasedAt: '2025-04-14',vision: true,},@@ -45,10 +42,6 @@ const OpenAI: ModelProviderCard = {enabled: true,id: 'o1-mini',maxOutput: 65_536,- pricing: {- input: 3,- output: 12,- },releasedAt: '2024-09-12',},{@@ -59,10 +52,6 @@ const OpenAI: ModelProviderCard = {enabled: true,id: 'o1-2024-12-17',maxOutput: 100_000,- pricing: {- input: 15,- output: 60,- },releasedAt: '2024-12-17',vision: true,},@@ -74,10 +63,6 @@ const OpenAI: ModelProviderCard = {enabled: true,id: 'o1-preview',maxOutput: 32_768,- pricing: {- input: 15,- output: 60,- },releasedAt: '2024-09-12',},{@@ -89,10 +74,6 @@ const OpenAI: ModelProviderCard = {functionCall: true,id: 'gpt-4o-mini',maxOutput: 16_385,- pricing: {- input: 0.15,- output: 0.6,- },vision: true,},{@@ -103,10 +84,6 @@ const OpenAI: ModelProviderCard = {functionCall: true,id: 'gpt-4o-mini-search-preview',maxOutput: 16_384,- pricing: {- input: 0.15,- output: 0.6,- },releasedAt: '2024-12-01',vision: true,},@@ -118,10 +95,6 @@ const OpenAI: ModelProviderCard = {enabled: true,functionCall: true,id: 'gpt-4o-2024-11-20',- pricing: {- input: 2.5,- output: 10,- },releasedAt: '2024-11-20',vision: true,},@@ -133,10 +106,6 @@ const OpenAI: ModelProviderCard = {enabled: true,functionCall: true,id: 'gpt-4o',- pricing: {- input: 2.5,- output: 10,- },vision: true,},{@@ -146,10 +115,6 @@ const OpenAI: ModelProviderCard = {displayName: 'GPT-4o 0806',functionCall: true,id: 'gpt-4o-2024-08-06',- pricing: {- input: 2.5,- output: 10,- },releasedAt: '2024-08-06',vision: true,},@@ -160,10 +125,6 @@ const OpenAI: ModelProviderCard = {displayName: 'GPT-4o 0513',functionCall: true,id: 'gpt-4o-2024-05-13',- pricing: {- input: 5,- output: 15,- },releasedAt: '2024-05-13',vision: true,},@@ -174,10 +135,6 @@ const OpenAI: ModelProviderCard = {displayName: 'ChatGPT-4o',enabled: true,id: 'chatgpt-4o-latest',- pricing: {- input: 5,- output: 15,- },vision: true,},{@@ -187,10 +144,6 @@ const OpenAI: ModelProviderCard = {displayName: 'GPT-4 Turbo',functionCall: true,id: 'gpt-4-turbo',- pricing: {- input: 10,- output: 30,- },vision: true,},{@@ -200,10 +153,6 @@ const OpenAI: ModelProviderCard = {displayName: 'GPT-4 Turbo Vision 0409',functionCall: true,id: 'gpt-4-turbo-2024-04-09',- pricing: {- input: 10,- output: 30,- },vision: true,},{@@ -213,10 +162,6 @@ const OpenAI: ModelProviderCard = {displayName: 'GPT-4 Turbo Preview',functionCall: true,id: 'gpt-4-turbo-preview',- pricing: {- input: 10,- output: 30,- },},{contextWindowTokens: 128_000,@@ -225,10 +170,6 @@ const OpenAI: ModelProviderCard = {displayName: 'GPT-4 Turbo Preview 0125',functionCall: true,id: 'gpt-4-0125-preview',- pricing: {- input: 10,- output: 30,- },},{contextWindowTokens: 128_000,@@ -237,10 +178,6 @@ const OpenAI: ModelProviderCard = {displayName: 'GPT-4 Turbo Preview 1106',functionCall: true,id: 'gpt-4-1106-preview',- pricing: {- input: 10,- output: 30,- },},{contextWindowTokens: 8192,@@ -249,10 +186,6 @@ const OpenAI: ModelProviderCard = {displayName: 'GPT-4',functionCall: true,id: 'gpt-4',- pricing: {- input: 30,- output: 60,- },},{contextWindowTokens: 8192,@@ -261,10 +194,6 @@ const OpenAI: ModelProviderCard = {displayName: 'GPT-4 0613',functionCall: true,id: 'gpt-4-0613',- pricing: {- input: 30,- output: 60,- },},{contextWindowTokens: 32_768,@@ -274,10 +203,6 @@ const OpenAI: ModelProviderCard = {displayName: 'GPT-4 32K',functionCall: true,id: 'gpt-4-32k',- pricing: {- input: 60,- output: 120,- },},{contextWindowTokens: 32_768,@@ -287,10 +212,6 @@ const OpenAI: ModelProviderCard = {displayName: 'GPT-4 32K 0613',functionCall: true,id: 'gpt-4-32k-0613',- pricing: {- input: 60,- output: 120,- },},{contextWindowTokens: 16_385,@@ -299,10 +220,6 @@ const OpenAI: ModelProviderCard = {displayName: 'GPT-3.5 Turbo',functionCall: true,id: 'gpt-3.5-turbo',- pricing: {- input: 0.5,- output: 1.5,- },},{contextWindowTokens: 16_385,@@ -311,10 +228,6 @@ const OpenAI: ModelProviderCard = {displayName: 'GPT-3.5 Turbo 0125',functionCall: true,id: 'gpt-3.5-turbo-0125',- pricing: {- input: 0.5,- output: 1.5,- },},{contextWindowTokens: 16_385,@@ -323,10 +236,6 @@ const OpenAI: ModelProviderCard = {displayName: 'GPT-3.5 Turbo 1106',functionCall: true,id: 'gpt-3.5-turbo-1106',- pricing: {- input: 1,- output: 2,- },},{contextWindowTokens: 4096,@@ -334,10 +243,6 @@ const OpenAI: ModelProviderCard = {'GPT 3.5 Turbo,适用于各种文本生成和理解任务,Currently points to gpt-3.5-turbo-0125',displayName: 'GPT-3.5 Turbo Instruct',id: 'gpt-3.5-turbo-instruct',- pricing: {- input: 1.5,- output: 2,- },},],checkModel: 'gpt-4.1-nano',diff --git a/src/config/modelProviders/openrouter.ts b/src/config/modelProviders/openrouter.tsindex b4906961910..c355c87eb3e 100644--- a/src/config/modelProviders/openrouter.ts+++ b/src/config/modelProviders/openrouter.ts@@ -21,10 +21,6 @@ const OpenRouter: ModelProviderCard = {enabled: true,id: 'openai/o1-mini',maxOutput: 65_536,- pricing: {- input: 3,- output: 12,- },releasedAt: '2024-09-12',},{@@ -35,10 +31,6 @@ const OpenRouter: ModelProviderCard = {enabled: true,id: 'openai/o1',maxOutput: 100_000,- pricing: {- input: 15,- output: 60,- },releasedAt: '2024-12-17',vision: true,},@@ -50,10 +42,6 @@ const OpenRouter: ModelProviderCard = {enabled: true,id: 'openai/o1-preview',maxOutput: 32_768,- pricing: {- input: 15,- output: 60,- },releasedAt: '2024-09-12',},{@@ -65,10 +53,6 @@ const OpenRouter: ModelProviderCard = {functionCall: true,id: 'openai/gpt-4o-mini',maxOutput: 16_385,- pricing: {- input: 0.15,- output: 0.6,- },vision: true,},{@@ -79,10 +63,6 @@ const OpenRouter: ModelProviderCard = {enabled: true,functionCall: true,id: 'openai/gpt-4o',- pricing: {- input: 2.5,- output: 10,- },vision: true,},{@@ -94,12 +74,6 @@ const OpenRouter: ModelProviderCard = {functionCall: true,id: 'anthropic/claude-3-haiku',maxOutput: 4096,- pricing: {- cachedInput: 0.025,- input: 0.25,- output: 1.25,- writeCacheInput: 0.3125,- },releasedAt: '2024-03-07',vision: true,},@@ -112,12 +86,6 @@ const OpenRouter: ModelProviderCard = {functionCall: true,id: 'anthropic/claude-3.5-haiku',maxOutput: 8192,- pricing: {- cachedInput: 0.1,- input: 1,- output: 5,- writeCacheInput: 1.25,- },releasedAt: '2024-11-05',},{@@ -129,12 +97,6 @@ const OpenRouter: ModelProviderCard = {functionCall: true,id: 'anthropic/claude-3.5-sonnet',maxOutput: 8192,- pricing: {- cachedInput: 0.3,- input: 3,- output: 15,- writeCacheInput: 3.75,- },releasedAt: '2024-06-20',vision: true,},@@ -147,12 +109,6 @@ const OpenRouter: ModelProviderCard = {functionCall: true,id: 'anthropic/claude-3-opus',maxOutput: 4096,- pricing: {- cachedInput: 1.5,- input: 15,- output: 75,- writeCacheInput: 18.75,- },releasedAt: '2024-02-29',vision: true,},@@ -164,10 +120,6 @@ const OpenRouter: ModelProviderCard = {functionCall: true,id: 'google/gemini-flash-1.5',maxOutput: 8192,- pricing: {- input: 0.075,- output: 0.3,- },vision: true,},{@@ -179,11 +131,6 @@ const OpenRouter: ModelProviderCard = {functionCall: true,id: 'google/gemini-2.0-flash-001',maxOutput: 8192,- pricing: {- cachedInput: 0.025,- input: 0.1,- output: 0.4,- },releasedAt: '2025-02-05',vision: true,},@@ -195,10 +142,6 @@ const OpenRouter: ModelProviderCard = {functionCall: true,id: 'google/gemini-pro-1.5',maxOutput: 8192,- pricing: {- input: 3.5,- output: 10.5,- },vision: true,},{@@ -209,10 +152,6 @@ const OpenRouter: ModelProviderCard = {enabled: true,functionCall: true,id: 'deepseek/deepseek-chat',- pricing: {- input: 0.14,- output: 0.28,- },releasedAt: '2024-09-05',},{@@ -222,10 +161,6 @@ const OpenRouter: ModelProviderCard = {enabled: true,functionCall: false,id: 'deepseek/deepseek-r1',- pricing: {- input: 3,- output: 8,- },releasedAt: '2025-01-20',},{@@ -244,10 +179,6 @@ const OpenRouter: ModelProviderCard = {displayName: 'Llama 3.2 11B Vision',enabled: true,id: 'meta-llama/llama-3.2-11b-vision-instruct',- pricing: {- input: 0.162,- output: 0.162,- },vision: true,},{@@ -257,10 +188,6 @@ const OpenRouter: ModelProviderCard = {displayName: 'Llama 3.2 90B Vision',enabled: true,id: 'meta-llama/llama-3.2-90b-vision-instruct',- pricing: {- input: 0.4,- output: 0.4,- },vision: true,},{@@ -271,10 +198,6 @@ const OpenRouter: ModelProviderCard = {enabled: true,functionCall: true,id: 'meta-llama/llama-3.3-70b-instruct',- pricing: {- input: 0.12,- output: 0.3,- },},{contextWindowTokens: 32_768,diff --git a/src/config/modelProviders/ppio.ts b/src/config/modelProviders/ppio.tsindex 276bb6c6b03..4405e441cdf 100644--- a/src/config/modelProviders/ppio.ts+++ b/src/config/modelProviders/ppio.ts@@ -9,11 +9,6 @@ const PPIO: ModelProviderCard = {displayName: 'DeepSeek: DeepSeek R1 (community)',enabled: true,id: 'deepseek/deepseek-r1/community',- pricing: {- currency: 'CNY',- input: 4,- output: 16,- },},{contextWindowTokens: 64_000,@@ -22,11 +17,6 @@ const PPIO: ModelProviderCard = {displayName: 'DeepSeek: DeepSeek V3 (community)',enabled: true,id: 'deepseek/deepseek-v3/community',- pricing: {- currency: 'CNY',- input: 1,- output: 2,- },},{contextWindowTokens: 64_000,@@ -35,11 +25,6 @@ const PPIO: ModelProviderCard = {displayName: 'DeepSeek R1',enabled: true,id: 'deepseek/deepseek-r1',- pricing: {- currency: 'CNY',- input: 4,- output: 16,- },},{contextWindowTokens: 64_000,@@ -48,11 +33,6 @@ const PPIO: ModelProviderCard = {displayName: 'DeepSeek V3',enabled: true,id: 'deepseek/deepseek-v3',- pricing: {- currency: 'CNY',- input: 1,- output: 2,- },},{contextWindowTokens: 32_000,@@ -61,11 +41,6 @@ const PPIO: ModelProviderCard = {displayName: 'DeepSeek R1 Distill Llama 70B',enabled: true,id: 'deepseek/deepseek-r1-distill-llama-70b',- pricing: {- currency: 'CNY',- input: 5.8,- output: 5.8,- },},{contextWindowTokens: 64_000,@@ -74,11 +49,6 @@ const PPIO: ModelProviderCard = {displayName: 'DeepSeek: DeepSeek R1 Distill Qwen 32B',enabled: true,id: 'deepseek/deepseek-r1-distill-qwen-32b',- pricing: {- currency: 'CNY',- input: 2.18,- output: 2.18,- },},{contextWindowTokens: 64_000,@@ -87,11 +57,6 @@ const PPIO: ModelProviderCard = {displayName: 'DeepSeek: DeepSeek R1 Distill Qwen 14B',enabled: true,id: 'deepseek/deepseek-r1-distill-qwen-14b',- pricing: {- currency: 'CNY',- input: 1,- output: 1,- },},{contextWindowTokens: 32_000,@@ -100,11 +65,6 @@ const PPIO: ModelProviderCard = {displayName: 'DeepSeek: DeepSeek R1 Distill Llama 8B',enabled: true,id: 'deepseek/deepseek-r1-distill-llama-8b',- pricing: {- currency: 'CNY',- input: 0.3,- output: 0.3,- },},{contextWindowTokens: 32_768,@@ -113,11 +73,6 @@ const PPIO: ModelProviderCard = {displayName: 'qwen/qwen-2.5-72b-instruct',enabled: true,id: 'qwen/qwen-2.5-72b-instruct',- pricing: {- currency: 'CNY',- input: 2.75,- output: 2.88,- },},{contextWindowTokens: 32_768,@@ -126,11 +81,6 @@ const PPIO: ModelProviderCard = {displayName: 'qwen/qwen-2-vl-72b-instruct',enabled: true,id: 'qwen/qwen-2-vl-72b-instruct',- pricing: {- currency: 'CNY',- input: 4.5,- output: 4.5,- },},{contextWindowTokens: 32_768,@@ -138,11 +88,6 @@ const PPIO: ModelProviderCard = {displayName: 'meta-llama/llama-3.2-3b-instruct',enabled: true,id: 'meta-llama/llama-3.2-3b-instruct',- pricing: {- currency: 'CNY',- input: 0.216,- output: 0.36,- },},{contextWindowTokens: 32_000,@@ -151,11 +96,6 @@ const PPIO: ModelProviderCard = {displayName: 'qwen/qwen2.5-32b-instruct',enabled: true,id: 'qwen/qwen2.5-32b-instruct',- pricing: {- currency: 'CNY',- input: 1.26,- output: 1.26,- },},{contextWindowTokens: 14_336,@@ -164,11 +104,6 @@ const PPIO: ModelProviderCard = {displayName: 'baichuan/baichuan2-13b-chat',enabled: true,id: 'baichuan/baichuan2-13b-chat',- pricing: {- currency: 'CNY',- input: 1.75,- output: 1.75,- },},{contextWindowTokens: 32_768,@@ -177,11 +112,6 @@ const PPIO: ModelProviderCard = {displayName: 'meta-llama/llama-3.1-70b-instruct',enabled: true,id: 'meta-llama/llama-3.1-70b-instruct',- pricing: {- currency: 'CNY',- input: 2.45,- output: 2.82,- },},{contextWindowTokens: 32_768,@@ -190,11 +120,6 @@ const PPIO: ModelProviderCard = {displayName: 'meta-llama/llama-3.1-8b-instruct',enabled: true,id: 'meta-llama/llama-3.1-8b-instruct',- pricing: {- currency: 'CNY',- input: 0.4,- output: 0.4,- },},{contextWindowTokens: 16_384,@@ -203,11 +128,6 @@ const PPIO: ModelProviderCard = {displayName: '01-ai/yi-1.5-34b-chat',enabled: true,id: '01-ai/yi-1.5-34b-chat',- pricing: {- currency: 'CNY',- input: 1.1,- output: 1.1,- },},{contextWindowTokens: 16_384,@@ -216,11 +136,6 @@ const PPIO: ModelProviderCard = {displayName: '01-ai/yi-1.5-9b-chat',enabled: true,id: '01-ai/yi-1.5-9b-chat',- pricing: {- currency: 'CNY',- input: 0.4,- output: 0.4,- },},{contextWindowTokens: 32_768,@@ -228,11 +143,6 @@ const PPIO: ModelProviderCard = {displayName: 'thudm/glm-4-9b-chat',enabled: true,id: 'thudm/glm-4-9b-chat',- pricing: {- currency: 'CNY',- input: 0.5,- output: 0.5,- },},{contextWindowTokens: 32_768,@@ -241,11 +151,6 @@ const PPIO: ModelProviderCard = {displayName: 'qwen/qwen-2-7b-instruct',enabled: true,id: 'qwen/qwen-2-7b-instruct',- pricing: {- currency: 'CNY',- input: 0.32,- output: 0.32,- },},], // Will be updated with model listcheckModel: 'deepseek/deepseek-r1-distill-qwen-32b',diff --git a/src/config/modelProviders/qwen.ts b/src/config/modelProviders/qwen.tsindex 6cb94ef916a..623be9b6479 100644--- a/src/config/modelProviders/qwen.ts+++ b/src/config/modelProviders/qwen.ts@@ -10,11 +10,6 @@ const Qwen: ModelProviderCard = {enabled: true,functionCall: true,id: 'qwen-turbo-latest',- pricing: {- currency: 'CNY',- input: 0.3,- output: 0.6,- },},{contextWindowTokens: 131_072,@@ -23,11 +18,6 @@ const Qwen: ModelProviderCard = {enabled: true,functionCall: true,id: 'qwen-plus-latest',- pricing: {- currency: 'CNY',- input: 0.8,- output: 2,- },},{contextWindowTokens: 32_768,@@ -37,11 +27,6 @@ const Qwen: ModelProviderCard = {enabled: true,functionCall: true,id: 'qwen-max-latest',- pricing: {- currency: 'CNY',- input: 20,- output: 60,- },},{contextWindowTokens: 1_000_000,@@ -49,11 +34,6 @@ const Qwen: ModelProviderCard = {'通义千问超大规模语言模型,支持长文本上下文,以及基于长文档、多文档等多个场景的对话功能。',displayName: 'Qwen Long',id: 'qwen-long',- pricing: {- currency: 'CNY',- input: 0.5,- output: 2,- },},{contextWindowTokens: 32_000,@@ -62,11 +42,6 @@ const Qwen: ModelProviderCard = {displayName: 'Qwen VL Plus',enabled: true,id: 'qwen-vl-plus-latest',- pricing: {- currency: 'CNY',- input: 1.5,- output: 4.5,- },vision: true,},{@@ -76,11 +51,6 @@ const Qwen: ModelProviderCard = {displayName: 'Qwen VL Max',enabled: true,id: 'qwen-vl-max-latest',- pricing: {- currency: 'CNY',- input: 3,- output: 9,- },vision: true,},{@@ -89,11 +59,6 @@ const Qwen: ModelProviderCard = {'通义千问OCR是文字提取专有模型,专注于文档、表格、试题、手写体文字等类型图像的文字提取能力。它能够识别多种文字,目前支持的语言有:汉语、英语、法语、日语、韩语、德语、俄语、意大利语、越南语、阿拉伯语。',displayName: 'Qwen VL OCR',id: 'qwen-vl-ocr-latest',- pricing: {- currency: 'CNY',- input: 5,- output: 5,- },vision: true,},{@@ -101,55 +66,30 @@ const Qwen: ModelProviderCard = {description: '通义千问数学模型是专门用于数学解题的语言模型。',displayName: 'Qwen Math Turbo',id: 'qwen-math-turbo-latest',- pricing: {- currency: 'CNY',- input: 2,- output: 6,- },},{contextWindowTokens: 4096,description: '通义千问数学模型是专门用于数学解题的语言模型。',displayName: 'Qwen Math Plus',id: 'qwen-math-plus-latest',- pricing: {- currency: 'CNY',- input: 4,- output: 12,- },},{contextWindowTokens: 131_072,description: '通义千问代码模型。',displayName: 'Qwen Coder Turbo',id: 'qwen-coder-turbo-latest',- pricing: {- currency: 'CNY',- input: 2,- output: 6,- },},{contextWindowTokens: 131_072,description: '通义千问代码模型。',displayName: 'Qwen Coder Plus',id: 'qwen-coder-plus-latest',- pricing: {- currency: 'CNY',- input: 3.5,- output: 7,- },},{contextWindowTokens: 32_768,description: 'QwQ模型是由 Qwen 团队开发的实验性研究模型,专注于增强 AI 推理能力。',displayName: 'QwQ 32B Preview',id: 'qwq-32b-preview',- pricing: {- currency: 'CNY',- input: 3.5,- output: 7,- },},{contextWindowTokens: 32_768,@@ -157,11 +97,6 @@ const Qwen: ModelProviderCard = {'QVQ模型是由 Qwen 团队开发的实验性研究模型,专注于提升视觉推理能力,尤其在数学推理领域。',displayName: 'QVQ 72B Preview',id: 'qvq-72b-preview',- pricing: {- currency: 'CNY',- input: 12,- output: 36,- },releasedAt: '2024-12-25',vision: true,},@@ -171,11 +106,6 @@ const Qwen: ModelProviderCard = {displayName: 'Qwen2.5 7B',functionCall: true,id: 'qwen2.5-7b-instruct',- pricing: {- currency: 'CNY',- input: 0.5,- output: 1,- },},{contextWindowTokens: 131_072,@@ -183,11 +113,6 @@ const Qwen: ModelProviderCard = {displayName: 'Qwen2.5 14B',functionCall: true,id: 'qwen2.5-14b-instruct',- pricing: {- currency: 'CNY',- input: 1,- output: 3,- },},{contextWindowTokens: 131_072,@@ -195,11 +120,6 @@ const Qwen: ModelProviderCard = {displayName: 'Qwen2.5 32B',functionCall: true,id: 'qwen2.5-32b-instruct',- pricing: {- currency: 'CNY',- input: 3.5,- output: 7,- },},{contextWindowTokens: 131_072,@@ -207,11 +127,6 @@ const Qwen: ModelProviderCard = {displayName: 'Qwen2.5 72B',functionCall: true,id: 'qwen2.5-72b-instruct',- pricing: {- currency: 'CNY',- input: 4,- output: 12,- },},{contextWindowTokens: 1_000_000,@@ -219,66 +134,36 @@ const Qwen: ModelProviderCard = {displayName: 'Qwen2.5 14B 1M',functionCall: true,id: 'qwen2.5-14b-instruct-1m',- pricing: {- currency: 'CNY',- input: 1,- output: 3,- },},{contextWindowTokens: 4096,description: 'Qwen-Math 模型具有强大的数学解题能力。',displayName: 'Qwen2.5 Math 7B',id: 'qwen2.5-math-7b-instruct',- pricing: {- currency: 'CNY',- input: 1,- output: 2,- },},{contextWindowTokens: 4096,description: 'Qwen-Math 模型具有强大的数学解题能力。',displayName: 'Qwen2.5 Math 72B',id: 'qwen2.5-math-72b-instruct',- pricing: {- currency: 'CNY',- input: 4,- output: 12,- },},{contextWindowTokens: 131_072,description: '通义千问代码模型开源版。',displayName: 'Qwen2.5 Coder 7B',id: 'qwen2.5-coder-7b-instruct',- pricing: {- currency: 'CNY',- input: 1,- output: 2,- },},{contextWindowTokens: 131_072,description: '通义千问代码模型开源版。',displayName: 'Qwen2.5 Coder 32B',id: 'qwen2.5-coder-32b-instruct',- pricing: {- currency: 'CNY',- input: 3.5,- output: 7,- },},{contextWindowTokens: 8000,description: '以 Qwen-7B 语言模型初始化,添加图像模型,图像输入分辨率为448的预训练模型。',displayName: 'Qwen VL',id: 'qwen-vl-v1',- pricing: {- currency: 'CNY',- input: 0,- output: 0,- },vision: true,},{@@ -286,11 +171,6 @@ const Qwen: ModelProviderCard = {description: '通义千问VL支持灵活的交互方式,包括多图、多轮问答、创作等能力的模型。',displayName: 'Qwen VL Chat',id: 'qwen-vl-chat-v1',- pricing: {- currency: 'CNY',- input: 0,- output: 0,- },vision: true,},{@@ -299,11 +179,6 @@ const Qwen: ModelProviderCard = {'指令跟随、数学、解题、代码整体提升,万物识别能力提升,支持多样格式直接精准定位视觉元素,支持对长视频文件(最长10分钟)进行理解和秒级别的事件时刻定位,能理解时间先后和快慢,基于解析和定位能力支持操控OS或Mobile的Agent,关键信息抽取能力和Json格式输出能力强,此版本为72B版本,本系列能力最强的版本。',displayName: 'Qwen2.5 VL 72B',id: 'qwen2.5-vl-72b-instruct',- pricing: {- currency: 'CNY',- input: 16,- output: 48,- },releasedAt: '2025-01-26',vision: true,},@@ -313,11 +188,6 @@ const Qwen: ModelProviderCard = {'DeepSeek-R1 在后训练阶段大规模使用了强化学习技术,在仅有极少标注数据的情况下,极大提升了模型推理能力。在数学、代码、自然语言推理等任务上,性能较高,能力较强。',displayName: 'DeepSeek R1',id: 'deepseek-r1',- pricing: {- currency: 'CNY',- input: 0,- output: 0,- },releasedAt: '2025-01-27',},{@@ -326,11 +196,6 @@ const Qwen: ModelProviderCard = {'DeepSeek-V3 为自研 MoE 模型,671B 参数,激活 37B,在 14.8T token 上进行了预训练,在长文本、代码、数学、百科、中文能力上表现优秀。',displayName: 'DeepSeek V3',id: 'deepseek-v3',- pricing: {- currency: 'CNY',- input: 0,- output: 0,- },releasedAt: '2025-01-27',},{@@ -339,11 +204,6 @@ const Qwen: ModelProviderCard = {'DeepSeek-R1-Distill-Qwen-1.5B 是一个基于 Qwen2.5-Math-1.5B 的蒸馏大型语言模型,使用了 DeepSeek R1 的输出。',displayName: 'DeepSeek R1 Distill Qwen 1.5B',id: 'deepseek-r1-distill-qwen-1.5b',- pricing: {- currency: 'CNY',- input: 0,- output: 0,- },releasedAt: '2025-02-05',},{@@ -352,11 +212,6 @@ const Qwen: ModelProviderCard = {'DeepSeek-R1-Distill-Qwen-7B 是一个基于 Qwen2.5-Math-7B 的蒸馏大型语言模型,使用了 DeepSeek R1 的输出。',displayName: 'DeepSeek R1 Distill Qwen 7B',id: 'deepseek-r1-distill-qwen-7b',- pricing: {- currency: 'CNY',- input: 0,- output: 0,- },releasedAt: '2025-02-05',},{@@ -365,11 +220,6 @@ const Qwen: ModelProviderCard = {'DeepSeek-R1-Distill-Qwen-14B 是一个基于 Qwen2.5-14B 的蒸馏大型语言模型,使用了 DeepSeek R1 的输出。',displayName: 'DeepSeek R1 Distill Qwen 14B',id: 'deepseek-r1-distill-qwen-14b',- pricing: {- currency: 'CNY',- input: 0,- output: 0,- },releasedAt: '2025-02-05',},{@@ -378,11 +228,6 @@ const Qwen: ModelProviderCard = {'DeepSeek-R1-Distill-Qwen-32B 是一个基于 Qwen2.5-32B 的蒸馏大型语言模型,使用了 DeepSeek R1 的输出。',displayName: 'DeepSeek R1 Distill Qwen 32B',id: 'deepseek-r1-distill-qwen-32b',- pricing: {- currency: 'CNY',- input: 0,- output: 0,- },releasedAt: '2025-02-05',},{@@ -391,11 +236,6 @@ const Qwen: ModelProviderCard = {'DeepSeek-R1-Distill-Llama-8B 是一个基于 Llama-3.1-8B 的蒸馏大型语言模型,使用了 DeepSeek R1 的输出。',displayName: 'DeepSeek R1 Distill Llama 8B',id: 'deepseek-r1-distill-llama-8b',- pricing: {- currency: 'CNY',- input: 0,- output: 0,- },releasedAt: '2025-02-05',},{@@ -404,11 +244,6 @@ const Qwen: ModelProviderCard = {'DeepSeek-R1-Distill-Llama-70B 是一个基于 Llama-3.3-70B-Instruct 的蒸馏大型语言模型,使用了 DeepSeek R1 的输出。',displayName: 'DeepSeek R1 Distill Llama 70B',id: 'deepseek-r1-distill-llama-70b',- pricing: {- currency: 'CNY',- input: 0,- output: 0,- },releasedAt: '2025-02-05',},],diff --git a/src/config/modelProviders/sensenova.ts b/src/config/modelProviders/sensenova.tsindex ba95d81adee..51866e874a9 100644--- a/src/config/modelProviders/sensenova.ts+++ b/src/config/modelProviders/sensenova.ts@@ -12,11 +12,6 @@ const SenseNova: ModelProviderCard = {enabled: true,functionCall: true,id: 'SenseChat-5',- pricing: {- currency: 'CNY',- input: 40,- output: 100,- },},/*// Not compatible with local mode (Not support Base64 Image)@@ -25,11 +20,6 @@ const SenseNova: ModelProviderCard = {displayName: 'SenseChat 5.5 Vision',enabled: true,id: 'SenseChat-Vision',- pricing: {- currency: 'CNY',- input: 100,- output: 100,- },tokens: 16_384,vision: true,},@@ -40,11 +30,6 @@ const SenseNova: ModelProviderCard = {displayName: 'SenseChat 5.0 Turbo',enabled: true,id: 'SenseChat-Turbo',- pricing: {- currency: 'CNY',- input: 2,- output: 5,- },},{contextWindowTokens: 32_768,@@ -52,11 +37,6 @@ const SenseNova: ModelProviderCard = {'32K上下文长度,在粤语的对话理解上超越了GPT-4,在知识、推理、数学及代码编写等多个领域均能与GPT-4 Turbo相媲美',displayName: 'SenseChat 5.0 Cantonese',id: 'SenseChat-5-Cantonese',- pricing: {- currency: 'CNY',- input: 27,- output: 27,- },},{contextWindowTokens: 131_072,@@ -64,11 +44,6 @@ const SenseNova: ModelProviderCard = {displayName: 'SenseChat 4.0 128K',enabled: true,id: 'SenseChat-128K',- pricing: {- currency: 'CNY',- input: 60,- output: 60,- },},{contextWindowTokens: 32_768,@@ -76,11 +51,6 @@ const SenseNova: ModelProviderCard = {displayName: 'SenseChat 4.0 32K',enabled: true,id: 'SenseChat-32K',- pricing: {- currency: 'CNY',- input: 36,- output: 36,- },},{contextWindowTokens: 4096,@@ -88,33 +58,18 @@ const SenseNova: ModelProviderCard = {displayName: 'SenseChat 4.0 4K',enabled: true,id: 'SenseChat',- pricing: {- currency: 'CNY',- input: 12,- output: 12,- },},{contextWindowTokens: 8192,description: '标准版模型,8K上下文长度,高响应速度',displayName: 'SenseChat Character',id: 'SenseChat-Character',- pricing: {- currency: 'CNY',- input: 12,- output: 12,- },},{contextWindowTokens: 32_768,description: '高级版模型,32K上下文长度,能力全面提升,支持中/英文对话',displayName: 'SenseChat Character Pro',id: 'SenseChat-Character-Pro',- pricing: {- currency: 'CNY',- input: 15,- output: 15,- },},],checkModel: 'SenseChat-Turbo',diff --git a/src/config/modelProviders/siliconcloud.ts b/src/config/modelProviders/siliconcloud.tsindex e773245ba0a..7a516bba411 100644--- a/src/config/modelProviders/siliconcloud.ts+++ b/src/config/modelProviders/siliconcloud.ts@@ -10,11 +10,6 @@ const SiliconCloud: ModelProviderCard = {displayName: 'DeepSeek R1',enabled: true,id: 'deepseek-ai/DeepSeek-R1',- pricing: {- currency: 'CNY',- input: 4,- output: 16,- },},{contextWindowTokens: 65_536,@@ -24,12 +19,6 @@ const SiliconCloud: ModelProviderCard = {enabled: true,functionCall: true,id: 'deepseek-ai/DeepSeek-V3',- pricing: {- // 2.9 涨价- currency: 'CNY',- input: 1,- output: 2,- },},{contextWindowTokens: 65_536,@@ -37,11 +26,6 @@ const SiliconCloud: ModelProviderCard = {'DeepSeek-R1 是一款强化学习(RL)驱动的推理模型,解决了模型中的重复性和可读性问题。在 RL 之前,DeepSeek-R1 引入了冷启动数据,进一步优化了推理性能。它在数学、代码和推理任务中与 OpenAI-o1 表现相当,并且通过精心设计的训练方法,提升了整体效果。',displayName: 'DeepSeek R1 (Pro)',id: 'Pro/deepseek-ai/DeepSeek-R1',- pricing: {- currency: 'CNY',- input: 4,- output: 16,- },},{contextWindowTokens: 65_536,@@ -50,11 +34,6 @@ const SiliconCloud: ModelProviderCard = {displayName: 'DeepSeek V3 (Pro)',functionCall: true,id: 'Pro/deepseek-ai/DeepSeek-V3',- pricing: {- currency: 'CNY',- input: 2,- output: 8,- },},{contextWindowTokens: 32_768,@@ -63,11 +42,6 @@ const SiliconCloud: ModelProviderCard = {displayName: 'DeepSeek R1 Distill Llama 70B',enabled: true,id: 'deepseek-ai/DeepSeek-R1-Distill-Llama-70B',- pricing: {- currency: 'CNY',- input: 4.13,- output: 4.13,- },},{contextWindowTokens: 32_768,@@ -76,11 +50,6 @@ const SiliconCloud: ModelProviderCard = {displayName: 'DeepSeek R1 Distill Qwen 32B',enabled: true,id: 'deepseek-ai/DeepSeek-R1-Distill-Qwen-32B',- pricing: {- currency: 'CNY',- input: 1.26,- output: 1.26,- },},{contextWindowTokens: 32_768,@@ -89,11 +58,6 @@ const SiliconCloud: ModelProviderCard = {displayName: 'DeepSeek R1 Distill Qwen 14B',enabled: true,id: 'deepseek-ai/DeepSeek-R1-Distill-Qwen-14B',- pricing: {- currency: 'CNY',- input: 0.7,- output: 0.7,- },},{contextWindowTokens: 32_768,@@ -102,11 +66,6 @@ const SiliconCloud: ModelProviderCard = {displayName: 'DeepSeek R1 Distill Llama 8B (Free)',enabled: true,id: 'deepseek-ai/DeepSeek-R1-Distill-Llama-8B',- pricing: {- currency: 'CNY',- input: 0,- output: 0,- },},{contextWindowTokens: 32_768,@@ -115,11 +74,6 @@ const SiliconCloud: ModelProviderCard = {displayName: 'DeepSeek R1 Distill Qwen 7B (Free)',enabled: true,id: 'deepseek-ai/DeepSeek-R1-Distill-Qwen-7B',- pricing: {- currency: 'CNY',- input: 0,- output: 0,- },},{contextWindowTokens: 32_768,@@ -127,11 +81,6 @@ const SiliconCloud: ModelProviderCard = {'DeepSeek-R1-Distill-Qwen-1.5B 是基于 Qwen2.5-Math-1.5B 通过知识蒸馏得到的模型。该模型使用 DeepSeek-R1 生成的 80 万个精选样本进行微调,在多个基准测试中展现出不错的性能。作为一个轻量级模型,在 MATH-500 上达到了 83.9% 的准确率,在 AIME 2024 上达到了 28.9% 的通过率,在 CodeForces 上获得了 954 的评分,显示出超出其参数规模的推理能力。',displayName: 'DeepSeek-R1-Distill-Qwen-1.5B (Free)',id: 'deepseek-ai/DeepSeek-R1-Distill-Qwen-1.5B',- pricing: {- currency: 'CNY',- input: 0,- output: 0,- },},{contextWindowTokens: 32_768,@@ -141,11 +90,6 @@ const SiliconCloud: ModelProviderCard = {enabled: true,functionCall: true,id: 'deepseek-ai/DeepSeek-V2.5',- pricing: {- currency: 'CNY',- input: 1.33,- output: 1.33,- },},{contextWindowTokens: 4096,@@ -153,11 +97,6 @@ const SiliconCloud: ModelProviderCard = {'DeepSeek-VL2 是一个基于 DeepSeekMoE-27B 开发的混合专家(MoE)视觉语言模型,采用稀疏激活的 MoE 架构,在仅激活 4.5B 参数的情况下实现了卓越性能。该模型在视觉问答、光学字符识别、文档/表格/图表理解和视觉定位等多个任务中表现优异。',displayName: 'DeepSeek VL2',id: 'deepseek-ai/deepseek-vl2',- pricing: {- currency: 'CNY',- input: 0.99,- output: 0.99,- },vision: true,},{@@ -167,11 +106,6 @@ const SiliconCloud: ModelProviderCard = {displayName: 'QVQ 72B Preview',enabled: true,id: 'Qwen/QVQ-72B-Preview',- pricing: {- currency: 'CNY',- input: 9.9,- output: 9.9,- },vision: true,},{@@ -181,11 +115,6 @@ const SiliconCloud: ModelProviderCard = {displayName: 'QwQ 32B Preview',enabled: true,id: 'Qwen/QwQ-32B-Preview',- pricing: {- currency: 'CNY',- input: 1.26,- output: 1.26,- },},{contextWindowTokens: 32_768,@@ -195,11 +124,6 @@ const SiliconCloud: ModelProviderCard = {enabled: true,functionCall: true,id: 'Qwen/Qwen2.5-7B-Instruct',- pricing: {- currency: 'CNY',- input: 0,- output: 0,- },},{contextWindowTokens: 32_768,@@ -207,11 +131,6 @@ const SiliconCloud: ModelProviderCard = {'Qwen2.5-7B-Instruct 是阿里云发布的最新大语言模型系列之一。该 7B 模型在编码和数学等领域具有显著改进的能力。该模型还提供了多语言支持,覆盖超过 29 种语言,包括中文、英文等。模型在指令跟随、理解结构化数据以及生成结构化输出(尤其是 JSON)方面都有显著提升',displayName: 'Qwen2.5 7B Instruct (LoRA)',id: 'LoRA/Qwen/Qwen2.5-7B-Instruct',- pricing: {- currency: 'CNY',- input: 0.53,- output: 0.53,- },},{contextWindowTokens: 32_768,@@ -220,11 +139,6 @@ const SiliconCloud: ModelProviderCard = {displayName: 'Qwen2.5 7B Instruct (Pro)',functionCall: true,id: 'Pro/Qwen/Qwen2.5-7B-Instruct',- pricing: {- currency: 'CNY',- input: 0.35,- output: 0.35,- },},{contextWindowTokens: 32_768,@@ -233,11 +147,6 @@ const SiliconCloud: ModelProviderCard = {displayName: 'Qwen2.5 14B Instruct',functionCall: true,id: 'Qwen/Qwen2.5-14B-Instruct',- pricing: {- currency: 'CNY',- input: 0.7,- output: 0.7,- },},{contextWindowTokens: 32_768,@@ -246,11 +155,6 @@ const SiliconCloud: ModelProviderCard = {displayName: 'Qwen2.5 32B Instruct',functionCall: true,id: 'Qwen/Qwen2.5-32B-Instruct',- pricing: {- currency: 'CNY',- input: 1.26,- output: 1.26,- },},{contextWindowTokens: 32_768,@@ -259,11 +163,6 @@ const SiliconCloud: ModelProviderCard = {displayName: 'Qwen2.5 72B Instruct',functionCall: true,id: 'Qwen/Qwen2.5-72B-Instruct',- pricing: {- currency: 'CNY',- input: 4.13,- output: 4.13,- },},{contextWindowTokens: 32_768,@@ -271,11 +170,6 @@ const SiliconCloud: ModelProviderCard = {'Qwen2.5-72B-Instruct 是阿里云发布的最新大语言模型系列之一。该 72B 模型在编码和数学等领域具有显著改进的能力。该模型还提供了多语言支持,覆盖超过 29 种语言,包括中文、英文等。模型在指令跟随、理解结构化数据以及生成结构化输出(尤其是 JSON)方面都有显著提升',displayName: 'Qwen2.5 72B Instruct (LoRA)',id: 'LoRA/Qwen/Qwen2.5-72B-Instruct',- pricing: {- currency: 'CNY',- input: 6.2,- output: 6.2,- },},{contextWindowTokens: 32_768,@@ -284,11 +178,6 @@ const SiliconCloud: ModelProviderCard = {displayName: 'Qwen2.5 72B Instruct (Vendor-A)',functionCall: true,id: 'Vendor-A/Qwen/Qwen2.5-72B-Instruct',- pricing: {- currency: 'CNY',- input: 1,- output: 1,- },},{contextWindowTokens: 131_072,@@ -298,11 +187,6 @@ const SiliconCloud: ModelProviderCard = {enabled: true,functionCall: true,id: 'Qwen/Qwen2.5-72B-Instruct-128K',- pricing: {- currency: 'CNY',- input: 4.13,- output: 4.13,- },},{contextWindowTokens: 32_768,@@ -310,11 +194,6 @@ const SiliconCloud: ModelProviderCard = {'Qwen2.5-Coder-7B-Instruct 是阿里云发布的代码特定大语言模型系列的最新版本。该模型在 Qwen2.5 的基础上,通过 5.5 万亿个 tokens 的训练,显著提升了代码生成、推理和修复能力。它不仅增强了编码能力,还保持了数学和通用能力的优势。模型为代码智能体等实际应用提供了更全面的基础',displayName: 'Qwen2.5 Coder 7B Instruct (Free)',id: 'Qwen/Qwen2.5-Coder-7B-Instruct',- pricing: {- currency: 'CNY',- input: 0,- output: 0,- },},{contextWindowTokens: 32_768,@@ -322,11 +201,6 @@ const SiliconCloud: ModelProviderCard = {'Qwen2.5-Coder-7B-Instruct 是阿里云发布的代码特定大语言模型系列的最新版本。该模型在 Qwen2.5 的基础上,通过 5.5 万亿个 tokens 的训练,显著提升了代码生成、推理和修复能力。它不仅增强了编码能力,还保持了数学和通用能力的优势。模型为代码智能体等实际应用提供了更全面的基础',displayName: 'Qwen2.5 Coder 7B Instruct (Pro)',id: 'Pro/Qwen/Qwen2.5-Coder-7B-Instruct',- pricing: {- currency: 'CNY',- input: 0.35,- output: 0.35,- },},{contextWindowTokens: 32_768,@@ -334,11 +208,6 @@ const SiliconCloud: ModelProviderCard = {'Qwen2.5-Coder-32B-Instruct 是基于 Qwen2.5 开发的代码特定大语言模型。该模型通过 5.5 万亿 tokens 的训练,在代码生成、代码推理和代码修复方面都取得了显著提升。它是当前最先进的开源代码语言模型,编码能力可与 GPT-4 相媲美。模型不仅增强了编码能力,还保持了在数学和通用能力方面的优势,并支持长文本处理',displayName: 'Qwen2.5 Coder 32B Instruct',id: 'Qwen/Qwen2.5-Coder-32B-Instruct',- pricing: {- currency: 'CNY',- input: 1.26,- output: 1.26,- },},{contextWindowTokens: 32_768,@@ -346,11 +215,6 @@ const SiliconCloud: ModelProviderCard = {'Qwen2-1.5B-Instruct 是 Qwen2 系列中的指令微调大语言模型,参数规模为 1.5B。该模型基于 Transformer 架构,采用了 SwiGLU 激活函数、注意力 QKV 偏置和组查询注意力等技术。它在语言理解、生成、多语言能力、编码、数学和推理等多个基准测试中表现出色,超越了大多数开源模型。与 Qwen1.5-1.8B-Chat 相比,Qwen2-1.5B-Instruct 在 MMLU、HumanEval、GSM8K、C-Eval 和 IFEval 等测试中均显示出显著的性能提升,尽管参数量略少',displayName: 'Qwen2 1.5B Instruct (Free)',id: 'Qwen/Qwen2-1.5B-Instruct',- pricing: {- currency: 'CNY',- input: 0,- output: 0,- },},{contextWindowTokens: 32_768,@@ -358,11 +222,6 @@ const SiliconCloud: ModelProviderCard = {'Qwen2-1.5B-Instruct 是 Qwen2 系列中的指令微调大语言模型,参数规模为 1.5B。该模型基于 Transformer 架构,采用了 SwiGLU 激活函数、注意力 QKV 偏置和组查询注意力等技术。它在语言理解、生成、多语言能力、编码、数学和推理等多个基准测试中表现出色,超越了大多数开源模型。与 Qwen1.5-1.8B-Chat 相比,Qwen2-1.5B-Instruct 在 MMLU、HumanEval、GSM8K、C-Eval 和 IFEval 等测试中均显示出显著的性能提升,尽管参数量略少',displayName: 'Qwen2 1.5B Instruct (Pro)',id: 'Pro/Qwen/Qwen2-1.5B-Instruct',- pricing: {- currency: 'CNY',- input: 0.14,- output: 0.14,- },},{contextWindowTokens: 32_768,@@ -370,11 +229,6 @@ const SiliconCloud: ModelProviderCard = {'Qwen2-7B-Instruct 是 Qwen2 系列中的指令微调大语言模型,参数规模为 7B。该模型基于 Transformer 架构,采用了 SwiGLU 激活函数、注意力 QKV 偏置和组查询注意力等技术。它能够处理大规模输入。该模型在语言理解、生成、多语言能力、编码、数学和推理等多个基准测试中表现出色,超越了大多数开源模型,并在某些任务上展现出与专有模型相当的竞争力。Qwen2-7B-Instruct 在多项评测中均优于 Qwen1.5-7B-Chat,显示出显著的性能提升',displayName: 'Qwen2 7B Instruct (Free)',id: 'Qwen/Qwen2-7B-Instruct',- pricing: {- currency: 'CNY',- input: 0,- output: 0,- },},{contextWindowTokens: 32_768,@@ -382,11 +236,6 @@ const SiliconCloud: ModelProviderCard = {'Qwen2-7B-Instruct 是 Qwen2 系列中的指令微调大语言模型,参数规模为 7B。该模型基于 Transformer 架构,采用了 SwiGLU 激活函数、注意力 QKV 偏置和组查询注意力等技术。它能够处理大规模输入。该模型在语言理解、生成、多语言能力、编码、数学和推理等多个基准测试中表现出色,超越了大多数开源模型,并在某些任务上展现出与专有模型相当的竞争力。Qwen2-7B-Instruct 在多项评测中均优于 Qwen1.5-7B-Chat,显示出显著的性能提升',displayName: 'Qwen2 7B Instruct (Pro)',id: 'Pro/Qwen/Qwen2-7B-Instruct',- pricing: {- currency: 'CNY',- input: 0.35,- output: 0.35,- },},{contextWindowTokens: 32_768,@@ -394,11 +243,6 @@ const SiliconCloud: ModelProviderCard = {'Qwen2-72B-Instruct 是 Qwen2 系列中的指令微调大语言模型,参数规模为 72B。该模型基于 Transformer 架构,采用了 SwiGLU 激活函数、注意力 QKV 偏置和组查询注意力等技术。它能够处理大规模输入。该模型在语言理解、生成、多语言能力、编码、数学和推理等多个基准测试中表现出色,超越了大多数开源模型,并在某些任务上展现出与专有模型相当的竞争力',displayName: 'Qwen2 72B Instruct',id: 'Qwen/Qwen2-7B-Instruct',- pricing: {- currency: 'CNY',- input: 4.13,- output: 4.13,- },},{contextWindowTokens: 32_768,@@ -407,11 +251,6 @@ const SiliconCloud: ModelProviderCard = {displayName: 'Qwen2 VL 7B Instruct (Pro)',enabled: true,id: 'Pro/Qwen/Qwen2-VL-7B-Instruct',- pricing: {- currency: 'CNY',- input: 0.35,- output: 0.35,- },vision: true,},{@@ -421,11 +260,6 @@ const SiliconCloud: ModelProviderCard = {displayName: 'Qwen2 VL 72B Instruct',enabled: true,id: 'Qwen/Qwen2-VL-72B-Instruct',- pricing: {- currency: 'CNY',- input: 4.13,- output: 4.13,- },vision: true,},{@@ -435,11 +269,6 @@ const SiliconCloud: ModelProviderCard = {displayName: 'InternLM2.5 7B Chat (Free)',functionCall: true,id: 'internlm/internlm2_5-7b-chat',- pricing: {- currency: 'CNY',- input: 0,- output: 0,- },},{contextWindowTokens: 32_768,@@ -448,11 +277,6 @@ const SiliconCloud: ModelProviderCard = {displayName: 'InternLM2.5 20B Chat',functionCall: true,id: 'internlm/internlm2_5-20b-chat',- pricing: {- currency: 'CNY',- input: 1,- output: 1,- },},{contextWindowTokens: 32_768,@@ -460,11 +284,6 @@ const SiliconCloud: ModelProviderCard = {'InternVL2-8B 是 InternVL 2.0 系列多模态大语言模型中的一员。该模型由 InternViT-300M-448px 视觉模型、MLP 投影层和 internlm2_5-7b-chat 语言模型组成。它在各种视觉语言任务上展现出了卓越的性能,包括文档和图表理解、场景文本理解、OCR、科学和数学问题解决等。InternVL2-8B 使用 8K 上下文窗口训练,能够处理长文本、多图像和视频输入,显著提升了模型在这些任务上的处理能力',displayName: 'InternVL2 8B (Pro)',id: 'Pro/OpenGVLab/InternVL2-8B',- pricing: {- currency: 'CNY',- input: 0.35,- output: 0.35,- },vision: true,},{@@ -473,11 +292,6 @@ const SiliconCloud: ModelProviderCard = {'InternVL2-26B 是 InternVL 2.0 系列多模态大语言模型中的一员。该模型由 InternViT-6B-448px-V1-5 视觉模型、MLP 投影层和 internlm2-chat-20b 语言模型组成。它在各种视觉语言任务上展现出了卓越的性能,包括文档和图表理解、场景文本理解、OCR、科学和数学问题解决等。InternVL2-26B 使用 8K 上下文窗口训练,能够处理长文本、多图像和视频输入,显著提升了模型在这些任务上的处理能力',displayName: 'InternVL2 26B',id: 'OpenGVLab/InternVL2-26B',- pricing: {- currency: 'CNY',- input: 1,- output: 1,- },vision: true,},{@@ -487,11 +301,6 @@ const SiliconCloud: ModelProviderCard = {displayName: 'GLM-4 9B Chat (Free)',functionCall: true,id: 'THUDM/glm-4-9b-chat',- pricing: {- currency: 'CNY',- input: 0,- output: 0,- },},{contextWindowTokens: 131_072,@@ -500,11 +309,6 @@ const SiliconCloud: ModelProviderCard = {displayName: 'GLM-4 9B Chat (Pro)',functionCall: true,id: 'Pro/THUDM/glm-4-9b-chat',- pricing: {- currency: 'CNY',- input: 0.6,- output: 0.6,- },},{contextWindowTokens: 32_768,@@ -512,11 +316,6 @@ const SiliconCloud: ModelProviderCard = {'ChatGLM3-6B 是 ChatGLM 系列的开源模型,由智谱 AI 开发。该模型保留了前代模型的优秀特性,如对话流畅和部署门槛低,同时引入了新的特性。它采用了更多样的训练数据、更充分的训练步数和更合理的训练策略,在 10B 以下的预训练模型中表现出色。ChatGLM3-6B 支持多轮对话、工具调用、代码执行和 Agent 任务等复杂场景。除对话模型外,还开源了基础模型 ChatGLM-6B-Base 和长文本对话模型 ChatGLM3-6B-32K。该模型对学术研究完全开放,在登记后也允许免费商业使用',displayName: 'ChatGLM3 6B (Free)',id: 'THUDM/chatglm3-6b',- pricing: {- currency: 'CNY',- input: 0,- output: 0,- },},{contextWindowTokens: 4096,@@ -524,11 +323,6 @@ const SiliconCloud: ModelProviderCard = {'Yi-1.5-6B-Chat 是 Yi-1.5 系列的一个变体,属于开源聊天模型。Yi-1.5 是 Yi 的升级版本,在 500B 个高质量语料上进行了持续预训练,并在 3M 多样化的微调样本上进行了微调。相比于 Yi,Yi-1.5 在编码、数学、推理和指令遵循能力方面表现更强,同时保持了出色的语言理解、常识推理和阅读理解能力。该模型具有 4K、16K 和 32K 的上下文长度版本,预训练总量达到 3.6T 个 token',displayName: 'Yi-1.5 6B Chat (Free)',id: '01-ai/Yi-1.5-6B-Chat',- pricing: {- currency: 'CNY',- input: 0,- output: 0,- },},{contextWindowTokens: 16_384,@@ -536,11 +330,6 @@ const SiliconCloud: ModelProviderCard = {'Yi-1.5-9B-Chat-16K 是 Yi-1.5 系列的一个变体,属于开源聊天模型。Yi-1.5 是 Yi 的升级版本,在 500B 个高质量语料上进行了持续预训练,并在 3M 多样化的微调样本上进行了微调。相比于 Yi,Yi-1.5 在编码、数学、推理和指令遵循能力方面表现更强,同时保持了出色的语言理解、常识推理和阅读理解能力。该模型在同等规模的开源模型中表现最佳',displayName: 'Yi-1.5 9B Chat 16K (Free)',id: '01-ai/Yi-1.5-9B-Chat-16K',- pricing: {- currency: 'CNY',- input: 0,- output: 0,- },},{contextWindowTokens: 16_384,@@ -548,11 +337,6 @@ const SiliconCloud: ModelProviderCard = {'Yi-1.5-34B-Chat-16K 是 Yi-1.5 系列的一个变体,属于开源聊天模型。Yi-1.5 是 Yi 的升级版本,在 500B 个高质量语料上进行了持续预训练,并在 3M 多样化的微调样本上进行了微调。相比于 Yi,Yi-1.5 在编码、数学、推理和指令遵循能力方面表现更强,同时保持了出色的语言理解、常识推理和阅读理解能力。该模型在大多数基准测试中与更大的模型相当或表现更佳,具有 16K 的上下文长度',displayName: 'Yi-1.5 34B Chat 16K',id: '01-ai/Yi-1.5-34B-Chat-16K',- pricing: {- currency: 'CNY',- input: 1.26,- output: 1.26,- },},{contextWindowTokens: 8192,@@ -561,11 +345,6 @@ const SiliconCloud: ModelProviderCard = {displayName: 'Gemma 2 9B (Free)',enabled: true,id: 'google/gemma-2-9b-it',- pricing: {- currency: 'CNY',- input: 0,- output: 0,- },},{contextWindowTokens: 8192,@@ -573,11 +352,6 @@ const SiliconCloud: ModelProviderCard = {'Gemma 是 Google 开发的轻量级、最先进的开放模型系列之一。它是一个仅解码器的大型语言模型,支持英语,提供开放权重、预训练变体和指令微调变体。Gemma 模型适用于各种文本生成任务,包括问答、摘要和推理。该 9B 模型是通过 8 万亿个 tokens 训练而成。其相对较小的规模使其可以在资源有限的环境中部署,如笔记本电脑、台式机或您自己的云基础设施,从而使更多人能够访问最先进的 AI 模型并促进创新',displayName: 'Gemma 2 9B (Pro)',id: 'Pro/google/gemma-2-9b-it',- pricing: {- currency: 'CNY',- input: 0.6,- output: 0.6,- },},{contextWindowTokens: 8192,@@ -586,11 +360,6 @@ const SiliconCloud: ModelProviderCard = {displayName: 'Gemma 2 27B',enabled: true,id: 'google/gemma-2-27b-it',- pricing: {- currency: 'CNY',- input: 1.26,- output: 1.26,- },},{contextWindowTokens: 32_768,@@ -600,11 +369,6 @@ const SiliconCloud: ModelProviderCard = {enabled: true,functionCall: true,id: 'meta-llama/Meta-Llama-3.1-8B-Instruct',- pricing: {- currency: 'CNY',- input: 0,- output: 0,- },},{contextWindowTokens: 32_768,@@ -612,11 +376,6 @@ const SiliconCloud: ModelProviderCard = {'Meta Llama 3.1 是由 Meta 开发的多语言大型语言模型家族,包括 8B、70B 和 405B 三种参数规模的预训练和指令微调变体。该 8B 指令微调模型针对多语言对话场景进行了优化,在多项行业基准测试中表现优异。模型训练使用了超过 15 万亿个 tokens 的公开数据,并采用了监督微调和人类反馈强化学习等技术来提升模型的有用性和安全性。Llama 3.1 支持文本生成和代码生成,知识截止日期为 2023 年 12 月',displayName: 'Llama 3.1 8B Instruct (Pro)',id: 'Pro/meta-llama/Meta-Llama-3.1-8B-Instruct',- pricing: {- currency: 'CNY',- input: 0.42,- output: 0.42,- },},{contextWindowTokens: 32_768,@@ -626,11 +385,6 @@ const SiliconCloud: ModelProviderCard = {enabled: true,functionCall: true,id: 'meta-llama/Meta-Llama-3.1-70B-Instruct',- pricing: {- currency: 'CNY',- input: 4.13,- output: 4.13,- },},{contextWindowTokens: 32_768,@@ -639,11 +393,6 @@ const SiliconCloud: ModelProviderCard = {displayName: 'Llama 3.1 405B Instruct',enabled: true,id: 'meta-llama/Meta-Llama-3.1-405B-Instruct',- pricing: {- currency: 'CNY',- input: 21,- output: 21,- },},{contextWindowTokens: 32_768,@@ -653,11 +402,6 @@ const SiliconCloud: ModelProviderCard = {enabled: true,functionCall: true,id: 'meta-llama/Llama-3.3-70B-Instruct',- pricing: {- currency: 'CNY',- input: 4.13,- output: 4.13,- },},{contextWindowTokens: 8192,@@ -665,11 +409,6 @@ const SiliconCloud: ModelProviderCard = {'TeleChat2大模型是由中国电信从0到1自主研发的生成式语义大模型,支持百科问答、代码生成、长文生成等功能,为用户提供对话咨询服务,能够与用户进行对话互动,回答问题,协助创作,高效便捷地帮助用户获取信息、知识和灵感。模型在幻觉问题、长文生成、逻辑理解等方面均有较出色表现。',displayName: 'TeleChat2',id: 'TeleAI/TeleChat2',- pricing: {- currency: 'CNY',- input: 1.33,- output: 1.33,- },},{contextWindowTokens: 32_768,@@ -677,11 +416,6 @@ const SiliconCloud: ModelProviderCard = {'TeleMM多模态大模型是由中国电信自主研发的多模态理解大模型,能够处理文本、图像等多种模态输入,支持图像理解、图表分析等功能,为用户提供跨模态的理解服务。模型能够与用户进行多模态交互,准确理解输入内容,回答问题、协助创作,并高效提供多模态信息和灵感支持。在细粒度感知,逻辑推理等多模态任务上有出色表现',displayName: 'TeleMM',id: 'TeleAI/TeleMM',- pricing: {- currency: 'CNY',- input: 1.33,- output: 1.33,- },vision: true,},],diff --git a/src/config/modelProviders/stepfun.ts b/src/config/modelProviders/stepfun.tsindex f16acc5e25f..7693e874cf9 100644--- a/src/config/modelProviders/stepfun.ts+++ b/src/config/modelProviders/stepfun.ts@@ -11,11 +11,6 @@ const Stepfun: ModelProviderCard = {enabled: true,functionCall: true,id: 'step-1-flash',- pricing: {- currency: 'CNY',- input: 1,- output: 4,- },},{contextWindowTokens: 8000,@@ -24,11 +19,6 @@ const Stepfun: ModelProviderCard = {enabled: true,functionCall: true,id: 'step-1-8k',- pricing: {- currency: 'CNY',- input: 5,- output: 20,- },},{contextWindowTokens: 32_000,@@ -37,11 +27,6 @@ const Stepfun: ModelProviderCard = {enabled: true,functionCall: true,id: 'step-1-32k',- pricing: {- currency: 'CNY',- input: 15,- output: 70,- },},{contextWindowTokens: 128_000,@@ -50,11 +35,6 @@ const Stepfun: ModelProviderCard = {enabled: true,functionCall: true,id: 'step-1-128k',- pricing: {- currency: 'CNY',- input: 40,- output: 200,- },},{contextWindowTokens: 256_000,@@ -62,11 +42,6 @@ const Stepfun: ModelProviderCard = {displayName: 'Step 1 256K',functionCall: true,id: 'step-1-256k',- pricing: {- currency: 'CNY',- input: 95,- output: 300,- },},{contextWindowTokens: 16_000,@@ -75,11 +50,6 @@ const Stepfun: ModelProviderCard = {enabled: true,functionCall: true,id: 'step-2-16k',- pricing: {- currency: 'CNY',- input: 38,- output: 120,- },},{contextWindowTokens: 8000,@@ -89,11 +59,6 @@ const Stepfun: ModelProviderCard = {enabled: true,functionCall: true,id: 'step-2-mini',- pricing: {- currency: 'CNY',- input: 1,- output: 2,- },},{contextWindowTokens: 16_000,@@ -101,11 +66,6 @@ const Stepfun: ModelProviderCard = {displayName: 'Step 2 16K Exp',functionCall: true,id: 'step-2-16k-exp',- pricing: {- currency: 'CNY',- input: 38,- output: 120,- },},{contextWindowTokens: 8000,@@ -114,11 +74,6 @@ const Stepfun: ModelProviderCard = {enabled: true,functionCall: true,id: 'step-1v-8k',- pricing: {- currency: 'CNY',- input: 5,- output: 20,- },vision: true,},{@@ -127,11 +82,6 @@ const Stepfun: ModelProviderCard = {displayName: 'Step 1V 32K',functionCall: true,id: 'step-1v-32k',- pricing: {- currency: 'CNY',- input: 15,- output: 70,- },vision: true,},{@@ -140,11 +90,6 @@ const Stepfun: ModelProviderCard = {displayName: 'Step 1o Vision 32K',enabled: true,id: 'step-1o-vision-32k',- pricing: {- currency: 'CNY',- input: 15,- output: 70,- },vision: true,},{@@ -153,11 +98,6 @@ const Stepfun: ModelProviderCard = {displayName: 'Step 1.5V Mini',enabled: true,id: 'step-1.5v-mini',- pricing: {- currency: 'CNY',- input: 8,- output: 35,- },vision: true,},],diff --git a/src/config/modelProviders/taichu.ts b/src/config/modelProviders/taichu.tsindex 28b065454a6..c8eed9859ca 100644--- a/src/config/modelProviders/taichu.ts+++ b/src/config/modelProviders/taichu.ts@@ -10,11 +10,6 @@ const Taichu: ModelProviderCard = {enabled: true,functionCall: true,id: 'taichu_llm',- pricing: {- currency: 'CNY',- input: 2,- output: 2,- },},{contextWindowTokens: 4096,@@ -22,11 +17,6 @@ const Taichu: ModelProviderCard = {displayName: 'Taichu 2.0V',enabled: true,id: 'taichu2_mm',- pricing: {- currency: 'CNY',- input: 5,- output: 5,- },vision: true,},],diff --git a/src/config/modelProviders/wenxin.ts b/src/config/modelProviders/wenxin.tsindex 45edce87a90..92e3abc0117 100644--- a/src/config/modelProviders/wenxin.ts+++ b/src/config/modelProviders/wenxin.ts@@ -11,11 +11,6 @@ const BaiduWenxin: ModelProviderCard = {enabled: true,functionCall: true,id: 'ernie-3.5-8k',- pricing: {- currency: 'CNY',- input: 0.8,- output: 2,- },},{contextWindowTokens: 8192,@@ -24,11 +19,6 @@ const BaiduWenxin: ModelProviderCard = {displayName: 'ERNIE 3.5 8K Preview',functionCall: true,id: 'ernie-3.5-8k-preview',- pricing: {- currency: 'CNY',- input: 0.8,- output: 2,- },},{contextWindowTokens: 128_000,@@ -38,11 +28,6 @@ const BaiduWenxin: ModelProviderCard = {enabled: true,functionCall: true,id: 'ernie-3.5-128k',- pricing: {- currency: 'CNY',- input: 0.8,- output: 2,- },},{contextWindowTokens: 8192,@@ -52,11 +37,6 @@ const BaiduWenxin: ModelProviderCard = {enabled: true,functionCall: true,id: 'ernie-4.0-8k-latest',- pricing: {- currency: 'CNY',- input: 30,- output: 90,- },},{contextWindowTokens: 8192,@@ -65,11 +45,6 @@ const BaiduWenxin: ModelProviderCard = {displayName: 'ERNIE 4.0 8K Preview',functionCall: true,id: 'ernie-4.0-8k-preview',- pricing: {- currency: 'CNY',- input: 30,- output: 90,- },},{contextWindowTokens: 8192,@@ -79,11 +54,6 @@ const BaiduWenxin: ModelProviderCard = {enabled: true,functionCall: true,id: 'ernie-4.0-turbo-8k-latest',- pricing: {- currency: 'CNY',- input: 20,- output: 60,- },},{contextWindowTokens: 128_000,@@ -93,11 +63,6 @@ const BaiduWenxin: ModelProviderCard = {enabled: true,functionCall: true,id: 'ernie-4.0-turbo-128k',- pricing: {- currency: 'CNY',- input: 20,- output: 60,- },},{contextWindowTokens: 8192,@@ -106,11 +71,6 @@ const BaiduWenxin: ModelProviderCard = {displayName: 'ERNIE 4.0 Turbo 8K Preview',functionCall: true,id: 'ernie-4.0-turbo-8k-preview',- pricing: {- currency: 'CNY',- input: 20,- output: 60,- },},{contextWindowTokens: 8192,@@ -118,11 +78,6 @@ const BaiduWenxin: ModelProviderCard = {'ERNIE Lite是百度自研的轻量级大语言模型,兼顾优异的模型效果与推理性能,适合低算力AI加速卡推理使用。',displayName: 'ERNIE Lite 8K',id: 'ernie-lite-8k',- pricing: {- currency: 'CNY',- input: 0,- output: 0,- },},{contextWindowTokens: 128_000,@@ -131,22 +86,12 @@ const BaiduWenxin: ModelProviderCard = {displayName: 'ERNIE Lite Pro 128K',functionCall: true,id: 'ernie-lite-pro-128k',- pricing: {- currency: 'CNY',- input: 0.2,- output: 0.4,- },},{contextWindowTokens: 8192,description: 'ERNIE Tiny是百度自研的超高性能大语言模型,部署与精调成本在文心系列模型中最低。',displayName: 'ERNIE Tiny 8K',id: 'ernie-tiny-8k',- pricing: {- currency: 'CNY',- input: 0,- output: 0,- },},{contextWindowTokens: 128_000,@@ -154,11 +99,6 @@ const BaiduWenxin: ModelProviderCard = {'百度2024年最新发布的自研高性能大语言模型,通用能力优异,适合作为基座模型进行精调,更好地处理特定场景问题,同时具备极佳的推理性能。',displayName: 'ERNIE Speed 128K',id: 'ernie-speed-128k',- pricing: {- currency: 'CNY',- input: 0,- output: 0,- },},{contextWindowTokens: 128_000,@@ -166,11 +106,6 @@ const BaiduWenxin: ModelProviderCard = {'百度2024年最新发布的自研高性能大语言模型,通用能力优异,效果比ERNIE Speed更优,适合作为基座模型进行精调,更好地处理特定场景问题,同时具备极佳的推理性能。',displayName: 'ERNIE Speed Pro 128K',id: 'ernie-speed-pro-128k',- pricing: {- currency: 'CNY',- input: 0.3,- output: 0.6,- },},{contextWindowTokens: 8192,@@ -178,11 +113,6 @@ const BaiduWenxin: ModelProviderCard = {'百度自研的垂直场景大语言模型,适合游戏NPC、客服对话、对话角色扮演等应用场景,人设风格更为鲜明、一致,指令遵循能力更强,推理性能更优。',displayName: 'ERNIE Character 8K',id: 'ernie-char-8k',- pricing: {- currency: 'CNY',- input: 4,- output: 8,- },},{contextWindowTokens: 8192,@@ -190,22 +120,12 @@ const BaiduWenxin: ModelProviderCard = {'百度自研的垂直场景大语言模型,适合游戏NPC、客服对话、对话角色扮演等应用场景,人设风格更为鲜明、一致,指令遵循能力更强,推理性能更优。',displayName: 'ERNIE Character Fiction 8K',id: 'ernie-char-fiction-8k',- pricing: {- currency: 'CNY',- input: 4,- output: 8,- },},{contextWindowTokens: 8192,description: '百度自研通用大语言模型,在小说续写能力上有明显优势,也可用在短剧、电影等场景。',displayName: 'ERNIE Novel 8K',id: 'ernie-novel-8k',- pricing: {- currency: 'CNY',- input: 40,- output: 120,- },},{contextWindowTokens: 65_536,@@ -213,11 +133,6 @@ const BaiduWenxin: ModelProviderCard = {'DeepSeek-V3 为杭州深度求索人工智能基础技术研究有限公司自研的 MoE 模型,其多项评测成绩突出,在主流榜单中位列开源模型榜首。V3 相比 V2.5 模型生成速度实现 3 倍提升,为用户带来更加迅速流畅的使用体验。',displayName: 'DeepSeek V3',id: 'deepseek-v3',- pricing: {- currency: 'CNY',- input: 0.8,- output: 1.6,- },},{contextWindowTokens: 65_536,@@ -225,11 +140,6 @@ const BaiduWenxin: ModelProviderCard = {'DeepSeek-R1 在后训练阶段大规模使用了强化学习技术,在仅有极少标注数据的情况下,极大提升了模型推理能力。在数学、代码、自然语言推理等任务上,性能比肩 OpenAI o1 正式版。',displayName: 'DeepSeek R1',id: 'deepseek-r1',- pricing: {- currency: 'CNY',- input: 2,- output: 8,- },},],checkModel: 'ernie-speed-128k',diff --git a/src/config/modelProviders/xai.ts b/src/config/modelProviders/xai.tsindex 7c77c5237c0..fbf6a21daae 100644--- a/src/config/modelProviders/xai.ts+++ b/src/config/modelProviders/xai.ts@@ -10,10 +10,6 @@ const XAI: ModelProviderCard = {enabled: true,functionCall: true,id: 'grok-beta',- pricing: {- input: 5,- output: 15,- },},{contextWindowTokens: 8192,@@ -22,10 +18,6 @@ const XAI: ModelProviderCard = {enabled: true,functionCall: true,id: 'grok-vision-beta',- pricing: {- input: 5,- output: 15,- },vision: true,},{@@ -35,10 +27,6 @@ const XAI: ModelProviderCard = {enabled: true,functionCall: true,id: 'grok-2-1212',- pricing: {- input: 2,- output: 10,- },releasedAt: '2024-12-12',},{@@ -48,10 +36,6 @@ const XAI: ModelProviderCard = {enabled: true,functionCall: true,id: 'grok-2-vision-1212',- pricing: {- input: 2,- output: 10,- },releasedAt: '2024-12-12',vision: true,},diff --git a/src/config/modelProviders/zeroone.ts b/src/config/modelProviders/zeroone.tsindex bfa147eb716..852a5520940 100644--- a/src/config/modelProviders/zeroone.ts+++ b/src/config/modelProviders/zeroone.ts@@ -9,11 +9,6 @@ const ZeroOne: ModelProviderCard = {displayName: 'Yi Lightning',enabled: true,id: 'yi-lightning',- pricing: {- currency: 'CNY',- input: 0.99,- output: 0.99,- },},{contextWindowTokens: 16_384,@@ -21,11 +16,6 @@ const ZeroOne: ModelProviderCard = {displayName: 'Yi Vision V2',enabled: true,id: 'yi-vision-v2',- pricing: {- currency: 'CNY',- input: 6,- output: 6,- },vision: true,},{@@ -33,44 +23,24 @@ const ZeroOne: ModelProviderCard = {description: '小而精悍,轻量极速模型。提供强化数学运算和代码编写能力。',displayName: 'Yi Spark',id: 'yi-spark',- pricing: {- currency: 'CNY',- input: 1,- output: 1,- },},{contextWindowTokens: 16_384,description: '中型尺寸模型升级微调,能力均衡,性价比高。深度优化指令遵循能力。',displayName: 'Yi Medium',id: 'yi-medium',- pricing: {- currency: 'CNY',- input: 2.5,- output: 2.5,- },},{contextWindowTokens: 200_000,description: '200K 超长上下文窗口,提供长文本深度理解和生成能力。',displayName: 'Yi Medium 200K',id: 'yi-medium-200k',- pricing: {- currency: 'CNY',- input: 12,- output: 12,- },},{contextWindowTokens: 16_384,description: '超高性价比、卓越性能。根据性能和推理速度、成本,进行平衡性高精度调优。',displayName: 'Yi Large Turbo',id: 'yi-large-turbo',- pricing: {- currency: 'CNY',- input: 12,- output: 12,- },},{contextWindowTokens: 16_384,@@ -78,11 +48,6 @@ const ZeroOne: ModelProviderCard = {'基于 yi-large 超强模型的高阶服务,结合检索与生成技术提供精准答案,实时全网检索信息服务。',displayName: 'Yi Large RAG',id: 'yi-large-rag',- pricing: {- currency: 'CNY',- input: 25,- output: 25,- },},{contextWindowTokens: 32_768,@@ -91,33 +56,18 @@ const ZeroOne: ModelProviderCard = {displayName: 'Yi Large FC',functionCall: true,id: 'yi-large-fc',- pricing: {- currency: 'CNY',- input: 20,- output: 20,- },},{contextWindowTokens: 32_768,description: '全新千亿参数模型,提供超强问答及文本生成能力。',displayName: 'Yi Large',id: 'yi-large',- pricing: {- currency: 'CNY',- input: 20,- output: 20,- },},{contextWindowTokens: 16_384,description: '复杂视觉任务模型,提供高性能图片理解、分析能力。',displayName: 'Yi Vision',id: 'yi-vision',- pricing: {- currency: 'CNY',- input: 6,- output: 6,- },vision: true,},{@@ -125,22 +75,12 @@ const ZeroOne: ModelProviderCard = {description: '初期版本,推荐使用 yi-large(新版本)。',displayName: 'Yi Large Preview',id: 'yi-large-preview',- pricing: {- currency: 'CNY',- input: 20,- output: 20,- },},{contextWindowTokens: 16_384,description: '轻量化版本,推荐使用 yi-lightning。',displayName: 'Yi Lightning Lite',id: 'yi-lightning-lite',- pricing: {- currency: 'CNY',- input: 0.99,- output: 0.99,- },},],checkModel: 'yi-lightning',diff --git a/src/config/modelProviders/zhipu.ts b/src/config/modelProviders/zhipu.tsindex 026ae455a51..21e151b4488 100644--- a/src/config/modelProviders/zhipu.ts+++ b/src/config/modelProviders/zhipu.ts@@ -10,11 +10,6 @@ const ZhiPu: ModelProviderCard = {description: 'GLM-Zero-Preview具备强大的复杂推理能力,在逻辑推理、数学、编程等领域表现优异。',displayName: 'GLM-Zero-Preview',id: 'glm-zero-preview',- pricing: {- currency: 'CNY',- input: 10,- output: 10,- },},{contextWindowTokens: 128_000,@@ -23,11 +18,6 @@ const ZhiPu: ModelProviderCard = {enabled: true,functionCall: true,id: 'glm-4-flash',- pricing: {- currency: 'CNY',- input: 0,- output: 0,- },},{contextWindowTokens: 128_000,@@ -36,11 +26,6 @@ const ZhiPu: ModelProviderCard = {enabled: true,functionCall: true,id: 'glm-4-flashx',- pricing: {- currency: 'CNY',- input: 0.1,- output: 0.1,- },},{contextWindowTokens: 1_024_000,@@ -48,11 +33,6 @@ const ZhiPu: ModelProviderCard = {displayName: 'GLM-4-Long',functionCall: true,id: 'glm-4-long',- pricing: {- currency: 'CNY',- input: 1,- output: 1,- },},{contextWindowTokens: 128_000,@@ -61,11 +41,6 @@ const ZhiPu: ModelProviderCard = {enabled: true,functionCall: true,id: 'glm-4-air',- pricing: {- currency: 'CNY',- input: 1,- output: 1,- },},{contextWindowTokens: 8192,@@ -74,11 +49,6 @@ const ZhiPu: ModelProviderCard = {enabled: true,functionCall: true,id: 'glm-4-airx',- pricing: {- currency: 'CNY',- input: 10,- output: 10,- },},{contextWindowTokens: 128_000,@@ -87,11 +57,6 @@ const ZhiPu: ModelProviderCard = {displayName: 'GLM-4-AllTools',functionCall: true,id: 'glm-4-alltools',- pricing: {- currency: 'CNY',- input: 100,- output: 100,- },},{contextWindowTokens: 128_000,@@ -101,11 +66,6 @@ const ZhiPu: ModelProviderCard = {enabled: true,functionCall: true,id: 'glm-4-plus',- pricing: {- currency: 'CNY',- input: 50,- output: 50,- },},{contextWindowTokens: 128_000,@@ -113,11 +73,6 @@ const ZhiPu: ModelProviderCard = {displayName: 'GLM-4-0520',functionCall: true,id: 'glm-4-0520',- pricing: {- currency: 'CNY',- input: 100,- output: 100,- },},{contextWindowTokens: 128_000,@@ -125,11 +80,6 @@ const ZhiPu: ModelProviderCard = {displayName: 'GLM-4',functionCall: true,id: 'glm-4',- pricing: {- currency: 'CNY',- input: 100,- output: 100,- },},{contextWindowTokens: 8192,@@ -138,11 +88,6 @@ const ZhiPu: ModelProviderCard = {displayName: 'GLM-4V-Flash',enabled: true,id: 'glm-4v-flash',- pricing: {- currency: 'CNY',- input: 0,- output: 0,- },releasedAt: '2024-12-09',vision: true,},@@ -152,11 +97,6 @@ const ZhiPu: ModelProviderCard = {displayName: 'GLM-4V-Plus',enabled: true,id: 'glm-4v-plus',- pricing: {- currency: 'CNY',- input: 10,- output: 10,- },vision: true,},{@@ -164,11 +104,6 @@ const ZhiPu: ModelProviderCard = {description: 'GLM-4V 提供强大的图像理解与推理能力,支持多种视觉任务。',displayName: 'GLM-4V',id: 'glm-4v',- pricing: {- currency: 'CNY',- input: 50,- output: 50,- },vision: true,},{@@ -177,33 +112,18 @@ const ZhiPu: ModelProviderCard = {'CodeGeeX-4 是强大的AI编程助手,支持多种编程语言的智能问答与代码补全,提升开发效率。',displayName: 'CodeGeeX-4',id: 'codegeex-4',- pricing: {- currency: 'CNY',- input: 0.1,- output: 0.1,- },},{contextWindowTokens: 4096,description: 'CharGLM-3 专为角色扮演与情感陪伴设计,支持超长多轮记忆与个性化对话,应用广泛。',displayName: 'CharGLM-3',id: 'charglm-3',- pricing: {- currency: 'CNY',- input: 15,- output: 15,- },},{contextWindowTokens: 8192,description: 'Emohaa 是心理模型,具备专业咨询能力,帮助用户理解情感问题。',displayName: 'Emohaa',id: 'emohaa',- pricing: {- currency: 'CNY',- input: 15,- output: 15,- },},],checkModel: 'glm-4-flash-250414',diff --git a/src/features/Conversation/Extras/Usage/UsageDetail/ModelCard.tsx b/src/features/Conversation/Extras/Usage/UsageDetail/ModelCard.tsxindex b78cbdb839a..d46c92ccdf1 100644--- a/src/features/Conversation/Extras/Usage/UsageDetail/ModelCard.tsx+++ b/src/features/Conversation/Extras/Usage/UsageDetail/ModelCard.tsx@@ -10,6 +10,7 @@ import { getPrice } from '@/features/Conversation/Extras/Usage/UsageDetail/priciimport { useGlobalStore } from '@/store/global';import { systemStatusSelectors } from '@/store/global/selectors';import { LobeDefaultAiModelListItem } from '@/types/aiModel';+import { getCachedTextInputUnitRate, getWriteCacheInputUnitRate } from '@/utils/pricing';export const useStyles = createStyles(({ css, token }) => {return {@@ -38,7 +39,7 @@ const ModelCard = memo<ModelCardProps>(({ pricing, id, provider, displayName })const isShowCredit = useGlobalStore(systemStatusSelectors.isShowCredit) && !!pricing;const updateSystemStatus = useGlobalStore((s) => s.updateSystemStatus);- const formatPrice = getPrice(pricing || {});+ const formatPrice = getPrice(pricing || { units: [] });return (<Flexbox gap={8}>@@ -87,7 +88,7 @@ const ModelCard = memo<ModelCardProps>(({ pricing, id, provider, displayName })<div /><Flexbox align={'center'} className={styles.pricing} gap={8} horizontal>{t('messages.modelCard.creditPricing')}:- {pricing?.cachedInput && (+ {getCachedTextInputUnitRate(pricing) && (<Tooltiptitle={t('messages.modelCard.pricing.inputCachedTokens', {amount: formatPrice.cachedInput,@@ -99,7 +100,7 @@ const ModelCard = memo<ModelCardProps>(({ pricing, id, provider, displayName })</Flexbox></Tooltip>)}- {pricing?.writeCacheInput && (+ {getWriteCacheInputUnitRate(pricing) && (<Tooltiptitle={t('messages.modelCard.pricing.writeCacheInputTokens', {amount: formatPrice.writeCacheInput,diff --git a/src/features/Conversation/Extras/Usage/UsageDetail/pricing.ts b/src/features/Conversation/Extras/Usage/UsageDetail/pricing.tsindex 8dbc4b4c4d7..50e9cf69847 100644--- a/src/features/Conversation/Extras/Usage/UsageDetail/pricing.ts+++ b/src/features/Conversation/Extras/Usage/UsageDetail/pricing.ts@@ -1,21 +1,31 @@-import { ChatModelPricing } from '@/types/aiModel';+import { Pricing } from '@/types/aiModel';import { ModelPriceCurrency } from '@/types/llm';import { formatPriceByCurrency } from '@/utils/format';+import {+ getCachedTextInputUnitRate,+ getTextInputUnitRate,+ getTextOutputUnitRate,+ getWriteCacheInputUnitRate,+} from '@/utils/pricing';-export const getPrice = (pricing: ChatModelPricing) => {- const inputPrice = formatPriceByCurrency(pricing?.input, pricing?.currency as ModelPriceCurrency);- const cachedInputPrice = formatPriceByCurrency(- pricing?.cachedInput,- pricing?.currency as ModelPriceCurrency,- );- const writeCacheInputPrice = formatPriceByCurrency(- pricing?.writeCacheInput,- pricing?.currency as ModelPriceCurrency,- );- const outputPrice = formatPriceByCurrency(- pricing?.output,- pricing?.currency as ModelPriceCurrency,- );+export const getPrice = (pricing: Pricing) => {+ const inputRate = getTextInputUnitRate(pricing);+ const outputRate = getTextOutputUnitRate(pricing);+ const cachedInputRate = getCachedTextInputUnitRate(pricing);+ const writeCacheInputRate = getWriteCacheInputUnitRate(pricing);++ const inputPrice = inputRate+ ? formatPriceByCurrency(inputRate, pricing?.currency as ModelPriceCurrency)+ : '0';+ const cachedInputPrice = cachedInputRate+ ? formatPriceByCurrency(cachedInputRate, pricing?.currency as ModelPriceCurrency)+ : '0';+ const writeCacheInputPrice = writeCacheInputRate+ ? formatPriceByCurrency(writeCacheInputRate, pricing?.currency as ModelPriceCurrency)+ : '0';+ const outputPrice = outputRate+ ? formatPriceByCurrency(outputRate, pricing?.currency as ModelPriceCurrency)+ : '0';return {cachedInput: Number(cachedInputPrice),diff --git a/src/features/Conversation/Extras/Usage/UsageDetail/tokens.test.ts b/src/features/Conversation/Extras/Usage/UsageDetail/tokens.test.tsindex d14d98ddcdb..ed84a964474 100644--- a/src/features/Conversation/Extras/Usage/UsageDetail/tokens.test.ts+++ b/src/features/Conversation/Extras/Usage/UsageDetail/tokens.test.ts@@ -9,11 +9,13 @@ describe('getDetailsToken', () => {// 基本测试数据const mockModelCard: LobeDefaultAiModelListItem = {pricing: {- input: 0.01,- output: 0.02,- cachedInput: 0.005,- audioInput: 0.03,- audioOutput: 0.04,+ units: [+ { name: 'textInput', unit: 'millionTokens', strategy: 'fixed', rate: 0.01 },+ { name: 'textOutput', unit: 'millionTokens', strategy: 'fixed', rate: 0.02 },+ { name: 'textInput_cacheRead', unit: 'millionTokens', strategy: 'fixed', rate: 0.005 },+ { name: 'audioInput', unit: 'millionTokens', strategy: 'fixed', rate: 0.03 },+ { name: 'audioOutput', unit: 'millionTokens', strategy: 'fixed', rate: 0.04 },+ ],},} as LobeDefaultAiModelListItem;diff --git a/src/features/Conversation/Extras/Usage/UsageDetail/tokens.ts b/src/features/Conversation/Extras/Usage/UsageDetail/tokens.tsindex 8d36e164289..f6748b137d6 100644--- a/src/features/Conversation/Extras/Usage/UsageDetail/tokens.ts+++ b/src/features/Conversation/Extras/Usage/UsageDetail/tokens.ts@@ -1,5 +1,6 @@-import { ChatModelPricing, LobeDefaultAiModelListItem } from '@/types/aiModel';+import { LobeDefaultAiModelListItem } from '@/types/aiModel';import { ModelTokensUsage } from '@/types/message';+import { getAudioInputUnitRate, getAudioOutputUnitRate } from '@/utils/pricing';import { getPrice } from './pricing';@@ -32,7 +33,7 @@ export const getDetailsToken = (: totalInputTokens - (inputCacheTokens || 0);// Pricing- const formatPrice = getPrice(modelCard?.pricing as ChatModelPricing);+ const formatPrice = getPrice(modelCard?.pricing || { units: [] });const inputCacheMissCredit = (!!inputCacheMissTokens ? calcCredit(inputCacheMissTokens, formatPrice.input) : 0@@ -50,7 +51,7 @@ export const getDetailsToken = (!!totalOutputTokens ? calcCredit(totalOutputTokens, formatPrice.output) : 0) as number;const totalInputCredit = (- !!totalInputTokens ? calcCredit(totalInputTokens, formatPrice.output) : 0+ !!totalInputTokens ? calcCredit(totalInputTokens, formatPrice.input) : 0) as number;const totalCredit =@@ -59,7 +60,7 @@ export const getDetailsToken = (return {inputAudio: !!usage.inputAudioTokens? {- credit: calcCredit(usage.inputAudioTokens, modelCard?.pricing?.audioInput),+ credit: calcCredit(usage.inputAudioTokens, getAudioInputUnitRate(modelCard?.pricing)),token: usage.inputAudioTokens,}: undefined,@@ -87,7 +88,7 @@ export const getDetailsToken = (outputAudio: !!usage.outputAudioTokens? {- credit: calcCredit(usage.outputAudioTokens, modelCard?.pricing?.audioOutput),+ credit: calcCredit(usage.outputAudioTokens, getAudioOutputUnitRate(modelCard?.pricing)),id: 'outputAudio',token: usage.outputAudioTokens,}diff --git a/src/libs/model-runtime/utils/openaiCompatibleFactory/index.test.ts b/src/libs/model-runtime/utils/openaiCompatibleFactory/index.test.tsindex 34b1ddb140b..131a5992d67 100644--- a/src/libs/model-runtime/utils/openaiCompatibleFactory/index.test.ts+++ b/src/libs/model-runtime/utils/openaiCompatibleFactory/index.test.ts@@ -1352,9 +1352,26 @@ describe('LobeOpenAICompatibleFactory', () => {id: 'gpt-4o',maxOutput: 4096,pricing: {- cachedInput: 1.25,- input: 2.5,- output: 10,+ units: [+ {+ name: 'textInput_cacheRead',+ rate: 1.25,+ strategy: 'fixed',+ unit: 'millionTokens',+ },+ {+ name: 'textInput',+ rate: 2.5,+ strategy: 'fixed',+ unit: 'millionTokens',+ },+ {+ name: 'textOutput',+ rate: 10,+ strategy: 'fixed',+ unit: 'millionTokens',+ },+ ],},providerId: 'azure',releasedAt: '2024-05-13',@@ -1374,8 +1391,20 @@ describe('LobeOpenAICompatibleFactory', () => {id: 'claude-3-haiku-20240307',maxOutput: 4096,pricing: {- input: 0.25,- output: 1.25,+ units: [+ {+ name: 'textInput',+ rate: 0.25,+ strategy: 'fixed',+ unit: 'millionTokens',+ },+ {+ name: 'textOutput',+ rate: 1.25,+ strategy: 'fixed',+ unit: 'millionTokens',+ },+ ],},providerId: 'anthropic',releasedAt: '2024-03-07',@@ -1400,9 +1429,26 @@ describe('LobeOpenAICompatibleFactory', () => {id: 'gpt-4o-mini',maxOutput: 4096,pricing: {- cachedInput: 0.075,- input: 0.15,- output: 0.6,+ units: [+ {+ name: 'textInput_cacheRead',+ rate: 0.075,+ strategy: 'fixed',+ unit: 'millionTokens',+ },+ {+ name: 'textInput',+ rate: 0.15,+ strategy: 'fixed',+ unit: 'millionTokens',+ },+ {+ name: 'textOutput',+ rate: 0.6,+ strategy: 'fixed',+ unit: 'millionTokens',+ },+ ],},providerId: 'azure',releasedAt: '2023-10-26',diff --git a/src/server/routers/lambda/agent.ts b/src/server/routers/lambda/agent.tsindex 4067d20417d..db2de7a8bef 100644--- a/src/server/routers/lambda/agent.ts+++ b/src/server/routers/lambda/agent.ts@@ -93,8 +93,8 @@ export const agentRouter = router({const user = await UserModel.findById(ctx.serverDB, ctx.userId);if (!user) return DEFAULT_AGENT_CONFIG;- await ctx.agentService.createInbox();- pino.info('create inbox session');+ const res = await ctx.agentService.createInbox();+ pino.info({ res }, 'create inbox session');}}diff --git a/src/server/routers/lambda/config/__snapshots__/index.test.ts.snap b/src/server/routers/lambda/config/__snapshots__/index.test.ts.snapindex dbebf0066bf..88850de75f3 100644--- a/src/server/routers/lambda/config/__snapshots__/index.test.ts.snap+++ b/src/server/routers/lambda/config/__snapshots__/index.test.ts.snap@@ -26,10 +26,6 @@ exports[`configRouter > getGlobalConfig > Model Provider env > OPENAI_MODEL_LIST"enabled": true,"functionCall": true,"id": "gpt-4-0125-preview",- "pricing": {- "input": 10,- "output": 30,- },},],}@@ -44,10 +40,6 @@ exports[`configRouter > getGlobalConfig > Model Provider env > OPENAI_MODEL_LIST"enabled": true,"functionCall": true,"id": "gpt-3.5-turbo-1106",- "pricing": {- "input": 1,- "output": 2,- },},{"contextWindowTokens": 16385,@@ -56,10 +48,6 @@ exports[`configRouter > getGlobalConfig > Model Provider env > OPENAI_MODEL_LIST"enabled": true,"functionCall": true,"id": "gpt-3.5-turbo",- "pricing": {- "input": 0.5,- "output": 1.5,- },},{"contextWindowTokens": 8192,@@ -68,10 +56,6 @@ exports[`configRouter > getGlobalConfig > Model Provider env > OPENAI_MODEL_LIST"enabled": true,"functionCall": true,"id": "gpt-4",- "pricing": {- "input": 30,- "output": 60,- },},{"contextWindowTokens": 32768,@@ -80,10 +64,6 @@ exports[`configRouter > getGlobalConfig > Model Provider env > OPENAI_MODEL_LIST"enabled": true,"functionCall": true,"id": "gpt-4-32k",- "pricing": {- "input": 60,- "output": 120,- },},{"contextWindowTokens": 128000,@@ -92,10 +72,6 @@ exports[`configRouter > getGlobalConfig > Model Provider env > OPENAI_MODEL_LIST"enabled": true,"functionCall": true,"id": "gpt-4-1106-preview",- "pricing": {- "input": 10,- "output": 30,- },},{"displayName": "gpt-4-vision",@@ -113,10 +89,6 @@ exports[`configRouter > getGlobalConfig > Model Provider env > OPENAI_MODEL_LIST"enabled": true,"functionCall": true,"id": "gpt-4-1106-preview",- "pricing": {- "input": 10,- "output": 30,- },}`;diff --git a/src/server/services/discover/index.ts b/src/server/services/discover/index.tsindex 3a9e12f5dd7..b3ca68611d4 100644--- a/src/server/services/discover/index.ts+++ b/src/server/services/discover/index.ts@@ -43,6 +43,7 @@ import {ProviderQueryParams,ProviderSorts,} from '@/types/discover';+import { getAudioInputUnitRate, getTextInputUnitRate, getTextOutputUnitRate } from '@/utils/pricing';const log = debug('lobe-server:discover');@@ -1142,13 +1143,13 @@ export class DiscoverService {list = list.sort((a, b) => {if (order === 'asc') {return (- (a.pricing?.input || a.pricing?.audioInput || 0) -- (b.pricing?.input || b.pricing?.audioInput || 0)+ (getTextInputUnitRate(a.pricing) || getAudioInputUnitRate(a.pricing) || 0) -+ (getTextInputUnitRate(b.pricing) || getAudioInputUnitRate(b.pricing) || 0));} else {return (- (b.pricing?.input || b.pricing?.audioInput || 0) -- (a.pricing?.input || a.pricing?.audioInput || 0)+ (getTextInputUnitRate(b.pricing) || getAudioInputUnitRate(b.pricing) || 0) -+ (getTextInputUnitRate(a.pricing) || getAudioInputUnitRate(a.pricing) || 0));}});@@ -1157,9 +1158,9 @@ export class DiscoverService {case ModelSorts.OutputPrice: {list = list.sort((a, b) => {if (order === 'asc') {- return (a.pricing?.output || 0) - (b.pricing?.output || 0);+ return (getTextOutputUnitRate(a.pricing) || 0) - (getTextOutputUnitRate(b.pricing) || 0);} else {- return (b.pricing?.output || 0) - (a.pricing?.output || 0);+ return (getTextOutputUnitRate(b.pricing) || 0) - (getTextOutputUnitRate(a.pricing) || 0);}});break;diff --git a/src/server/services/user/index.ts b/src/server/services/user/index.tsindex 4c36f9c71a1..63b7f5f848a 100644--- a/src/server/services/user/index.ts+++ b/src/server/services/user/index.ts@@ -125,8 +125,7 @@ export class UserService {}return Buffer.from(file);} catch (error) {- // @ts-expect-error 这里很奇怪,升级了 pino 就报错,我怀疑是 pino 的问题- pino.error('Failed to get user avatar:', error);+ pino.error({ error }, 'Failed to get user avatar');}};}diff --git a/src/utils/__snapshots__/parseModels.test.ts.snap b/src/utils/__snapshots__/parseModels.test.ts.snapindex c59bc28cff5..3aae9df62d1 100644--- a/src/utils/__snapshots__/parseModels.test.ts.snap+++ b/src/utils/__snapshots__/parseModels.test.ts.snap@@ -112,8 +112,20 @@ exports[`transformToChatModelCards > should have file with builtin models like g"enabled": true,"id": "gpt-4-0125-preview","pricing": {- "input": 10,- "output": 30,+ "units": [+ {+ "name": "textInput",+ "rate": 10,+ "strategy": "fixed",+ "unit": "millionTokens",+ },+ {+ "name": "textOutput",+ "rate": 30,+ "strategy": "fixed",+ "unit": "millionTokens",+ },+ ],},"providerId": "openai","releasedAt": "2024-01-25",@@ -132,8 +144,20 @@ exports[`transformToChatModelCards > should have file with builtin models like g"enabled": true,"id": "gpt-4-turbo-2024-04-09","pricing": {- "input": 10,- "output": 30,+ "units": [+ {+ "name": "textInput",+ "rate": 10,+ "strategy": "fixed",+ "unit": "millionTokens",+ },+ {+ "name": "textOutput",+ "rate": 30,+ "strategy": "fixed",+ "unit": "millionTokens",+ },+ ],},"providerId": "openai","releasedAt": "2024-04-09",diff --git a/src/utils/_deprecated/__snapshots__/parseModels.test.ts.snap b/src/utils/_deprecated/__snapshots__/parseModels.test.ts.snapindex a96639a72be..877e7c3afb8 100644--- a/src/utils/_deprecated/__snapshots__/parseModels.test.ts.snap+++ b/src/utils/_deprecated/__snapshots__/parseModels.test.ts.snap@@ -89,10 +89,6 @@ exports[`transformToChatModelCards > should have file with builtin models like g"files": true,"functionCall": true,"id": "gpt-4-0125-preview",- "pricing": {- "input": 10,- "output": 30,- },},{"contextWindowTokens": 128000,@@ -102,10 +98,6 @@ exports[`transformToChatModelCards > should have file with builtin models like g"files": true,"functionCall": true,"id": "gpt-4-turbo-2024-04-09",- "pricing": {- "input": 10,- "output": 30,- },"vision": true,},]diff --git a/src/utils/parseModels.test.ts b/src/utils/parseModels.test.tsindex c437510bfac..f4273c676e2 100644--- a/src/utils/parseModels.test.ts+++ b/src/utils/parseModels.test.ts@@ -732,9 +732,26 @@ describe('transformToChatModelCards', () => {id: 'gpt-4o',maxOutput: 4096,pricing: {- cachedInput: 1.25,- input: 2.5,- output: 10,+ units: [+ {+ name: 'textInput_cacheRead',+ rate: 1.25,+ strategy: 'fixed',+ unit: 'millionTokens',+ },+ {+ name: 'textInput',+ rate: 2.5,+ strategy: 'fixed',+ unit: 'millionTokens',+ },+ {+ name: 'textOutput',+ rate: 10,+ strategy: 'fixed',+ unit: 'millionTokens',+ },+ ],},providerId: 'azure',releasedAt: '2024-05-13',@@ -753,9 +770,26 @@ describe('transformToChatModelCards', () => {id: 'gpt-4o-mini',maxOutput: 4096,pricing: {- cachedInput: 0.075,- input: 0.15,- output: 0.6,+ units: [+ {+ name: 'textInput_cacheRead',+ rate: 0.075,+ strategy: 'fixed',+ unit: 'millionTokens',+ },+ {+ name: 'textInput',+ rate: 0.15,+ strategy: 'fixed',+ unit: 'millionTokens',+ },+ {+ name: 'textOutput',+ rate: 0.6,+ strategy: 'fixed',+ unit: 'millionTokens',+ },+ ],},type: 'chat',},@@ -772,9 +806,26 @@ describe('transformToChatModelCards', () => {id: 'o1-mini',maxOutput: 65536,pricing: {- cachedInput: 0.55,- input: 1.1,- output: 4.4,+ units: [+ {+ name: 'textInput_cacheRead',+ rate: 0.55,+ strategy: 'fixed',+ unit: 'millionTokens',+ },+ {+ name: 'textInput',+ rate: 1.1,+ strategy: 'fixed',+ unit: 'millionTokens',+ },+ {+ name: 'textOutput',+ rate: 4.4,+ strategy: 'fixed',+ unit: 'millionTokens',+ },+ ],},releasedAt: '2024-09-12',type: 'chat',diff --git a/src/utils/pricing.test.ts b/src/utils/pricing.test.tsnew file mode 100644index 00000000000..76e944dd574--- /dev/null+++ b/src/utils/pricing.test.ts@@ -0,0 +1,183 @@+import { describe, expect, it } from 'vitest';++import { Pricing } from '@/types/aiModel';++import {+ getAudioInputUnitRate,+ getAudioOutputUnitRate,+ getCachedAudioInputUnitRate,+ getCachedTextInputUnitRate,+ getTextInputUnitRate,+ getTextOutputUnitRate,+ getUnitRateByName,+ getWriteCacheInputUnitRate,+} from './pricing';++describe('pricing utilities (new)', () => {+ describe('getUnitRateByName', () => {+ it('returns undefined when pricing or unitName is missing', () => {+ expect(getUnitRateByName()).toBeUndefined();+ const p = { units: [] } as Pricing;+ expect(getUnitRateByName(p)).toBeUndefined();+ });++ it('returns undefined when unit not found', () => {+ const pricing: Pricing = {+ units: [{ name: 'textOutput', strategy: 'fixed', unit: 'millionTokens', rate: 0.002 }],+ };+ expect(getUnitRateByName(pricing, 'textInput')).toBeUndefined();+ });++ it('handles fixed strategy', () => {+ const pricing: Pricing = {+ units: [{ name: 'textInput', strategy: 'fixed', unit: 'millionTokens', rate: 0.001 }],+ };+ expect(getUnitRateByName(pricing, 'textInput')).toBe(0.001);+ });++ it('handles tiered strategy (first tier)', () => {+ const pricing: Pricing = {+ units: [+ {+ name: 'audioInput',+ strategy: 'tiered',+ unit: 'second',+ tiers: [+ { rate: 0.01, upTo: 3600 },+ { rate: 0.008, upTo: 'infinity' },+ ],+ },+ ],+ };+ expect(getUnitRateByName(pricing, 'audioInput')).toBe(0.01);+ });++ it('returns undefined when tiered.tiers is absent or empty', () => {+ const noTiers: Pricing = {+ units: [+ { name: 'textInput', strategy: 'tiered', unit: 'millionTokens', tiers: undefined as any },+ ],+ };+ const emptyTiers: Pricing = {+ units: [{ name: 'textInput', strategy: 'tiered', unit: 'millionTokens', tiers: [] }],+ };+ expect(getUnitRateByName(noTiers, 'textInput')).toBeUndefined();+ expect(getUnitRateByName(emptyTiers, 'textInput')).toBeUndefined();+ });++ it('handles lookup strategy (first price value)', () => {+ const pricing: Pricing = {+ units: [+ {+ name: 'textInput',+ strategy: 'lookup',+ unit: 'millionTokens',+ lookup: {+ pricingParams: ['model'],+ prices: { a: 0.001, b: 0.03 },+ },+ },+ ],+ };+ expect(getUnitRateByName(pricing, 'textInput')).toBe(0.001);+ });++ it('returns undefined when lookup missing or has no prices', () => {+ const missingLookup: Pricing = {+ units: [+ {+ name: 'textInput',+ strategy: 'lookup',+ unit: 'millionTokens',+ lookup: undefined as any,+ },+ ],+ } as any;+ const emptyPrices: Pricing = {+ units: [+ {+ name: 'textInput',+ strategy: 'lookup',+ unit: 'millionTokens',+ lookup: { pricingParams: ['model'], prices: {} },+ },+ ],+ };+ expect(getUnitRateByName(missingLookup, 'textInput')).toBeUndefined();+ expect(getUnitRateByName(emptyPrices, 'textInput')).toBeUndefined();+ });++ it('works with multiple units', () => {+ const pricing: Pricing = {+ units: [+ { name: 'textInput', strategy: 'fixed', unit: 'millionTokens', rate: 0.001 },+ { name: 'textOutput', strategy: 'fixed', unit: 'millionTokens', rate: 0.002 },+ {+ name: 'audioInput',+ strategy: 'tiered',+ unit: 'second',+ tiers: [+ { rate: 0.01, upTo: 3600 },+ { rate: 0.008, upTo: 'infinity' },+ ],+ },+ ],+ };+ expect(getUnitRateByName(pricing, 'textInput')).toBe(0.001);+ expect(getUnitRateByName(pricing, 'textOutput')).toBe(0.002);+ expect(getUnitRateByName(pricing, 'audioInput')).toBe(0.01);+ });+ });++ describe('wrapper helpers', () => {+ it('return the same values as getUnitRateByName for each unit', () => {+ const pricing: Pricing = {+ units: [+ { name: 'textInput', strategy: 'fixed', unit: 'millionTokens', rate: 0.001 },+ { name: 'textOutput', strategy: 'fixed', unit: 'millionTokens', rate: 0.002 },+ {+ name: 'audioInput',+ strategy: 'tiered',+ unit: 'second',+ tiers: [+ { rate: 0.01, upTo: 3600 },+ { rate: 0.008, upTo: 'infinity' },+ ],+ },+ { name: 'audioOutput', strategy: 'fixed', unit: 'second', rate: 0.015 },+ { name: 'textInput_cacheRead', strategy: 'fixed', unit: 'millionTokens', rate: 0.0005 },+ {+ name: 'textInput_cacheWrite',+ strategy: 'lookup',+ unit: 'millionTokens',+ lookup: { pricingParams: ['ttl'], prices: { '5': 0.2, '60': 0.6 } },+ },+ { name: 'audioInput_cacheRead', strategy: 'fixed', unit: 'second', rate: 0.005 },+ ],+ };++ expect(getTextInputUnitRate(pricing)).toBe(getUnitRateByName(pricing, 'textInput'));+ expect(getTextOutputUnitRate(pricing)).toBe(getUnitRateByName(pricing, 'textOutput'));+ expect(getAudioInputUnitRate(pricing)).toBe(getUnitRateByName(pricing, 'audioInput'));+ expect(getAudioOutputUnitRate(pricing)).toBe(getUnitRateByName(pricing, 'audioOutput'));+ expect(getCachedTextInputUnitRate(pricing)).toBe(+ getUnitRateByName(pricing, 'textInput_cacheRead'),+ );+ expect(getWriteCacheInputUnitRate(pricing)).toBe(+ getUnitRateByName(pricing, 'textInput_cacheWrite'),+ );+ expect(getCachedAudioInputUnitRate(pricing)).toBe(+ getUnitRateByName(pricing, 'audioInput_cacheRead'),+ );++ // also validate expected concrete values for clarity+ expect(getTextInputUnitRate(pricing)).toBe(0.001);+ expect(getTextOutputUnitRate(pricing)).toBe(0.002);+ expect(getAudioInputUnitRate(pricing)).toBe(0.01);+ expect(getAudioOutputUnitRate(pricing)).toBe(0.015);+ expect(getCachedTextInputUnitRate(pricing)).toBe(0.0005);+ expect(getWriteCacheInputUnitRate(pricing)).toBe(0.2);+ expect(getCachedAudioInputUnitRate(pricing)).toBe(0.005);+ });+ });+});diff --git a/src/utils/pricing.ts b/src/utils/pricing.tsnew file mode 100644index 00000000000..3669db72cb7--- /dev/null+++ b/src/utils/pricing.ts@@ -0,0 +1,90 @@+import { Pricing, PricingUnit, PricingUnitName } from '@/types/aiModel';++/**+ * Internal helper to extract the displayed unit rate from a pricing unit by strategy+ * - fixed → rate+ * - tiered → tiers[0].rate+ * - lookup → first price value+ */+const getRateFromUnit = (unit: PricingUnit): number | undefined => {+ switch (unit.strategy) {+ case 'fixed': {+ return unit.rate;+ }+ case 'tiered': {+ return unit.tiers?.[0]?.rate;+ }+ case 'lookup': {+ const prices = Object.values(unit.lookup?.prices || {});+ return prices[0];+ }+ default: {+ return undefined;+ }+ }+};++/**+ * Get unit rate by unit name, used to deduplicate logic across helpers+ */+export const getUnitRateByName = (+ pricing?: Pricing,+ unitName?: PricingUnitName,+): number | undefined => {+ if (!pricing?.units || !unitName) return undefined;+ const unit = pricing.units.find((u) => u.name === unitName);+ if (!unit) return undefined;+ return getRateFromUnit(unit);+};++/**+ * Get text input unit rate from pricing+ * - fixed → rate+ * - tiered → tiers[0].rate+ * - lookup → Object.values(lookup.prices)[0]+ */+export function getTextInputUnitRate(pricing?: Pricing): number | undefined {+ return getUnitRateByName(pricing, 'textInput');+}++/**+ * Get text output unit rate from pricing+ */+export function getTextOutputUnitRate(pricing?: Pricing): number | undefined {+ return getUnitRateByName(pricing, 'textOutput');+}++/**+ * Get audio input unit rate from pricing+ */+export function getAudioInputUnitRate(pricing?: Pricing): number | undefined {+ return getUnitRateByName(pricing, 'audioInput');+}++/**+ * Get audio output unit rate from pricing+ */+export function getAudioOutputUnitRate(pricing?: Pricing): number | undefined {+ return getUnitRateByName(pricing, 'audioOutput');+}++/**+ * Get cached text input unit rate from pricing+ */+export function getCachedTextInputUnitRate(pricing?: Pricing): number | undefined {+ return getUnitRateByName(pricing, 'textInput_cacheRead');+}++/**+ * Get write cache input unit rate from pricing (TextInputCacheWrite)+ */+export function getWriteCacheInputUnitRate(pricing?: Pricing): number | undefined {+ return getUnitRateByName(pricing, 'textInput_cacheWrite');+}++/**+ * Get cached audio input unit rate from pricing+ */+export function getCachedAudioInputUnitRate(pricing?: Pricing): number | undefined {+ return getUnitRateByName(pricing, 'audioInput_cacheRead');+}