feat(providers): sync upstream, rename minimaxi to minimax-cn

This commit is contained in:
藍+85CD committed 2025-12-05 15:36:19 +08:00
1 parent f3db2f7e96
commit 67b75de9dc
7 files changed
+69 -76

No files matched your search

@@ -2,22 +2,6 @@ import type { CodeGenProvider } from './types'
// TODO: cohere 'https://api.cohere.ai/compatibility/v1/'
export const extraProviders: CodeGenProvider[] = [
// {
// apiKey: ['MINIMAX_API_KEY'],
// baseURL: 'https://api.minimax.io/v1/',
// doc: 'https://platform.minimax.io/docs/api-reference/text-openai-api',
// id: 'minimax',
// models: [],
// name: 'Minimax',
// },
{
apiKey: ['MINIMAX_API_KEY'],
baseURL: 'https://api.minimaxi.com/v1/',
doc: 'https://platform.minimaxi.com/docs/api-reference/text-openai-api',
id: 'minimaxi',
models: [],
name: 'Minimaxi',
},
{
apiKey: ['NOVITA_API_KEY'],
baseURL: 'https://api.novita.ai/v3/openai/',
@@ -42,6 +42,9 @@ export const overrides: Record<string, Partial<Provider>> = {
'minimax': {
api: 'https://api.minimax.io/v1/',
},
'minimax-cn': {
api: 'https://api.minimaxi.com/v1/',
},
'mistral': {
_capabilities: {
embed: true,
+28 -28
View File
@@ -155,7 +155,7 @@ export const createAlibabaCn = (apiKey: string, baseURL = 'https://dashscope.ali
* @see {@link https://docs.venice.ai}
*/
export const createVenice = (apiKey: string, baseURL = 'https://api.venice.ai/api/v1') => merge(
createChatProvider<'dolphin-2.9.2-qwen2-72b' | 'mistral-31-24b' | 'venice-uncensored' | 'qwen-2.5-vl' | 'qwen3-235b' | 'qwen-2.5-qwq-32b' | 'deepseek-coder-v2-lite' | 'qwen3-4b' | 'llama-3.3-70b' | 'qwen-2.5-coder-32b' | 'deepseek-r1-671b' | 'llama-3.2-3b' | 'llama-3.1-405b' | 'zai-org-glm-4.6'>({ apiKey, baseURL }),
createChatProvider<'grok-41-fast' | 'dolphin-2.9.2-qwen2-72b' | 'mistral-31-24b' | 'venice-uncensored' | 'gemini-3-pro-preview' | 'qwen-2.5-vl' | 'qwen3-235b' | 'qwen-2.5-qwq-32b' | 'deepseek-coder-v2-lite' | 'qwen3-4b' | 'llama-3.3-70b' | 'qwen-2.5-coder-32b' | 'kimi-k2-thinking' | 'deepseek-r1-671b' | 'llama-3.2-3b' | 'llama-3.1-405b' | 'zai-org-glm-4.6'>({ apiKey, baseURL }),
createModelProvider({ apiKey, baseURL }),
)
@@ -164,16 +164,16 @@ export const createVenice = (apiKey: string, baseURL = 'https://api.venice.ai/ap
* @see {@link https://llm.chutes.ai/v1/models}
*/
export const createChutes = (apiKey: string, baseURL = 'https://llm.chutes.ai/v1') => merge(
createChatProvider<'NousResearch/Hermes-4-70B' | 'NousResearch/Hermes-4-14B' | 'NousResearch/Hermes-4-405B-FP8' | 'NousResearch/DeepHermes-3-Mistral-24B-Preview' | 'rednote-hilab/dots.ocr' | 'moonshotai/Kimi-K2-Instruct-0905' | 'moonshotai/Kimi-K2-Thinking' | 'MiniMaxAI/MiniMax-M2' | 'ArliAI/QwQ-32B-ArliAI-RpR-v1' | 'meituan-longcat/LongCat-Flash-Chat-FP8' | 'tngtech/DeepSeek-R1T-Chimera' | 'tngtech/DeepSeek-TNG-R1T2-Chimera' | 'OpenGVLab/InternVL3-78B' | 'microsoft/MAI-DS-R1-FP8' | 'openai/gpt-oss-20b' | 'openai/gpt-oss-120b' | 'chutesai/Mistral-Small-3.1-24B-Instruct-2503' | 'chutesai/Mistral-Small-3.2-24B-Instruct-2506' | 'Alibaba-NLP/Tongyi-DeepResearch-30B-A3B' | 'unsloth/Mistral-Nemo-Instruct-2407' | 'unsloth/gemma-3-4b-it' | 'unsloth/Mistral-Small-24B-Instruct-2501' | 'unsloth/gemma-3-12b-it' | 'unsloth/gemma-3-27b-it' | 'Qwen/Qwen3-30B-A3B' | 'Qwen/Qwen3-14B' | 'Qwen/Qwen2.5-VL-32B-Instruct' | 'Qwen/Qwen3-235B-A22B-Instruct-2507' | 'Qwen/Qwen2.5-Coder-32B-Instruct' | 'Qwen/Qwen2.5-72B-Instruct' | 'Qwen/Qwen3-Coder-30B-A3B-Instruct' | 'Qwen/Qwen3-235B-A22B' | 'Qwen/Qwen2.5-VL-72B-Instruct' | 'Qwen/Qwen3-32B' | 'Qwen/Qwen3-Coder-480B-A35B-Instruct-FP8' | 'Qwen/Qwen3-VL-235B-A22B-Instruct' | 'Qwen/Qwen3-VL-235B-A22B-Thinking' | 'Qwen/Qwen3-30B-A3B-Instruct-2507' | 'Qwen/Qwen3-235B-A22B-Thinking-2507' | 'Qwen/Qwen3-Next-80B-A3B-Instruct' | 'zai-org/GLM-4.5' | 'zai-org/GLM-4.6' | 'zai-org/GLM-4.5-Air' | 'deepseek-ai/DeepSeek-R1' | 'deepseek-ai/DeepSeek-R1-0528-Qwen3-8B' | 'deepseek-ai/DeepSeek-R1-0528' | 'deepseek-ai/DeepSeek-V3.2-Exp' | 'deepseek-ai/DeepSeek-V3.1-Terminus' | 'deepseek-ai/DeepSeek-V3' | 'deepseek-ai/DeepSeek-R1-Distill-Llama-70B' | 'deepseek-ai/DeepSeek-V3.1' | 'deepseek-ai/DeepSeek-V3-0324'>({ apiKey, baseURL }),
createChatProvider<'NousResearch/Hermes-4-70B' | 'NousResearch/Hermes-4-14B' | 'NousResearch/Hermes-4-405B-FP8' | 'NousResearch/DeepHermes-3-Mistral-24B-Preview' | 'rednote-hilab/dots.ocr' | 'moonshotai/Kimi-K2-Instruct-0905' | 'moonshotai/Kimi-K2-Thinking' | 'MiniMaxAI/MiniMax-M2' | 'ArliAI/QwQ-32B-ArliAI-RpR-v1' | 'meituan-longcat/LongCat-Flash-Chat-FP8' | 'tngtech/DeepSeek-R1T-Chimera' | 'tngtech/DeepSeek-TNG-R1T2-Chimera' | 'tngtech/TNG-R1T-Chimera' | 'OpenGVLab/InternVL3-78B' | 'microsoft/MAI-DS-R1-FP8' | 'openai/gpt-oss-20b' | 'openai/gpt-oss-120b' | 'chutesai/Mistral-Small-3.1-24B-Instruct-2503' | 'chutesai/Mistral-Small-3.2-24B-Instruct-2506' | 'Alibaba-NLP/Tongyi-DeepResearch-30B-A3B' | 'unsloth/Mistral-Nemo-Instruct-2407' | 'unsloth/gemma-3-4b-it' | 'unsloth/Mistral-Small-24B-Instruct-2501' | 'unsloth/gemma-3-12b-it' | 'unsloth/gemma-3-27b-it' | 'Qwen/Qwen3-30B-A3B' | 'Qwen/Qwen3-14B' | 'Qwen/Qwen2.5-VL-32B-Instruct' | 'Qwen/Qwen3-235B-A22B-Instruct-2507' | 'Qwen/Qwen2.5-Coder-32B-Instruct' | 'Qwen/Qwen2.5-72B-Instruct' | 'Qwen/Qwen3-Coder-30B-A3B-Instruct' | 'Qwen/Qwen3-235B-A22B' | 'Qwen/Qwen2.5-VL-72B-Instruct' | 'Qwen/Qwen3-32B' | 'Qwen/Qwen3-Coder-480B-A35B-Instruct-FP8' | 'Qwen/Qwen3-VL-235B-A22B-Instruct' | 'Qwen/Qwen3-VL-235B-A22B-Thinking' | 'Qwen/Qwen3-30B-A3B-Instruct-2507' | 'Qwen/Qwen3-235B-A22B-Thinking-2507' | 'Qwen/Qwen3-Next-80B-A3B-Instruct' | 'zai-org/GLM-4.5' | 'zai-org/GLM-4.6' | 'zai-org/GLM-4.5-Air' | 'deepseek-ai/DeepSeek-R1' | 'deepseek-ai/DeepSeek-R1-0528-Qwen3-8B' | 'deepseek-ai/DeepSeek-R1-0528' | 'deepseek-ai/DeepSeek-V3.1-Terminus' | 'deepseek-ai/DeepSeek-V3.2' | 'deepseek-ai/DeepSeek-V3.2-Speciale' | 'deepseek-ai/DeepSeek-V3' | 'deepseek-ai/DeepSeek-R1-Distill-Llama-70B' | 'deepseek-ai/DeepSeek-V3.1' | 'deepseek-ai/DeepSeek-V3-0324'>({ apiKey, baseURL }),
createModelProvider({ apiKey, baseURL }),
)
/**
* Create a AgentRouter Provider
* @see {@link https://docs.agentrouter.org}
* Create a Kimi For Coding Provider
* @see {@link https://www.kimi.com/coding/docs/en/third-party-agents.html}
*/
export const createAgentrouter = (apiKey: string, baseURL = 'https://agentrouter.org/v1') => merge(
createChatProvider<'claude-3-5-sonnet-20241022' | 'deepseek-r1-0528' | 'claude-sonnet-4-20250514-thinking' | 'glm-4.5' | 'claude-3-5-sonnet-20240620' | 'gemini-3-pro-preview' | 'claude-3-7-sonnet-20250219-thinking' | 'deepseek-v3.1' | 'claude-sonnet-4-5-20250929' | 'kimi-k2-thinking' | 'gpt-5.1' | 'claude-sonnet-4-20250514' | 'glm-4.6' | 'claude-opus-4-20250514' | 'claude-3-5-haiku-20241022' | 'claude-3-7-sonnet-20250219' | 'gpt-5' | 'claude-opus-4-20250514-thinking' | 'deepseek-v3.2' | 'claude-haiku-4-5-20251001'>({ apiKey, baseURL }),
export const createKimiForCoding = (apiKey: string, baseURL = 'https://api.kimi.com/coding/v1') => merge(
createChatProvider<'kimi-k2-thinking'>({ apiKey, baseURL }),
createModelProvider({ apiKey, baseURL }),
)
@@ -244,7 +244,7 @@ export const createFastrouter = (apiKey: string, baseURL = 'https://go.fastroute
)
/**
* Create a Minimax Provider
* Create a MiniMax Provider
* @see {@link https://platform.minimax.io/docs/guides/quickstart}
*/
export const createMinimax = (apiKey: string, baseURL = 'https://api.minimax.io/v1/') => merge(
@@ -285,7 +285,7 @@ export const createWandb = (apiKey: string, baseURL = 'https://api.inference.wan
* @see {@link https://platform.openai.com/docs/models}
*/
export const createOpenAI = (apiKey: string, baseURL = 'https://api.openai.com/v1/') => merge(
createChatProvider<'gpt-4.1-nano' | 'text-embedding-3-small' | 'gpt-4' | 'o1-pro' | 'gpt-4o-2024-05-13' | 'gpt-5.1-codex' | 'gpt-4o-2024-08-06' | 'gpt-4.1-mini' | 'o3-deep-research' | 'gpt-3.5-turbo' | 'text-embedding-3-large' | 'gpt-4-turbo' | 'o1-preview' | 'gpt-5.1-codex-mini' | 'o3-mini' | 'gpt-5.1' | 'codex-mini-latest' | 'gpt-5-nano' | 'gpt-5-codex' | 'gpt-4o' | 'gpt-4.1' | 'o4-mini' | 'o1' | 'gpt-5-mini' | 'o1-mini' | 'text-embedding-ada-002' | 'o3-pro' | 'gpt-4o-2024-11-20' | 'o3' | 'o4-mini-deep-research' | 'gpt-5-chat-latest' | 'gpt-4o-mini' | 'gpt-5' | 'gpt-5-pro' | 'gpt-5.1-chat-latest'>({ apiKey, baseURL }),
createChatProvider<'gpt-4.1-nano' | 'text-embedding-3-small' | 'gpt-4' | 'o1-pro' | 'gpt-4o-2024-05-13' | 'gpt-5.1-codex' | 'gpt-4o-2024-08-06' | 'gpt-4.1-mini' | 'o3-deep-research' | 'gpt-3.5-turbo' | 'text-embedding-3-large' | 'gpt-4-turbo' | 'o1-preview' | 'gpt-5.1-codex-mini' | 'o3-mini' | 'gpt-5.1' | 'codex-mini-latest' | 'gpt-5-nano' | 'gpt-5-codex' | 'gpt-4o' | 'gpt-4.1' | 'o4-mini' | 'o1' | 'gpt-5-mini' | 'o1-mini' | 'text-embedding-ada-002' | 'o3-pro' | 'gpt-4o-2024-11-20' | 'gpt-5.1-codex-max' | 'o3' | 'o4-mini-deep-research' | 'gpt-5-chat-latest' | 'gpt-4o-mini' | 'gpt-5' | 'gpt-5-pro' | 'gpt-5.1-chat-latest'>({ apiKey, baseURL }),
createModelProvider({ apiKey, baseURL }),
createEmbedProvider({ apiKey, baseURL }),
createImageProvider({ apiKey, baseURL }),
@@ -302,6 +302,15 @@ export const createZhipuaiCodingPlan = (apiKey: string, baseURL = 'https://open.
createModelProvider({ apiKey, baseURL }),
)
/**
* Create a MiniMax (China) Provider
* @see {@link https://platform.minimaxi.com/docs/guides/quickstart}
*/
export const createMinimaxCn = (apiKey: string, baseURL = 'https://api.minimaxi.com/v1/') => merge(
createChatProvider<'MiniMax-M2'>({ apiKey, baseURL }),
createModelProvider({ apiKey, baseURL }),
)
/**
* Create a Perplexity Provider
* @see {@link https://docs.perplexity.ai}
@@ -334,7 +343,7 @@ export const createOvhcloud = (apiKey: string, baseURL = 'https://oai.endpoints.
* @see {@link https://platform.iflow.cn/en/docs}
*/
export const createIflowcn = (apiKey: string, baseURL = 'https://apis.iflow.cn/v1') => merge(
createChatProvider<'qwen3-coder' | 'deepseek-v3' | 'kimi-k2' | 'deepseek-r1' | 'deepseek-v3.1' | 'minimax-m2' | 'qwen3-235b' | 'kimi-k2-0905' | 'qwen3-235b-a22b-thinking-2507' | 'qwen3-vl-plus' | 'glm-4.6' | 'tstars2.0' | 'qwen3-235b-a22b-instruct' | 'qwen3-max' | 'deepseek-v3.2' | 'qwen3-max-preview' | 'qwen3-coder-plus' | 'qwen3-32b'>({ apiKey, baseURL }),
createChatProvider<'qwen3-coder' | 'deepseek-v3' | 'kimi-k2' | 'deepseek-r1' | 'deepseek-v3.1' | 'minimax-m2' | 'qwen3-235b' | 'deepseek-v3.2-chat' | 'kimi-k2-0905' | 'kimi-k2-thinking' | 'qwen3-235b-a22b-thinking-2507' | 'qwen3-vl-plus' | 'glm-4.6' | 'tstars2.0' | 'qwen3-235b-a22b-instruct' | 'qwen3-max' | 'deepseek-v3.2' | 'qwen3-max-preview' | 'qwen3-coder-plus' | 'qwen3-32b'>({ apiKey, baseURL }),
createModelProvider({ apiKey, baseURL }),
)
@@ -343,7 +352,7 @@ export const createIflowcn = (apiKey: string, baseURL = 'https://apis.iflow.cn/v
* @see {@link https://synthetic.new/pricing}
*/
export const createSynthetic = (apiKey: string, baseURL = 'https://api.synthetic.new/v1') => merge(
createChatProvider<'hf:Qwen/Qwen3-235B-A22B-Instruct-2507' | 'hf:Qwen/Qwen2.5-Coder-32B-Instruct' | 'hf:Qwen/Qwen3-Coder-480B-A35B-Instruct' | 'hf:Qwen/Qwen3-235B-A22B-Thinking-2507' | 'hf:MiniMaxAI/MiniMax-M2' | 'hf:meta-llama/Llama-3.1-70B-Instruct' | 'hf:meta-llama/Llama-3.1-8B-Instruct' | 'hf:meta-llama/Llama-3.3-70B-Instruct' | 'hf:meta-llama/Llama-4-Scout-17B-16E-Instruct' | 'hf:meta-llama/Llama-4-Maverick-17B-128E-Instruct-FP8' | 'hf:meta-llama/Llama-3.1-405B-Instruct' | 'hf:moonshotai/Kimi-K2-Instruct' | 'hf:moonshotai/Kimi-K2-Instruct-0905' | 'hf:moonshotai/Kimi-K2-Thinking' | 'hf:zai-org/GLM-4.5' | 'hf:zai-org/GLM-4.6' | 'hf:deepseek-ai/DeepSeek-R1' | 'hf:deepseek-ai/DeepSeek-R1-0528' | 'hf:deepseek-ai/DeepSeek-V3.1-Terminus' | 'hf:deepseek-ai/DeepSeek-V3' | 'hf:deepseek-ai/DeepSeek-V3.1' | 'hf:deepseek-ai/DeepSeek-V3-0324' | 'hf:openai/gpt-oss-120b'>({ apiKey, baseURL }),
createChatProvider<'hf:Qwen/Qwen3-235B-A22B-Instruct-2507' | 'hf:Qwen/Qwen2.5-Coder-32B-Instruct' | 'hf:Qwen/Qwen3-Coder-480B-A35B-Instruct' | 'hf:Qwen/Qwen3-235B-A22B-Thinking-2507' | 'hf:MiniMaxAI/MiniMax-M2' | 'hf:meta-llama/Llama-3.1-70B-Instruct' | 'hf:meta-llama/Llama-3.1-8B-Instruct' | 'hf:meta-llama/Llama-3.3-70B-Instruct' | 'hf:meta-llama/Llama-4-Scout-17B-16E-Instruct' | 'hf:meta-llama/Llama-4-Maverick-17B-128E-Instruct-FP8' | 'hf:meta-llama/Llama-3.1-405B-Instruct' | 'hf:moonshotai/Kimi-K2-Instruct' | 'hf:moonshotai/Kimi-K2-Instruct-0905' | 'hf:moonshotai/Kimi-K2-Thinking' | 'hf:zai-org/GLM-4.5' | 'hf:zai-org/GLM-4.6' | 'hf:deepseek-ai/DeepSeek-R1' | 'hf:deepseek-ai/DeepSeek-R1-0528' | 'hf:deepseek-ai/DeepSeek-V3.1-Terminus' | 'hf:deepseek-ai/DeepSeek-V3.2' | 'hf:deepseek-ai/DeepSeek-V3' | 'hf:deepseek-ai/DeepSeek-V3.1' | 'hf:deepseek-ai/DeepSeek-V3-0324' | 'hf:openai/gpt-oss-120b'>({ apiKey, baseURL }),
createModelProvider({ apiKey, baseURL }),
)
@@ -420,15 +429,6 @@ export const createLmstudio = (apiKey: string, baseURL = 'http://127.0.0.1:1234/
createModelProvider({ apiKey, baseURL }),
)
/**
* Create a IO Intelligence Provider
* @see {@link https://io.net/docs/guides/intelligence/io-intelligence}
*/
export const createIoIntelligence = (apiKey: string, baseURL = 'https://api.intelligence.io.solutions/api/v1') => merge(
createChatProvider<'deepseek-ai-deepseek-r1-0528' | 'mistralai-magistral-small-2506' | 'intel-qwen3-coder-480b-a35b-instruct-int4-mixed-ar' | 'qwen-qwen3-235b-a22b-thinking-2507' | 'mistralai-devstral-small-2505' | 'qwen-qwen2-5-vl-32b-instruct' | 'moonshotai-kimi-k2-instruct-0905' | 'meta-llama-llama-4-maverick-17b-128e-instruct-fp8' | 'openai-gpt-oss-120b' | 'meta-llama-llama-3-3-70b-instruct' | 'zai-org-glm-4-6' | 'openai-gpt-oss-20b' | 'mistralai-mistral-large-instruct-2411' | 'meta-llama-llama-3-2-90b-vision-instruct' | 'mistralai-mistral-nemo-instruct-2407' | 'qwen-qwen3-next-80b-a3b-instruct' | 'moonshotai-kimi-k2-thinking'>({ apiKey, baseURL }),
createModelProvider({ apiKey, baseURL }),
)
/**
* Create a Fireworks AI Provider
* @see {@link https://fireworks.ai/docs/}
@@ -438,6 +438,15 @@ export const createFireworks = (apiKey: string, baseURL = 'https://api.fireworks
createModelProvider({ apiKey, baseURL }),
)
/**
* Create a IO.NET Provider
* @see {@link https://io.net/docs/guides/intelligence/io-intelligence}
*/
export const createIoNet = (apiKey: string, baseURL = 'https://api.intelligence.io.solutions/api/v1') => merge(
createChatProvider<'moonshotai/Kimi-K2-Instruct-0905' | 'moonshotai/Kimi-K2-Thinking' | 'openai/gpt-oss-20b' | 'openai/gpt-oss-120b' | 'mistralai/Devstral-Small-2505' | 'mistralai/Mistral-Nemo-Instruct-2407' | 'mistralai/Magistral-Small-2506' | 'mistralai/Mistral-Large-Instruct-2411' | 'meta-llama/Llama-3.3-70B-Instruct' | 'meta-llama/Llama-4-Maverick-17B-128E-Instruct-FP8' | 'meta-llama/Llama-3.2-90B-Vision-Instruct' | 'Intel/Qwen3-Coder-480B-A35B-Instruct-int4-mixed-ar' | 'Qwen/Qwen2.5-VL-32B-Instruct' | 'Qwen/Qwen3-235B-A22B-Thinking-2507' | 'Qwen/Qwen3-Next-80B-A3B-Instruct' | 'zai-org/GLM-4.6' | 'deepseek-ai/DeepSeek-R1-0528'>({ apiKey, baseURL }),
createModelProvider({ apiKey, baseURL }),
)
/**
* Create a ModelScope Provider
* @see {@link https://modelscope.cn/docs/model-service/API-Inference/intro}
@@ -484,15 +493,6 @@ export const createCerebras = (apiKey: string, baseURL = 'https://api.cerebras.a
createEmbedProvider({ apiKey, baseURL }),
)
/**
* Create a Minimaxi Provider
* @see {@link https://platform.minimaxi.com/docs/api-reference/text-openai-api}
*/
export const createMinimaxi = (apiKey: string, baseURL = 'https://api.minimaxi.com/v1/') => merge(
createChatProvider({ apiKey, baseURL }),
createModelProvider({ apiKey, baseURL }),
)
/**
* Create a Novita AI Provider
* @see {@link https://novita.ai/docs/guides/llm-api#api-integration}
+27 -27
View File
@@ -21,7 +21,7 @@ import {
createAlibabaCn,
createVenice,
createChutes,
createAgentrouter,
createKimiForCoding,
createCortecs,
createGithubModels,
createBaseten,
@@ -35,6 +35,7 @@ import {
createWandb,
createOpenAI,
createZhipuaiCodingPlan,
createMinimaxCn,
createPerplexity,
createZenmux,
createOvhcloud,
@@ -48,14 +49,13 @@ import {
createRequesty,
createMorph,
createLmstudio,
createIoIntelligence,
createFireworks,
createIoNet,
createModelscope,
createLlama,
createScaleway,
createPoe,
createCerebras,
createMinimaxi,
createNovita,
createStepfun,
createTencentHunyuan,
@@ -224,13 +224,13 @@ export const venice = createVenice(process.env.VENICE_API_KEY ?? '')
export const chutes = createChutes(process.env.CHUTES_API_KEY ?? '')
/**
* AgentRouter Provider
* @see {@link https://docs.agentrouter.org}
* Kimi For Coding Provider
* @see {@link https://www.kimi.com/coding/docs/en/third-party-agents.html}
* @remarks
* - baseURL - `https://agentrouter.org/v1`
* - apiKey - `AGENTROUTER_API_KEY`
* - baseURL - `https://api.kimi.com/coding/v1`
* - apiKey - `KIMI_API_KEY`
*/
export const agentrouter = createAgentrouter(process.env.AGENTROUTER_API_KEY ?? '')
export const kimiForCoding = createKimiForCoding(process.env.KIMI_API_KEY ?? '')
/**
* Cortecs Provider
@@ -296,7 +296,7 @@ export const opencode = createOpencode(process.env.OPENCODE_API_KEY ?? '')
export const fastrouter = createFastrouter(process.env.FASTROUTER_API_KEY ?? '')
/**
* Minimax Provider
* MiniMax Provider
* @see {@link https://platform.minimax.io/docs/guides/quickstart}
* @remarks
* - baseURL - `https://api.minimax.io/v1/`
@@ -349,6 +349,15 @@ export const openai = createOpenAI(process.env.OPENAI_API_KEY ?? '')
*/
export const zhipuaiCodingPlan = createZhipuaiCodingPlan(process.env.ZHIPU_API_KEY ?? '')
/**
* MiniMax (China) Provider
* @see {@link https://platform.minimaxi.com/docs/guides/quickstart}
* @remarks
* - baseURL - `https://api.minimaxi.com/v1/`
* - apiKey - `MINIMAX_API_KEY`
*/
export const minimaxCn = createMinimaxCn(process.env.MINIMAX_API_KEY ?? '')
/**
* Perplexity Provider
* @see {@link https://docs.perplexity.ai}
@@ -466,15 +475,6 @@ export const morph = createMorph(process.env.MORPH_API_KEY ?? '')
*/
export const lmstudio = createLmstudio(process.env.LMSTUDIO_API_KEY ?? '')
/**
* IO Intelligence Provider
* @see {@link https://io.net/docs/guides/intelligence/io-intelligence}
* @remarks
* - baseURL - `https://api.intelligence.io.solutions/api/v1`
* - apiKey - `IOINTELLIGENCE_API_KEY`
*/
export const ioIntelligence = createIoIntelligence(process.env.IOINTELLIGENCE_API_KEY ?? '')
/**
* Fireworks AI Provider
* @see {@link https://fireworks.ai/docs/}
@@ -484,6 +484,15 @@ export const ioIntelligence = createIoIntelligence(process.env.IOINTELLIGENCE_AP
*/
export const fireworks = createFireworks(process.env.FIREWORKS_API_KEY ?? '')
/**
* IO.NET Provider
* @see {@link https://io.net/docs/guides/intelligence/io-intelligence}
* @remarks
* - baseURL - `https://api.intelligence.io.solutions/api/v1`
* - apiKey - `IOINTELLIGENCE_API_KEY`
*/
export const ioNet = createIoNet(process.env.IOINTELLIGENCE_API_KEY ?? '')
/**
* ModelScope Provider
* @see {@link https://modelscope.cn/docs/model-service/API-Inference/intro}
@@ -529,15 +538,6 @@ export const poe = createPoe(process.env.POE_API_KEY ?? '')
*/
export const cerebras = createCerebras(process.env.CEREBRAS_API_KEY ?? '')
/**
* Minimaxi Provider
* @see {@link https://platform.minimaxi.com/docs/api-reference/text-openai-api}
* @remarks
* - baseURL - `https://api.minimaxi.com/v1/`
* - apiKey - `MINIMAX_API_KEY`
*/
export const minimaxi = createMinimaxi(process.env.MINIMAX_API_KEY ?? '')
/**
* Novita AI Provider
* @see {@link https://novita.ai/docs/guides/llm-api#api-integration}
@@ -2,12 +2,12 @@
/* eslint-disable perfectionist/sort-union-types */
export type OpenrouterModels = 'moonshotai/kimi-k2' | 'moonshotai/kimi-k2-0905' | 'moonshotai/kimi-dev-72b:free' | 'moonshotai/kimi-k2-thinking' | 'moonshotai/kimi-k2-0905:exacto' | 'moonshotai/kimi-k2:free' | 'thudm/glm-z1-32b:free' | 'nousresearch/hermes-4-70b' | 'nousresearch/hermes-4-405b' | 'nousresearch/deephermes-3-llama-3-8b-preview' | 'nvidia/nemotron-nano-9b-v2' | 'x-ai/grok-4' | 'x-ai/grok-code-fast-1' | 'x-ai/grok-3' | 'x-ai/grok-4-fast' | 'x-ai/grok-3-beta' | 'x-ai/grok-3-mini-beta' | 'x-ai/grok-3-mini' | 'x-ai/grok-4.1-fast' | 'kwaipilot/kat-coder-pro:free' | 'cognitivecomputations/dolphin3.0-mistral-24b' | 'cognitivecomputations/dolphin3.0-r1-mistral-24b' | 'deepseek/deepseek-chat-v3.1' | 'deepseek/deepseek-r1:free' | 'deepseek/deepseek-v3-base:free' | 'deepseek/deepseek-v3.1-terminus' | 'deepseek/deepseek-r1-0528-qwen3-8b:free' | 'deepseek/deepseek-chat-v3-0324' | 'deepseek/deepseek-r1-0528:free' | 'deepseek/deepseek-r1-distill-llama-70b' | 'deepseek/deepseek-r1-distill-qwen-14b' | 'deepseek/deepseek-v3.1-terminus:exacto' | 'featherless/qwerky-72b' | 'tngtech/deepseek-r1t2-chimera:free' | 'minimax/minimax-m1' | 'minimax/minimax-m2' | 'minimax/minimax-01' | 'google/gemini-2.0-flash-001' | 'google/gemma-2-9b-it:free' | 'google/gemini-3-pro-preview' | 'google/gemini-2.5-flash' | 'google/gemini-2.5-pro-preview-05-06' | 'google/gemma-3n-e4b-it' | 'google/gemini-2.5-flash-lite' | 'google/gemini-2.5-pro-preview-06-05' | 'google/gemini-2.5-flash-preview-09-2025' | 'google/gemini-2.5-pro' | 'google/gemma-3-12b-it' | 'google/gemma-3n-e4b-it:free' | 'google/gemini-2.5-flash-lite-preview-09-2025' | 'google/gemini-2.0-flash-exp:free' | 'google/gemma-3-27b-it' | 'microsoft/mai-ds-r1:free' | 'openai/gpt-oss-safeguard-20b' | 'openai/gpt-5.1-codex' | 'openai/gpt-4.1-mini' | 'openai/gpt-5-chat' | 'openai/gpt-5.1-codex-mini' | 'openai/gpt-5.1' | 'openai/gpt-5-nano' | 'openai/gpt-5-codex' | 'openai/gpt-4.1' | 'openai/gpt-oss-120b:exacto' | 'openai/o4-mini' | 'openai/gpt-5.1-chat' | 'openai/gpt-5-mini' | 'openai/gpt-5-image' | 'openai/gpt-oss-20b' | 'openai/gpt-oss-120b' | 'openai/gpt-4o-mini' | 'openai/gpt-5' | 'openai/gpt-5-pro' | 'z-ai/glm-4.5' | 'z-ai/glm-4.5-air' | 'z-ai/glm-4.5v' | 'z-ai/glm-4.6' | 'z-ai/glm-4.6:exacto' | 'z-ai/glm-4.5-air:free' | 'qwen/qwen3-coder' | 'qwen/qwen3-32b:free' | 'qwen/qwen3-next-80b-a3b-instruct' | 'qwen/qwen-2.5-coder-32b-instruct' | 'qwen/qwen3-235b-a22b:free' | 'qwen/qwen3-coder-flash' | 'qwen/qwq-32b:free' | 'qwen/qwen3-30b-a3b-thinking-2507' | 'qwen/qwen3-30b-a3b:free' | 'qwen/qwen2.5-vl-72b-instruct' | 'qwen/qwen3-14b:free' | 'qwen/qwen3-30b-a3b-instruct-2507' | 'qwen/qwen3-235b-a22b-thinking-2507' | 'qwen/qwen2.5-vl-32b-instruct:free' | 'qwen/qwen2.5-vl-72b-instruct:free' | 'qwen/qwen3-235b-a22b-07-25:free' | 'qwen/qwen3-coder:free' | 'qwen/qwen3-235b-a22b-07-25' | 'qwen/qwen3-8b:free' | 'qwen/qwen3-max' | 'qwen/qwen3-next-80b-a3b-thinking' | 'qwen/qwen3-coder:exacto' | 'mistralai/devstral-medium-2507' | 'mistralai/codestral-2508' | 'mistralai/mistral-7b-instruct:free' | 'mistralai/devstral-small-2505' | 'mistralai/mistral-small-3.2-24b-instruct' | 'mistralai/devstral-small-2505:free' | 'mistralai/mistral-small-3.2-24b-instruct:free' | 'mistralai/mistral-medium-3' | 'mistralai/mistral-small-3.1-24b-instruct' | 'mistralai/devstral-small-2507' | 'mistralai/mistral-medium-3.1' | 'mistralai/mistral-nemo:free' | 'rekaai/reka-flash-3' | 'meta-llama/llama-3.2-11b-vision-instruct' | 'meta-llama/llama-3.3-70b-instruct:free' | 'meta-llama/llama-4-scout:free' | 'anthropic/claude-opus-4' | 'anthropic/claude-haiku-4.5' | 'anthropic/claude-opus-4.1' | 'anthropic/claude-3.7-sonnet' | 'anthropic/claude-3.5-haiku' | 'anthropic/claude-sonnet-4' | 'anthropic/claude-opus-4.5' | 'anthropic/claude-sonnet-4.5' | 'sarvamai/sarvam-m:free'
export type OpenrouterModels = 'moonshotai/kimi-k2' | 'moonshotai/kimi-k2-0905' | 'moonshotai/kimi-dev-72b:free' | 'moonshotai/kimi-k2-thinking' | 'moonshotai/kimi-k2-0905:exacto' | 'moonshotai/kimi-k2:free' | 'thudm/glm-z1-32b:free' | 'nousresearch/hermes-4-70b' | 'nousresearch/hermes-4-405b' | 'nousresearch/deephermes-3-llama-3-8b-preview' | 'nvidia/nemotron-nano-9b-v2' | 'x-ai/grok-4' | 'x-ai/grok-code-fast-1' | 'x-ai/grok-3' | 'x-ai/grok-4-fast' | 'x-ai/grok-3-beta' | 'x-ai/grok-3-mini-beta' | 'x-ai/grok-3-mini' | 'x-ai/grok-4.1-fast' | 'kwaipilot/kat-coder-pro:free' | 'cognitivecomputations/dolphin3.0-mistral-24b' | 'cognitivecomputations/dolphin3.0-r1-mistral-24b' | 'deepseek/deepseek-chat-v3.1' | 'deepseek/deepseek-r1:free' | 'deepseek/deepseek-v3.2-speciale' | 'deepseek/deepseek-v3-base:free' | 'deepseek/deepseek-v3.1-terminus' | 'deepseek/deepseek-r1-0528-qwen3-8b:free' | 'deepseek/deepseek-chat-v3-0324' | 'deepseek/deepseek-r1-0528:free' | 'deepseek/deepseek-r1-distill-llama-70b' | 'deepseek/deepseek-r1-distill-qwen-14b' | 'deepseek/deepseek-v3.1-terminus:exacto' | 'deepseek/deepseek-v3.2' | 'featherless/qwerky-72b' | 'tngtech/deepseek-r1t2-chimera:free' | 'minimax/minimax-m1' | 'minimax/minimax-m2' | 'minimax/minimax-01' | 'google/gemini-2.0-flash-001' | 'google/gemma-2-9b-it:free' | 'google/gemini-3-pro-preview' | 'google/gemini-2.5-flash' | 'google/gemini-2.5-pro-preview-05-06' | 'google/gemma-3n-e4b-it' | 'google/gemini-2.5-flash-lite' | 'google/gemini-2.5-pro-preview-06-05' | 'google/gemini-2.5-flash-preview-09-2025' | 'google/gemini-2.5-pro' | 'google/gemma-3-12b-it' | 'google/gemma-3n-e4b-it:free' | 'google/gemini-2.5-flash-lite-preview-09-2025' | 'google/gemini-2.0-flash-exp:free' | 'google/gemma-3-27b-it' | 'microsoft/mai-ds-r1:free' | 'openai/gpt-oss-safeguard-20b' | 'openai/gpt-5.1-codex' | 'openai/gpt-4.1-mini' | 'openai/gpt-5-chat' | 'openai/gpt-5.1-codex-mini' | 'openai/gpt-5.1' | 'openai/gpt-5-nano' | 'openai/gpt-5-codex' | 'openai/gpt-4.1' | 'openai/gpt-oss-120b:exacto' | 'openai/o4-mini' | 'openai/gpt-5.1-chat' | 'openai/gpt-5-mini' | 'openai/gpt-5-image' | 'openai/gpt-oss-20b' | 'openai/gpt-oss-120b' | 'openai/gpt-4o-mini' | 'openai/gpt-5' | 'openai/gpt-5-pro' | 'z-ai/glm-4.5' | 'z-ai/glm-4.5-air' | 'z-ai/glm-4.5v' | 'z-ai/glm-4.6' | 'z-ai/glm-4.6:exacto' | 'z-ai/glm-4.5-air:free' | 'qwen/qwen3-coder' | 'qwen/qwen3-32b:free' | 'qwen/qwen3-next-80b-a3b-instruct' | 'qwen/qwen-2.5-coder-32b-instruct' | 'qwen/qwen3-235b-a22b:free' | 'qwen/qwen3-coder-flash' | 'qwen/qwq-32b:free' | 'qwen/qwen3-30b-a3b-thinking-2507' | 'qwen/qwen3-30b-a3b:free' | 'qwen/qwen2.5-vl-72b-instruct' | 'qwen/qwen3-14b:free' | 'qwen/qwen3-30b-a3b-instruct-2507' | 'qwen/qwen3-235b-a22b-thinking-2507' | 'qwen/qwen2.5-vl-32b-instruct:free' | 'qwen/qwen2.5-vl-72b-instruct:free' | 'qwen/qwen3-235b-a22b-07-25:free' | 'qwen/qwen3-coder:free' | 'qwen/qwen3-235b-a22b-07-25' | 'qwen/qwen3-8b:free' | 'qwen/qwen3-max' | 'qwen/qwen3-next-80b-a3b-thinking' | 'qwen/qwen3-coder:exacto' | 'mistralai/devstral-medium-2507' | 'mistralai/codestral-2508' | 'mistralai/mistral-7b-instruct:free' | 'mistralai/devstral-small-2505' | 'mistralai/mistral-small-3.2-24b-instruct' | 'mistralai/devstral-small-2505:free' | 'mistralai/mistral-small-3.2-24b-instruct:free' | 'mistralai/mistral-medium-3' | 'mistralai/mistral-small-3.1-24b-instruct' | 'mistralai/devstral-small-2507' | 'mistralai/mistral-medium-3.1' | 'mistralai/mistral-nemo:free' | 'rekaai/reka-flash-3' | 'meta-llama/llama-3.2-11b-vision-instruct' | 'meta-llama/llama-3.3-70b-instruct:free' | 'meta-llama/llama-4-scout:free' | 'anthropic/claude-opus-4' | 'anthropic/claude-haiku-4.5' | 'anthropic/claude-opus-4.1' | 'anthropic/claude-3.7-sonnet' | 'anthropic/claude-3.5-haiku' | 'anthropic/claude-sonnet-4' | 'anthropic/claude-opus-4.5' | 'anthropic/claude-sonnet-4.5' | 'sarvamai/sarvam-m:free'
export type TogetheraiModels = 'moonshotai/Kimi-K2-Instruct' | 'openai/gpt-oss-120b' | 'meta-llama/Llama-3.3-70B-Instruct-Turbo' | 'Qwen/Qwen3-Coder-480B-A35B-Instruct-FP8' | 'deepseek-ai/DeepSeek-R1' | 'deepseek-ai/DeepSeek-V3'
export type AzureModels = 'gpt-4.1-nano' | 'gpt-4' | 'claude-opus-4-1' | 'gpt-4-32k' | 'gpt-5.1-codex' | 'claude-haiku-4-5' | 'claude-opus-4-5' | 'gpt-4.1-mini' | 'gpt-5-chat' | 'claude-sonnet-4-5' | 'gpt-3.5-turbo-0125' | 'gpt-4-turbo' | 'gpt-3.5-turbo-0613' | 'o1-preview' | 'gpt-5.1-codex-mini' | 'o3-mini' | 'gpt-5.1' | 'gpt-5-nano' | 'gpt-5-codex' | 'gpt-4o' | 'gpt-3.5-turbo-0301' | 'gpt-4.1' | 'o4-mini' | 'o1' | 'gpt-5.1-chat' | 'gpt-5-mini' | 'o1-mini' | 'gpt-3.5-turbo-instruct' | 'o3' | 'codex-mini' | 'gpt-4-turbo-vision' | 'gpt-4o-mini' | 'gpt-5' | 'gpt-3.5-turbo-1106'
export type AzureModels = 'gpt-4.1-nano' | 'text-embedding-3-small' | 'grok-4-fast-non-reasoning' | 'deepseek-r1-0528' | 'grok-4-fast-reasoning' | 'phi-3-medium-128k-instruct' | 'gpt-4' | 'claude-opus-4-1' | 'llama-3.2-11b-vision-instruct' | 'cohere-embed-v-4-0' | 'cohere-command-r-08-2024' | 'grok-4' | 'cohere-embed-v3-multilingual' | 'phi-4-mini' | 'gpt-4-32k' | 'meta-llama-3.1-405b-instruct' | 'deepseek-r1' | 'grok-code-fast-1' | 'gpt-5.1-codex' | 'phi-3-mini-4k-instruct' | 'claude-haiku-4-5' | 'mistral-medium-2505' | 'claude-opus-4-5' | 'phi-3-small-128k-instruct' | 'cohere-command-a' | 'cohere-command-r-plus-08-2024' | 'llama-4-maverick-17b-128e-instruct-fp8' | 'gpt-4.1-mini' | 'gpt-5-chat' | 'deepseek-v3.1' | 'phi-4' | 'phi-4-mini-reasoning' | 'claude-sonnet-4-5' | 'gpt-3.5-turbo-0125' | 'grok-3' | 'text-embedding-3-large' | 'meta-llama-3-70b-instruct' | 'deepseek-v3-0324' | 'phi-3-small-8k-instruct' | 'meta-llama-3.1-70b-instruct' | 'gpt-4-turbo' | 'gpt-3.5-turbo-0613' | 'phi-3.5-mini-instruct' | 'o1-preview' | 'llama-3.3-70b-instruct' | 'gpt-5.1-codex-mini' | 'model-router' | 'o3-mini' | 'gpt-5.1' | 'gpt-5-nano' | 'gpt-5-codex' | 'llama-3.2-90b-vision-instruct' | 'phi-3-mini-128k-instruct' | 'gpt-4o' | 'gpt-3.5-turbo-0301' | 'ministral-3b' | 'gpt-4.1' | 'o4-mini' | 'phi-4-multimodal' | 'meta-llama-3-8b-instruct' | 'o1' | 'grok-3-mini' | 'gpt-5.1-chat' | 'phi-3.5-moe-instruct' | 'gpt-5-mini' | 'o1-mini' | 'llama-4-scout-17b-16e-instruct' | 'cohere-embed-v3-english' | 'text-embedding-ada-002' | 'meta-llama-3.1-8b-instruct' | 'gpt-3.5-turbo-instruct' | 'mistral-nemo' | 'o3' | 'codex-mini' | 'phi-3-medium-4k-instruct' | 'phi-4-reasoning' | 'gpt-4-turbo-vision' | 'phi-4-reasoning-plus' | 'gpt-4o-mini' | 'gpt-5' | 'mai-ds-r1' | 'mistral-large-2411' | 'codestral-2501' | 'mistral-small-2503' | 'gpt-3.5-turbo-1106'
export type CloudflareWorkersAiModels = 'mistral-7b-instruct-v0.1-awq' | 'aura-1' | 'mistral-7b-instruct-v0.2' | 'tinyllama-1.1b-chat-v1.0' | 'qwen1.5-0.5b-chat' | 'llama-3.2-11b-vision-instruct' | 'llama-2-13b-chat-awq' | 'llama-3.1-8b-instruct-fp8' | 'whisper' | 'stable-diffusion-xl-base-1.0' | 'llama-2-7b-chat-fp16' | 'resnet-50' | 'stable-diffusion-v1-5-inpainting' | 'sqlcoder-7b-2' | 'llama-3-8b-instruct' | 'llama-2-7b-chat-hf-lora' | 'llama-3.1-8b-instruct' | 'openchat-3.5-0106' | 'openhermes-2.5-mistral-7b-awq' | 'lucid-origin' | 'bart-large-cnn' | 'flux-1-schnell' | 'deepseek-r1-distill-qwen-32b' | 'gemma-2b-it-lora' | 'una-cybertron-7b-v2-bf16' | 'm2m100-1.2b' | 'llama-3.2-3b-instruct' | 'qwen2.5-coder-32b-instruct' | 'stable-diffusion-v1-5-img2img' | 'gemma-7b-it-lora' | 'qwen1.5-14b-chat-awq' | 'qwen1.5-1.8b-chat' | 'mistral-small-3.1-24b-instruct' | 'gemma-7b-it' | 'llamaguard-7b-awq' | 'hermes-2-pro-mistral-7b' | 'falcon-7b-instruct' | 'llama-3.3-70b-instruct-fp8-fast' | 'llama-3-8b-instruct-awq' | 'phoenix-1.0' | 'phi-2' | 'dreamshaper-8-lcm' | 'discolm-german-7b-v1-awq' | 'llama-2-7b-chat-int8' | 'llama-3.2-1b-instruct' | 'whisper-large-v3-turbo' | 'llama-4-scout-17b-16e-instruct' | 'starling-lm-7b-beta' | 'deepseek-coder-6.7b-base-awq' | 'gemma-3-12b-it' | 'llama-guard-3-8b' | 'neural-chat-7b-v3-1-awq' | 'whisper-tiny-en' | 'stable-diffusion-xl-lightning' | 'mistral-7b-instruct-v0.1' | 'llava-1.5-7b-hf' | 'gpt-oss-20b' | 'deepseek-math-7b-instruct' | 'gpt-oss-120b' | 'melotts' | 'qwen1.5-7b-chat-awq' | 'llama-3.1-8b-instruct-fast' | 'nova-3' | 'llama-3.1-70b-instruct' | 'qwq-32b' | 'zephyr-7b-beta-awq' | 'deepseek-coder-6.7b-instruct-awq' | 'llama-3.1-8b-instruct-awq' | 'mistral-7b-instruct-v0.2-lora' | 'uform-gen2-qwen-500m'
export type CloudflareWorkersAiModels = 'mistral-7b-instruct-v0.1-awq' | 'aura-1' | 'mistral-7b-instruct-v0.2' | 'tinyllama-1.1b-chat-v1.0' | 'qwen1.5-0.5b-chat' | 'llama-3.2-11b-vision-instruct' | 'llama-2-13b-chat-awq' | 'llama-3.1-8b-instruct-fp8' | 'whisper' | 'stable-diffusion-xl-base-1.0' | 'llama-2-7b-chat-fp16' | 'resnet-50' | 'stable-diffusion-v1-5-inpainting' | 'sqlcoder-7b-2' | 'llama-3-8b-instruct' | 'llama-2-7b-chat-hf-lora' | 'llama-3.1-8b-instruct' | 'openchat-3.5-0106' | 'openhermes-2.5-mistral-7b-awq' | 'lucid-origin' | 'bart-large-cnn' | 'flux-1-schnell' | 'deepseek-r1-distill-qwen-32b' | 'gemma-2b-it-lora' | 'una-cybertron-7b-v2-bf16' | 'gemma-sea-lion-v4-27b-it' | 'm2m100-1.2b' | 'llama-3.2-3b-instruct' | 'qwen2.5-coder-32b-instruct' | 'stable-diffusion-v1-5-img2img' | 'gemma-7b-it-lora' | 'qwen1.5-14b-chat-awq' | 'qwen1.5-1.8b-chat' | 'mistral-small-3.1-24b-instruct' | 'gemma-7b-it' | 'qwen3-30b-a3b-fp8' | 'llamaguard-7b-awq' | 'hermes-2-pro-mistral-7b' | 'granite-4.0-h-micro' | 'falcon-7b-instruct' | 'llama-3.3-70b-instruct-fp8-fast' | 'llama-3-8b-instruct-awq' | 'phoenix-1.0' | 'phi-2' | 'dreamshaper-8-lcm' | 'discolm-german-7b-v1-awq' | 'llama-2-7b-chat-int8' | 'llama-3.2-1b-instruct' | 'whisper-large-v3-turbo' | 'llama-4-scout-17b-16e-instruct' | 'starling-lm-7b-beta' | 'deepseek-coder-6.7b-base-awq' | 'gemma-3-12b-it' | 'llama-guard-3-8b' | 'neural-chat-7b-v3-1-awq' | 'whisper-tiny-en' | 'stable-diffusion-xl-lightning' | 'mistral-7b-instruct-v0.1' | 'llava-1.5-7b-hf' | 'gpt-oss-20b' | 'deepseek-math-7b-instruct' | 'gpt-oss-120b' | 'melotts' | 'qwen1.5-7b-chat-awq' | 'llama-3.1-8b-instruct-fast' | 'nova-3' | 'llama-3.1-70b-instruct' | 'qwq-32b' | 'zephyr-7b-beta-awq' | 'deepseek-coder-6.7b-instruct-awq' | 'llama-3.1-8b-instruct-awq' | 'mistral-7b-instruct-v0.2-lora' | 'uform-gen2-qwen-500m'
export type AnthropicModels = 'claude-opus-4-0' | 'claude-3-5-sonnet-20241022' | 'claude-opus-4-1' | 'claude-haiku-4-5' | 'claude-3-5-sonnet-20240620' | 'claude-3-5-haiku-latest' | 'claude-opus-4-5' | 'claude-3-opus-20240229' | 'claude-opus-4-5-20251101' | 'claude-sonnet-4-5' | 'claude-sonnet-4-5-20250929' | 'claude-sonnet-4-20250514' | 'claude-opus-4-20250514' | 'claude-3-5-haiku-20241022' | 'claude-3-haiku-20240307' | 'claude-3-7-sonnet-20250219' | 'claude-3-7-sonnet-latest' | 'claude-sonnet-4-0' | 'claude-opus-4-1-20250805' | 'claude-3-sonnet-20240229' | 'claude-haiku-4-5-20251001'
+4 -1
View File
@@ -1,6 +1,6 @@
import process from 'node:process'
import { siliconflow } from '../generated'
import { minimaxCn, siliconflow } from '../generated'
import { createAnthropic, createFeatherless, createOpenRouter, createTogetherAI } from './create'
/**
@@ -41,3 +41,6 @@ export const togetherai = createTogetherAI(process.env.TOGETHER_API_KEY ?? '')
/** @deprecated use `siliconflow` instead. */
export const siliconFlow = siliconflow
/** @deprecated use `minimaxCn` instead. */
export const minimaxi = minimaxCn
@@ -1,4 +1,4 @@
import { createAlibabaCn, createXai } from '../../generated/create'
import { createAlibabaCn, createMinimaxCn, createXai } from '../../generated/create'
import { createFeatherless } from './featherless'
/** @deprecated use `createFeatherless` instead. */
@@ -9,3 +9,6 @@ export const createQwen = createAlibabaCn
/** @deprecated use `createXai` instead. */
export const createXAI = createXai
/** @deprecated use `createMinimaxCn` instead. */
export const createMinimaxi = createMinimaxCn