Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions .changeset/sync-models.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
'@tanstack/ai-elevenlabs': patch
'@tanstack/ai-gemini': patch
'@tanstack/ai-llmgateway': patch
'@tanstack/ai-openrouter': patch
'@tanstack/ai-vercel-gateway': patch
---

Update model metadata from OpenRouter API
1 change: 1 addition & 0 deletions packages/ai-elevenlabs/src/model-meta.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ export type ElevenLabsTTSModel = (typeof ELEVENLABS_TTS_MODELS)[number]
* @see https://elevenlabs.io/docs/overview/capabilities/sound-effects
*/
export const ELEVENLABS_AUDIO_MODELS = [
'eleven_text_to_sound_v3',
'music_v2_5',
'music_v2',
'eleven_text_to_sound_v2',
Expand Down
36 changes: 36 additions & 0 deletions packages/ai-gemini/src/model-meta.ts
Original file line number Diff line number Diff line change
Expand Up @@ -931,7 +931,35 @@ const GEMINI_3_5_FLASH_LITE = {
GeminiStructuredOutputOptions
>

const GEMINI_4_ARGON = {
name: 'gemini-4-argon',
max_input_tokens: 1_048_576,
max_output_tokens: 943_718,
supports: {
input: ['audio', 'document', 'image', 'text', 'video'],
output: ['text'],
capabilities: ['function_calling', 'structured_output', 'thinking'],
tools: ['code_execution', 'file_search', 'google_search', 'url_context'],
},
pricing: {
input: {
normal: 2,
cached: 0.1,
},
output: {
normal: 10,
},
},
} as const satisfies ModelMeta<
GeminiToolConfigOptions &
GeminiSafetyOptions &
GeminiCommonConfigOptions &
GeminiCachedContentOptions &
GeminiStructuredOutputOptions
>

export const GEMINI_MODELS = [
GEMINI_4_ARGON.name,
GEMINI_3_8_FLASH.name,
GEMINI_3_7_FLASH.name,
GEMINI_3_6_FLASH.name,
Expand Down Expand Up @@ -1144,6 +1172,11 @@ export type GeminiChatModelProviderOptionsByName = {
GeminiCommonConfigOptions &
GeminiCachedContentOptions &
GeminiStructuredOutputOptions
[GEMINI_4_ARGON.name]: GeminiToolConfigOptions &
GeminiSafetyOptions &
GeminiCommonConfigOptions &
GeminiCachedContentOptions &
GeminiStructuredOutputOptions
}

/**
Expand All @@ -1163,6 +1196,7 @@ export type GeminiChatModelToolCapabilitiesByName = {
[GEMINI_2_5_PRO.name]: typeof GEMINI_2_5_PRO.supports.tools
[GEMINI_2_5_FLASH.name]: typeof GEMINI_2_5_FLASH.supports.tools
[GEMINI_2_5_FLASH_LITE.name]: typeof GEMINI_2_5_FLASH_LITE.supports.tools
[GEMINI_4_ARGON.name]: typeof GEMINI_4_ARGON.supports.tools
}

/**
Expand Down Expand Up @@ -1194,6 +1228,7 @@ export type GeminiModelInputModalitiesByName = {

// Models with text, image, audio, video (no document)
[GEMINI_2_5_FLASH.name]: typeof GEMINI_2_5_FLASH.supports.input
[GEMINI_4_ARGON.name]: typeof GEMINI_4_ARGON.supports.input
}

/**
Expand All @@ -1217,6 +1252,7 @@ export const GEMINI_MODEL_INPUT_MODALITIES: Readonly<
[GEMINI_2_5_PRO.name]: GEMINI_2_5_PRO.supports.input,
[GEMINI_2_5_FLASH_LITE.name]: GEMINI_2_5_FLASH_LITE.supports.input,
[GEMINI_2_5_FLASH.name]: GEMINI_2_5_FLASH.supports.input,
[GEMINI_4_ARGON.name]: GEMINI_4_ARGON.supports.input,
} satisfies GeminiModelInputModalitiesByName

// Reasoning
Expand Down
Loading