@aituber-onair/chat 0.54.0 → 0.55.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.ja.md +28 -4
- package/README.md +28 -4
- package/dist/cjs/constants/claude.d.ts +1 -0
- package/dist/cjs/constants/claude.d.ts.map +1 -1
- package/dist/cjs/constants/claude.js +4 -1
- package/dist/cjs/constants/claude.js.map +1 -1
- package/dist/cjs/constants/deepseek.d.ts +1 -0
- package/dist/cjs/constants/deepseek.d.ts.map +1 -1
- package/dist/cjs/constants/deepseek.js +5 -2
- package/dist/cjs/constants/deepseek.js.map +1 -1
- package/dist/cjs/constants/openai.d.ts +5 -0
- package/dist/cjs/constants/openai.d.ts.map +1 -1
- package/dist/cjs/constants/openai.js +19 -3
- package/dist/cjs/constants/openai.js.map +1 -1
- package/dist/cjs/constants/openrouter.d.ts +11 -0
- package/dist/cjs/constants/openrouter.d.ts.map +1 -1
- package/dist/cjs/constants/openrouter.js +93 -3
- package/dist/cjs/constants/openrouter.js.map +1 -1
- package/dist/cjs/services/ChatServiceFactory.d.ts.map +1 -1
- package/dist/cjs/services/ChatServiceFactory.js +18 -15
- package/dist/cjs/services/ChatServiceFactory.js.map +1 -1
- package/dist/cjs/services/providers/claude/ClaudeChatServiceProvider.d.ts.map +1 -1
- package/dist/cjs/services/providers/claude/ClaudeChatServiceProvider.js +1 -0
- package/dist/cjs/services/providers/claude/ClaudeChatServiceProvider.js.map +1 -1
- package/dist/cjs/services/providers/openai/OpenAIChatService.d.ts.map +1 -1
- package/dist/cjs/services/providers/openai/OpenAIChatService.js +6 -2
- package/dist/cjs/services/providers/openai/OpenAIChatService.js.map +1 -1
- package/dist/cjs/services/providers/openai/OpenAIChatServiceProvider.d.ts.map +1 -1
- package/dist/cjs/services/providers/openai/OpenAIChatServiceProvider.js +7 -4
- package/dist/cjs/services/providers/openai/OpenAIChatServiceProvider.js.map +1 -1
- package/dist/cjs/services/providers/openai/openaiRequestBuilder.d.ts.map +1 -1
- package/dist/cjs/services/providers/openai/openaiRequestBuilder.js +9 -3
- package/dist/cjs/services/providers/openai/openaiRequestBuilder.js.map +1 -1
- package/dist/cjs/services/providers/openrouter/OpenRouterChatService.d.ts.map +1 -1
- package/dist/cjs/services/providers/openrouter/OpenRouterChatService.js +8 -2
- package/dist/cjs/services/providers/openrouter/OpenRouterChatService.js.map +1 -1
- package/dist/cjs/services/providers/openrouter/OpenRouterChatServiceProvider.d.ts.map +1 -1
- package/dist/cjs/services/providers/openrouter/OpenRouterChatServiceProvider.js +11 -0
- package/dist/cjs/services/providers/openrouter/OpenRouterChatServiceProvider.js.map +1 -1
- package/dist/esm/constants/claude.d.ts +1 -0
- package/dist/esm/constants/claude.d.ts.map +1 -1
- package/dist/esm/constants/claude.js +3 -0
- package/dist/esm/constants/claude.js.map +1 -1
- package/dist/esm/constants/deepseek.d.ts +1 -0
- package/dist/esm/constants/deepseek.d.ts.map +1 -1
- package/dist/esm/constants/deepseek.js +4 -1
- package/dist/esm/constants/deepseek.js.map +1 -1
- package/dist/esm/constants/openai.d.ts +5 -0
- package/dist/esm/constants/openai.d.ts.map +1 -1
- package/dist/esm/constants/openai.js +16 -2
- package/dist/esm/constants/openai.js.map +1 -1
- package/dist/esm/constants/openrouter.d.ts +11 -0
- package/dist/esm/constants/openrouter.d.ts.map +1 -1
- package/dist/esm/constants/openrouter.js +91 -1
- package/dist/esm/constants/openrouter.js.map +1 -1
- package/dist/esm/services/ChatServiceFactory.d.ts.map +1 -1
- package/dist/esm/services/ChatServiceFactory.js +18 -15
- package/dist/esm/services/ChatServiceFactory.js.map +1 -1
- package/dist/esm/services/providers/claude/ClaudeChatServiceProvider.d.ts.map +1 -1
- package/dist/esm/services/providers/claude/ClaudeChatServiceProvider.js +2 -1
- package/dist/esm/services/providers/claude/ClaudeChatServiceProvider.js.map +1 -1
- package/dist/esm/services/providers/openai/OpenAIChatService.d.ts.map +1 -1
- package/dist/esm/services/providers/openai/OpenAIChatService.js +7 -3
- package/dist/esm/services/providers/openai/OpenAIChatService.js.map +1 -1
- package/dist/esm/services/providers/openai/OpenAIChatServiceProvider.d.ts.map +1 -1
- package/dist/esm/services/providers/openai/OpenAIChatServiceProvider.js +8 -5
- package/dist/esm/services/providers/openai/OpenAIChatServiceProvider.js.map +1 -1
- package/dist/esm/services/providers/openai/openaiRequestBuilder.d.ts.map +1 -1
- package/dist/esm/services/providers/openai/openaiRequestBuilder.js +10 -4
- package/dist/esm/services/providers/openai/openaiRequestBuilder.js.map +1 -1
- package/dist/esm/services/providers/openrouter/OpenRouterChatService.d.ts.map +1 -1
- package/dist/esm/services/providers/openrouter/OpenRouterChatService.js +9 -3
- package/dist/esm/services/providers/openrouter/OpenRouterChatService.js.map +1 -1
- package/dist/esm/services/providers/openrouter/OpenRouterChatServiceProvider.d.ts.map +1 -1
- package/dist/esm/services/providers/openrouter/OpenRouterChatServiceProvider.js +12 -1
- package/dist/esm/services/providers/openrouter/OpenRouterChatServiceProvider.js.map +1 -1
- package/dist/umd/aituber-onair-chat.js +153 -15
- package/dist/umd/aituber-onair-chat.min.js +7 -7
- package/package.json +1 -1
package/README.ja.md
CHANGED
|
@@ -254,6 +254,8 @@ await chatService.processChat(
|
|
|
254
254
|
|
|
255
255
|
#### OpenAI
|
|
256
256
|
|
|
257
|
+
`gpt-6-astra`(`MODEL_GPT_6_ASTRA`)を明示選択できます。ツール呼び出しに必要なResponses APIへ自動ルーティングし、画像入力とストリーミングに対応します。推論レベルは`low`(package既定)、`medium`、`high`、`xhigh`、`max`です。`none`/`minimal`は`low`へ補正します。既存の`gpt5Preset`と`gpt5EndpointPreference`は互換性のため名前を維持しますが、Astraの標準エンドポイントはResponsesに固定されます。 [API guide](https://developers.openai.com/api/docs/guides/latest-model).
|
|
258
|
+
|
|
257
259
|
```typescript
|
|
258
260
|
const openaiService = ChatServiceFactory.createChatService('openai', {
|
|
259
261
|
apiKey: process.env.OPENAI_API_KEY,
|
|
@@ -568,6 +570,8 @@ CI/ローカルで再現性を高める場合は
|
|
|
568
570
|
|
|
569
571
|
#### Claude (Anthropic)
|
|
570
572
|
|
|
573
|
+
`claude-fable-5-1`(`MODEL_CLAUDE_5_1_FABLE`)をMessages API経由の明示選択として追加しています。画像・ストリーミング・自動ツール選択に対応し、常時adaptive thinkingのまま`low`/`medium`/`high`/`xhigh`/`max`で深度を調整できます。強制ツール指定は使いません。会話を継続するときは返された`assistant_message`を履歴に保持してください。署名付きthinkingの前にあるsystem・tools・履歴を変更するとAPIで拒否される場合があります。このモデルには30日間のデータ保持設定が必要です。 [Migration guide](https://platform.claude.com/docs/en/models/fable-5-1/migration-guide).
|
|
574
|
+
|
|
571
575
|
```typescript
|
|
572
576
|
const claudeService = ChatServiceFactory.createChatService('claude', {
|
|
573
577
|
apiKey: process.env.ANTHROPIC_API_KEY,
|
|
@@ -631,6 +635,24 @@ hidden thinking が使い切るリスクを抑えます。Gemini 2.5 は
|
|
|
631
635
|
|
|
632
636
|
#### OpenRouter
|
|
633
637
|
|
|
638
|
+
次のモデルは既定を変更せず、OpenRouterのChat Completions経由で明示選択できます。Mercury 2.5はテキスト専用、それ以外は画像入力にも対応します。ファイル・音声・動画入力の対応を意味するものではありません。
|
|
639
|
+
|
|
640
|
+
| Model ID | 推論レベル(package既定) |
|
|
641
|
+
| --- | --- |
|
|
642
|
+
| `openai/gpt-6-astra` | max, xhigh, high, medium, low (medium) |
|
|
643
|
+
| `openai/gpt-6-astra-pro` | max, xhigh, high, medium, low (medium) |
|
|
644
|
+
| `anthropic/claude-fable-5.1` | max, xhigh, high, medium, low (high) |
|
|
645
|
+
| `deepseek/deepseek-v4.1-flash` | max, high, low, none (none) |
|
|
646
|
+
| `google/gemini-3.8-flash` | high, medium, low (medium) |
|
|
647
|
+
| `inclusionai/ling-3.0-flash-vl:free` | No effort selector (provider default) |
|
|
648
|
+
| `inception/mercury-2.5` | high, medium, low, none (none) |
|
|
649
|
+
| `nex-agi/nex-n2.5-mini:free` | high, medium, none (none) |
|
|
650
|
+
| `nex-agi/nex-n2.5-pro:free` | high, medium, none (none) |
|
|
651
|
+
| `qwen/qwen3.8-max-0902` | xhigh, high, medium, low, minimal (xhigh) |
|
|
652
|
+
| `meta/muse-spark-1.3` | max, xhigh, high, medium, low, minimal (medium) |
|
|
653
|
+
|
|
654
|
+
常時推論モデルでは`none`を送らず、無効な設定を表の既定値へ補正します。`openai/gpt-6-astra-pro`はOpenRouterがProモードへ変換するIDであり、OpenAI直結のIDではありません。Fable 5.1では`tool_choice`を省略します。`:free`モデルには無料枠のレート制限があります。 [Catalog](https://openrouter.ai/api/v1/models), [API schema](https://openrouter.ai/docs/api_reference/overview).
|
|
655
|
+
|
|
634
656
|
```typescript
|
|
635
657
|
const openRouterService = ChatServiceFactory.createChatService('openrouter', {
|
|
636
658
|
apiKey: process.env.OPENROUTER_API_KEY,
|
|
@@ -791,6 +813,8 @@ const kimiService = ChatServiceFactory.createChatService('kimi', {
|
|
|
791
813
|
|
|
792
814
|
#### DeepSeek
|
|
793
815
|
|
|
816
|
+
`deepseek-flash`(`MODEL_DEEPSEEK_FLASH`)はDeepSeek V4.1 Flashの公式IDです。Chat Completionsで画像入力とストリーミングに対応し、推論は`none`(package既定)/`low`/`high`/`max`から選べます。ツール呼び出しとの併用は既存packageの制約により`none`のみ対応です。旧Flash IDは互換エイリアスとして提供元でV4.1へ転送されます。 [API guide](https://api-docs.deepseek.com/).
|
|
817
|
+
|
|
794
818
|
```typescript
|
|
795
819
|
const deepSeekService = ChatServiceFactory.createChatService('deepseek', {
|
|
796
820
|
apiKey: process.env.DEEPSEEK_API_KEY,
|
|
@@ -1287,15 +1311,15 @@ vision、JSON mode、reasoning 設定を使うべきかを provider 固有ロジ
|
|
|
1287
1311
|
|
|
1288
1312
|
現在、以下のAIプロバイダーが組み込まれています:
|
|
1289
1313
|
|
|
1290
|
-
- **OpenAI**: GPT-5.6(Sol/Terra/Luna)、GPT-5.5、GPT-5.4 Pro、GPT-5.4、GPT-5.4 Mini、GPT-5.4 Nano、GPT-5.1、GPT-5(Nano/Mini/Standard)、GPT-4.1(miniとnanoを含む), GPT-4, GPT-4o-mini, O3-mini, o1, o1-miniのモデルをサポート
|
|
1314
|
+
- **OpenAI**: GPT-6 Astra (`gpt-6-astra`, Responses API); GPT-5.6(Sol/Terra/Luna)、GPT-5.5、GPT-5.4 Pro、GPT-5.4、GPT-5.4 Mini、GPT-5.4 Nano、GPT-5.1、GPT-5(Nano/Mini/Standard)、GPT-4.1(miniとnanoを含む), GPT-4, GPT-4o-mini, O3-mini, o1, o1-miniのモデルをサポート
|
|
1291
1315
|
- **OpenAI-Compatible**: OpenAI互換 endpoint 経由で任意のローカル/セルフホスト model ID を利用できます。vision 対応可否は endpoint ごとに差があるため、原則 `unknown` 扱いです
|
|
1292
1316
|
- **Gemini**: Gemini 3.8 Flash、Gemini 3.7 Flash、Gemini 3.6 Flash、Gemini 3.5 Flash、Gemini 3.5 Flash-Lite、Gemini 3.1 Flash-Lite、Gemini 3.1 Pro Preview、Gemini 3 Flash Preview、Gemini 2.5 Pro、Gemini 2.5 Flash、Gemini 2.5 Flash Lite、Gemma 4 31B IT、Gemma 4 26B A4B IT などの推奨モデルをサポート。Gemini 3 はチャット用途向けに利用可能な最小の thinking を既定値にします。`minimal` 非対応の Gemini 3.8 Flash、Gemini 3.7 Flash、Gemini 3 Pro は `low`、その他の Gemini 3 Flash は `minimal` を使います。Gemini 3.1 Flash-Lite Preview、Gemini 3 Pro Preview、Gemini 2.5 Flash Lite Preview などの lifecycle 上 deprecated なモデルは明示指定用に export を残しています
|
|
1293
|
-
- **Claude**: Claude Fable 5, Claude Opus 5, Claude Sonnet 5, Claude Opus 4.8, Claude Opus 4.7, Claude Opus 4.6, Claude Opus 4.5, Claude Sonnet 4.6, Claude Sonnet 4.5, Claude Haiku 4.5 をサポート。調整可能な`reasoning_effort`は対応モデルに限り`output_config.effort`として送信し、refusal metadataは終端completionとして保持します
|
|
1294
|
-
- **OpenRouter**: OpenAI/Claude/Gemini/Z.ai/xAI/Kimi/DeepSeek/Qwen/Kwaipilotのキュレーション済み一覧をサポート。GLM-5.3、Qwen3.8 Flash、DeepSeek V4 Flash Vision Exp、Claude Sonnet 5/Opus 4.8、Kimi K2.6も含みます
|
|
1317
|
+
- **Claude**: Claude Fable 5.1 (`claude-fable-5-1`); Claude Fable 5, Claude Opus 5, Claude Sonnet 5, Claude Opus 4.8, Claude Opus 4.7, Claude Opus 4.6, Claude Opus 4.5, Claude Sonnet 4.6, Claude Sonnet 4.5, Claude Haiku 4.5 をサポート。調整可能な`reasoning_effort`は対応モデルに限り`output_config.effort`として送信し、refusal metadataは終端completionとして保持します
|
|
1318
|
+
- **OpenRouter**: GPT-6 Astra/Pro, Claude Fable 5.1, DeepSeek V4.1 Flash, Gemini 3.8 Flash, Ling 3.0 Flash VL, Mercury 2.5, Nex N2.5 Mini/Pro, Qwen3.8 Max, Muse Spark 1.3; OpenAI/Claude/Gemini/Z.ai/xAI/Kimi/DeepSeek/Qwen/Kwaipilotのキュレーション済み一覧をサポート。GLM-5.3、Qwen3.8 Flash、DeepSeek V4 Flash Vision Exp、Claude Sonnet 5/Opus 4.8、Kimi K2.6も含みます
|
|
1295
1319
|
- **Z.ai**: GLM-5.3/GLM-5.2/GLM-5.1/GLM-5/GLM-5-TurboとGLM-4.7/4.6のテキストモデル、GLM-5.3-Flash/GLM-5V-Turbo/GLM-4.6V系のビジョンモデルをサポート。GLM-5.3はthinking必須で`low`、GLM-5.2は`none`を既定値にします
|
|
1296
1320
|
- **xAI**: Grok 4.6、Grok 4.5、Grok 4.3、Grok 4.20 Reasoning/Non-Reasoningをvision対応でサポート。低遅延のデフォルトは`reasoning_effort: 'none'`のGrok 4.3です
|
|
1297
1321
|
- **Kimi**: Kimi K3(`kimi-k3`、`low` / `high` / `max` reasoning、デフォルトは `max`)、Kimi K2.7 Code(`kimi-k2.7-code`)、Kimi K2.7 Code HighSpeed(`kimi-k2.7-code-highspeed`)、Kimi K2.6(`kimi-k2.6`、デフォルト)、Kimi K2.5(`kimi-k2.5`、いずれもビジョン対応)をサポート
|
|
1298
|
-
- **DeepSeek**: DeepSeek V4 Flash、V4 Pro、明示選択用の実験ビジョンモデル`deepseek-v4-flash-vision-exp`をOpenAI互換Chat Completions経由でサポート。低遅延チャット向けにthinkingはデフォルト無効です
|
|
1322
|
+
- **DeepSeek**: DeepSeek V4.1 Flash (`deepseek-flash`); DeepSeek V4 Flash、V4 Pro、明示選択用の実験ビジョンモデル`deepseek-v4-flash-vision-exp`をOpenAI互換Chat Completions経由でサポート。低遅延チャット向けにthinkingはデフォルト無効です
|
|
1299
1323
|
- **Mistral**: Ministral 3系(`ministral-3b-2512`, `ministral-8b-2512`, `ministral-14b-2512`)と現行generalist modelをサポートし、streamingとvisionにも対応。adjustable `reasoning_effort`は対応モデルにだけ送信します
|
|
1300
1324
|
- **Sakana AI**: Fugu、Fugu Ultra、日本語特化・ビジョン対応のSakana Namazu(`sakana-namazu`)をOpenAI互換Chat Completions経由でサポート。Namazuのthinkingはデフォルト無効です
|
|
1301
1325
|
- **PLaMo**: PLaMo 3.0 Prime(`plamo-3.0-prime`, デフォルト)をOpenAI互換Chat Completions経由でサポートし、廃止予定の2.2定数は互換用にexportを残します
|
package/README.md
CHANGED
|
@@ -262,6 +262,8 @@ await chatService.processChat(
|
|
|
262
262
|
|
|
263
263
|
#### OpenAI
|
|
264
264
|
|
|
265
|
+
`gpt-6-astra` (`MODEL_GPT_6_ASTRA`) is an explicit option with image input and streaming. The package routes it to Responses, which is required for tool calling. Reasoning supports `low` (package default), `medium`, `high`, `xhigh`, and `max`; `none`/`minimal` normalize to `low`. Existing `gpt5Preset` and `gpt5EndpointPreference` option names remain for compatibility, but Astra uses Responses at the standard endpoint. [API guide](https://developers.openai.com/api/docs/guides/latest-model).
|
|
266
|
+
|
|
265
267
|
```typescript
|
|
266
268
|
const openaiService = ChatServiceFactory.createChatService('openai', {
|
|
267
269
|
apiKey: process.env.OPENAI_API_KEY,
|
|
@@ -582,6 +584,8 @@ For CI/local deterministic runs, pair it with `examples/mock-openai-server`.
|
|
|
582
584
|
|
|
583
585
|
#### Claude (Anthropic)
|
|
584
586
|
|
|
587
|
+
`claude-fable-5-1` (`MODEL_CLAUDE_5_1_FABLE`) is an explicit Messages API option with images, streaming, and automatic tool selection. Adaptive thinking is always on; effort supports `low`, `medium`, `high`, `xhigh`, and `max`. Forced tool selection is not used. Preserve the returned `assistant_message` in continuation history; changing the system prompt, tools, or history preceding signed thinking can cause API rejection. This model requires 30-day data retention. [Migration guide](https://platform.claude.com/docs/en/models/fable-5-1/migration-guide).
|
|
588
|
+
|
|
585
589
|
```typescript
|
|
586
590
|
const claudeService = ChatServiceFactory.createChatService('claude', {
|
|
587
591
|
apiKey: process.env.ANTHROPIC_API_KEY,
|
|
@@ -650,6 +654,24 @@ those models.
|
|
|
650
654
|
|
|
651
655
|
#### OpenRouter
|
|
652
656
|
|
|
657
|
+
The following explicit options use OpenRouter Chat Completions without changing the provider default. Mercury 2.5 is text-only; the others support image input. This does not add file, audio, or video input support.
|
|
658
|
+
|
|
659
|
+
| Model ID | Reasoning efforts (package default) |
|
|
660
|
+
| --- | --- |
|
|
661
|
+
| `openai/gpt-6-astra` | max, xhigh, high, medium, low (medium) |
|
|
662
|
+
| `openai/gpt-6-astra-pro` | max, xhigh, high, medium, low (medium) |
|
|
663
|
+
| `anthropic/claude-fable-5.1` | max, xhigh, high, medium, low (high) |
|
|
664
|
+
| `deepseek/deepseek-v4.1-flash` | max, high, low, none (none) |
|
|
665
|
+
| `google/gemini-3.8-flash` | high, medium, low (medium) |
|
|
666
|
+
| `inclusionai/ling-3.0-flash-vl:free` | No effort selector (provider default) |
|
|
667
|
+
| `inception/mercury-2.5` | high, medium, low, none (none) |
|
|
668
|
+
| `nex-agi/nex-n2.5-mini:free` | high, medium, none (none) |
|
|
669
|
+
| `nex-agi/nex-n2.5-pro:free` | high, medium, none (none) |
|
|
670
|
+
| `qwen/qwen3.8-max-0902` | xhigh, high, medium, low, minimal (xhigh) |
|
|
671
|
+
| `meta/muse-spark-1.3` | max, xhigh, high, medium, low, minimal (medium) |
|
|
672
|
+
|
|
673
|
+
Always-thinking models never receive `none`; invalid settings normalize to the defaults above. `openai/gpt-6-astra-pro` is an OpenRouter ID that selects Pro mode, not a native OpenAI model ID. Fable 5.1 omits `tool_choice`. Models ending in `:free` are subject to free-tier rate limits. [Catalog](https://openrouter.ai/api/v1/models), [API schema](https://openrouter.ai/docs/api_reference/overview).
|
|
674
|
+
|
|
653
675
|
```typescript
|
|
654
676
|
const openRouterService = ChatServiceFactory.createChatService('openrouter', {
|
|
655
677
|
apiKey: process.env.OPENROUTER_API_KEY,
|
|
@@ -809,6 +831,8 @@ Notes for self-hosted:
|
|
|
809
831
|
|
|
810
832
|
#### DeepSeek
|
|
811
833
|
|
|
834
|
+
`deepseek-flash` (`MODEL_DEEPSEEK_FLASH`) is the official ID for DeepSeek V4.1 Flash. It supports images and streaming through Chat Completions, with `none` (package default), `low`, `high`, and `max` reasoning. The existing package restriction still requires `none` when using tools. Legacy Flash IDs are compatibility aliases routed to V4.1 by DeepSeek. [API guide](https://api-docs.deepseek.com/).
|
|
835
|
+
|
|
812
836
|
```typescript
|
|
813
837
|
const deepSeekService = ChatServiceFactory.createChatService('deepseek', {
|
|
814
838
|
apiKey: process.env.DEEPSEEK_API_KEY,
|
|
@@ -1311,15 +1335,15 @@ without hard-coding provider-specific rules.
|
|
|
1311
1335
|
|
|
1312
1336
|
Currently, the following AI providers are built-in:
|
|
1313
1337
|
|
|
1314
|
-
- **OpenAI**: Supports models like GPT-5.6 (Sol/Terra/Luna), GPT-5.5, GPT-5.4 Pro, GPT-5.4, GPT-5.4 Mini, GPT-5.4 Nano, GPT-5.1, GPT-5 (Nano/Mini/Standard), GPT-4.1 (including mini and nano), GPT-4, GPT-4o-mini, O3-mini, o1, o1-mini
|
|
1338
|
+
- **OpenAI**: GPT-6 Astra (`gpt-6-astra`, Responses API); Supports models like GPT-5.6 (Sol/Terra/Luna), GPT-5.5, GPT-5.4 Pro, GPT-5.4, GPT-5.4 Mini, GPT-5.4 Nano, GPT-5.1, GPT-5 (Nano/Mini/Standard), GPT-4.1 (including mini and nano), GPT-4, GPT-4o-mini, O3-mini, o1, o1-mini
|
|
1315
1339
|
- **OpenAI-Compatible**: Supports arbitrary local/self-hosted model IDs via OpenAI-compatible endpoints. Vision capability is treated as `unknown` unless your app knows the endpoint-specific model catalog.
|
|
1316
1340
|
- **Gemini**: Supports recommended models like Gemini 3.8 Flash, Gemini 3.7 Flash, Gemini 3.6 Flash, Gemini 3.5 Flash, Gemini 3.5 Flash-Lite, Gemini 3.1 Flash-Lite, Gemini 3.1 Pro Preview, Gemini 3 Flash Preview, Gemini 2.5 Pro, Gemini 2.5 Flash, Gemini 2.5 Flash Lite, Gemma 4 31B IT, and Gemma 4 26B A4B IT. Gemini 3 models default to their lowest supported thinking level for chat-style responses. Gemini 3.8 Flash, Gemini 3.7 Flash, and Gemini 3 Pro use low because they do not support minimal; other Gemini 3 Flash models use minimal. Deprecated lifecycle models such as Gemini 3.1 Flash-Lite Preview, Gemini 3 Pro Preview, and Gemini 2.5 Flash Lite Preview remain exported for explicit use.
|
|
1317
|
-
- **Claude**: Supports current Claude API model IDs including Claude Fable 5, Claude Opus 5, Claude Sonnet 5, Claude Opus 4.8, Claude Opus 4.7, Claude Opus 4.6, Claude Opus 4.5, Claude Sonnet 4.6, Claude Sonnet 4.5, and Claude Haiku 4.5. Adjustable `reasoning_effort` is sent as `output_config.effort` only for models that support it; refusal metadata is preserved as a terminal completion.
|
|
1318
|
-
- **OpenRouter**: Supports a curated OpenRouter model list (OpenAI/Claude/Gemini/Z.ai/xAI/Kimi/DeepSeek/Qwen/Kwaipilot), including GLM-5.3, Qwen3.8 Flash, DeepSeek V4 Flash Vision Exp, Claude Sonnet 5/Opus 4.8, and Kimi K2.6. See the OpenRouter section for model IDs.
|
|
1341
|
+
- **Claude**: Claude Fable 5.1 (`claude-fable-5-1`); Supports current Claude API model IDs including Claude Fable 5, Claude Opus 5, Claude Sonnet 5, Claude Opus 4.8, Claude Opus 4.7, Claude Opus 4.6, Claude Opus 4.5, Claude Sonnet 4.6, Claude Sonnet 4.5, and Claude Haiku 4.5. Adjustable `reasoning_effort` is sent as `output_config.effort` only for models that support it; refusal metadata is preserved as a terminal completion.
|
|
1342
|
+
- **OpenRouter**: GPT-6 Astra/Pro, Claude Fable 5.1, DeepSeek V4.1 Flash, Gemini 3.8 Flash, Ling 3.0 Flash VL, Mercury 2.5, Nex N2.5 Mini/Pro, Qwen3.8 Max, Muse Spark 1.3; Supports a curated OpenRouter model list (OpenAI/Claude/Gemini/Z.ai/xAI/Kimi/DeepSeek/Qwen/Kwaipilot), including GLM-5.3, Qwen3.8 Flash, DeepSeek V4 Flash Vision Exp, Claude Sonnet 5/Opus 4.8, and Kimi K2.6. See the OpenRouter section for model IDs.
|
|
1319
1343
|
- **Z.ai**: Supports GLM-5.3/GLM-5.2/GLM-5.1/GLM-5/GLM-5-Turbo and GLM-4.7/4.6 text models, plus GLM-5.3-Flash/GLM-5V-Turbo/GLM-4.6V vision models. GLM-5.3 always thinks and defaults to `low`; GLM-5.2 defaults to `none`.
|
|
1320
1344
|
- **xAI**: Supports Grok 4.6, Grok 4.5, Grok 4.3, and Grok 4.20 Reasoning/Non-Reasoning with vision. Grok 4.3 is the low-latency default with `reasoning_effort: 'none'`.
|
|
1321
1345
|
- **Kimi**: Supports Kimi K3 (`kimi-k3`, `low` / `high` / `max` reasoning with `max` as the default), Kimi K2.7 Code (`kimi-k2.7-code`), Kimi K2.7 Code HighSpeed (`kimi-k2.7-code-highspeed`), Kimi K2.6 (`kimi-k2.6`, default), and Kimi K2.5 (`kimi-k2.5`) with vision support
|
|
1322
|
-
- **DeepSeek**: Supports DeepSeek V4 Flash (`deepseek-v4-flash`), V4 Pro (`deepseek-v4-pro`), and the explicit experimental vision model (`deepseek-v4-flash-vision-exp`) via OpenAI-compatible Chat Completions. Thinking defaults to disabled for low-latency chat.
|
|
1346
|
+
- **DeepSeek**: DeepSeek V4.1 Flash (`deepseek-flash`); Supports DeepSeek V4 Flash (`deepseek-v4-flash`), V4 Pro (`deepseek-v4-pro`), and the explicit experimental vision model (`deepseek-v4-flash-vision-exp`) via OpenAI-compatible Chat Completions. Thinking defaults to disabled for low-latency chat.
|
|
1323
1347
|
- **Mistral**: Supports the Ministral 3 family (`ministral-3b-2512`, `ministral-8b-2512`, `ministral-14b-2512`) and current Mistral generalist models, with streaming and vision support. Adjustable `reasoning_effort` is only sent for supported models.
|
|
1324
1348
|
- **Sakana AI**: Supports Fugu (`fugu`), Fugu Ultra (`fugu-ultra-v1.1`), and vision-capable Sakana Namazu (`sakana-namazu`) via OpenAI-compatible Chat Completions. Namazu thinking defaults to disabled for responsive chat.
|
|
1325
1349
|
- **PLaMo**: Supports PLaMo 3.0 Prime (`plamo-3.0-prime`, default) via OpenAI-compatible Chat Completions; the retiring 2.2 constant remains exported for compatibility.
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export declare const ENDPOINT_CLAUDE_API = "https://api.anthropic.com/v1/messages";
|
|
2
|
+
export declare const MODEL_CLAUDE_5_1_FABLE = "claude-fable-5-1";
|
|
2
3
|
export declare const MODEL_CLAUDE_3_HAIKU = "claude-3-haiku-20240307";
|
|
3
4
|
export declare const MODEL_CLAUDE_3_5_HAIKU = "claude-3-5-haiku-20241022";
|
|
4
5
|
export declare const MODEL_CLAUDE_3_5_SONNET = "claude-3-5-sonnet-20241022";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"claude.d.ts","sourceRoot":"","sources":["../../../src/constants/claude.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,mBAAmB,0CAA0C,CAAC;
|
|
1
|
+
{"version":3,"file":"claude.d.ts","sourceRoot":"","sources":["../../../src/constants/claude.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,mBAAmB,0CAA0C,CAAC;AAE3E,eAAO,MAAM,sBAAsB,qBAAqB,CAAC;AA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|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.CLAUDE_VISION_SUPPORTED_MODELS = exports.CLAUDE_DEPRECATED_MODELS = exports.MODEL_CLAUDE_5_OPUS = exports.MODEL_CLAUDE_5_SONNET = exports.MODEL_CLAUDE_5_FABLE = exports.MODEL_CLAUDE_4_8_OPUS = exports.MODEL_CLAUDE_4_7_OPUS = exports.MODEL_CLAUDE_4_6_OPUS = exports.MODEL_CLAUDE_4_6_SONNET = exports.MODEL_CLAUDE_4_5_OPUS = exports.MODEL_CLAUDE_4_5_HAIKU = exports.MODEL_CLAUDE_4_5_SONNET = exports.MODEL_CLAUDE_4_OPUS = exports.MODEL_CLAUDE_4_SONNET = exports.MODEL_CLAUDE_3_7_SONNET = exports.MODEL_CLAUDE_3_5_SONNET = exports.MODEL_CLAUDE_3_5_HAIKU = exports.MODEL_CLAUDE_3_HAIKU = exports.ENDPOINT_CLAUDE_API = void 0;
|
|
3
|
+
exports.CLAUDE_VISION_SUPPORTED_MODELS = exports.CLAUDE_DEPRECATED_MODELS = exports.MODEL_CLAUDE_5_OPUS = exports.MODEL_CLAUDE_5_SONNET = exports.MODEL_CLAUDE_5_FABLE = exports.MODEL_CLAUDE_4_8_OPUS = exports.MODEL_CLAUDE_4_7_OPUS = exports.MODEL_CLAUDE_4_6_OPUS = exports.MODEL_CLAUDE_4_6_SONNET = exports.MODEL_CLAUDE_4_5_OPUS = exports.MODEL_CLAUDE_4_5_HAIKU = exports.MODEL_CLAUDE_4_5_SONNET = exports.MODEL_CLAUDE_4_OPUS = exports.MODEL_CLAUDE_4_SONNET = exports.MODEL_CLAUDE_3_7_SONNET = exports.MODEL_CLAUDE_3_5_SONNET = exports.MODEL_CLAUDE_3_5_HAIKU = exports.MODEL_CLAUDE_3_HAIKU = exports.MODEL_CLAUDE_5_1_FABLE = exports.ENDPOINT_CLAUDE_API = void 0;
|
|
4
4
|
exports.getClaudeSupportedReasoningEfforts = getClaudeSupportedReasoningEfforts;
|
|
5
5
|
exports.isClaudeReasoningEffortModel = isClaudeReasoningEffortModel;
|
|
6
6
|
exports.getDefaultClaudeReasoningEffort = getDefaultClaudeReasoningEffort;
|
|
7
7
|
exports.normalizeClaudeReasoningEffort = normalizeClaudeReasoningEffort;
|
|
8
8
|
exports.ENDPOINT_CLAUDE_API = 'https://api.anthropic.com/v1/messages';
|
|
9
|
+
exports.MODEL_CLAUDE_5_1_FABLE = 'claude-fable-5-1';
|
|
9
10
|
// claude model
|
|
10
11
|
exports.MODEL_CLAUDE_3_HAIKU = 'claude-3-haiku-20240307';
|
|
11
12
|
exports.MODEL_CLAUDE_3_5_HAIKU = 'claude-3-5-haiku-20241022';
|
|
@@ -52,11 +53,13 @@ const CLAUDE_REASONING_EFFORTS_BY_MODEL = {
|
|
|
52
53
|
[exports.MODEL_CLAUDE_4_6_OPUS]: CLAUDE_MAX_REASONING_EFFORTS,
|
|
53
54
|
[exports.MODEL_CLAUDE_4_7_OPUS]: CLAUDE_XHIGH_REASONING_EFFORTS,
|
|
54
55
|
[exports.MODEL_CLAUDE_4_8_OPUS]: CLAUDE_XHIGH_REASONING_EFFORTS,
|
|
56
|
+
[exports.MODEL_CLAUDE_5_1_FABLE]: CLAUDE_XHIGH_REASONING_EFFORTS,
|
|
55
57
|
[exports.MODEL_CLAUDE_5_FABLE]: CLAUDE_XHIGH_REASONING_EFFORTS,
|
|
56
58
|
[exports.MODEL_CLAUDE_5_SONNET]: CLAUDE_XHIGH_REASONING_EFFORTS,
|
|
57
59
|
[exports.MODEL_CLAUDE_5_OPUS]: CLAUDE_XHIGH_REASONING_EFFORTS,
|
|
58
60
|
};
|
|
59
61
|
exports.CLAUDE_VISION_SUPPORTED_MODELS = [
|
|
62
|
+
exports.MODEL_CLAUDE_5_1_FABLE,
|
|
60
63
|
exports.MODEL_CLAUDE_4_5_SONNET,
|
|
61
64
|
exports.MODEL_CLAUDE_4_5_HAIKU,
|
|
62
65
|
exports.MODEL_CLAUDE_4_5_OPUS,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"claude.js","sourceRoot":"","sources":["../../../src/constants/claude.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"claude.js","sourceRoot":"","sources":["../../../src/constants/claude.ts"],"names":[],"mappings":";;;AAmFA,gFAIC;AAED,oEAEC;AAKD,0EAIC;AAKD,wEAkBC;AA3HY,QAAA,mBAAmB,GAAG,uCAAuC,CAAC;AAE9D,QAAA,sBAAsB,GAAG,kBAAkB,CAAC;AAEzD,eAAe;AACF,QAAA,oBAAoB,GAAG,yBAAyB,CAAC;AACjD,QAAA,sBAAsB,GAAG,2BAA2B,CAAC;AACrD,QAAA,uBAAuB,GAAG,4BAA4B,CAAC;AACvD,QAAA,uBAAuB,GAAG,4BAA4B,CAAC;AACvD,QAAA,qBAAqB,GAAG,0BAA0B,CAAC;AACnD,QAAA,mBAAmB,GAAG,wBAAwB,CAAC;AAC/C,QAAA,uBAAuB,GAAG,4BAA4B,CAAC;AACvD,QAAA,sBAAsB,GAAG,2BAA2B,CAAC;AACrD,QAAA,qBAAqB,GAAG,0BAA0B,CAAC;AACnD,QAAA,uBAAuB,GAAG,mBAAmB,CAAC;AAC9C,QAAA,qBAAqB,GAAG,iBAAiB,CAAC;AAC1C,QAAA,qBAAqB,GAAG,iBAAiB,CAAC;AAC1C,QAAA,qBAAqB,GAAG,iBAAiB,CAAC;AAC1C,QAAA,oBAAoB,GAAG,gBAAgB,CAAC;AACxC,QAAA,qBAAqB,GAAG,iBAAiB,CAAC;AAC1C,QAAA,mBAAmB,GAAG,eAAe,CAAC;AAEnD,6EAA6E;AAChE,QAAA,wBAAwB,GAAG;IACtC,4BAAoB;IACpB,8BAAsB;IACtB,+BAAuB;IACvB,+BAAuB;IACvB,6BAAqB;IACrB,2BAAmB;CACpB,CAAC;AAIF,MAAM,iCAAiC,GAAqC;IAC1E,KAAK;IACL,QAAQ;IACR,MAAM;CACP,CAAC;A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C,KAAK,CAAC,CAAC;IAC5D,IAAI,SAAS,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QAC3B,OAAO,SAAS,CAAC;IACnB,CAAC;IAED,IAAI,CAAC,MAAM,EAAE,CAAC;QACZ,OAAO,+BAA+B,CAAC,KAAK,CAAC,CAAC;IAChD,CAAC;IAED,IAAI,SAAS,CAAC,QAAQ,CAAC,MAAM,CAAC,EAAE,CAAC;QAC/B,OAAO,MAAM,CAAC;IAChB,CAAC;IAED,OAAO,MAAM,CAAC;AAChB,CAAC"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export declare const DEEPSEEK_API_BASE_URL = "https://api.deepseek.com";
|
|
2
2
|
export declare const ENDPOINT_DEEPSEEK_CHAT_COMPLETIONS_API = "https://api.deepseek.com/chat/completions";
|
|
3
|
+
export declare const MODEL_DEEPSEEK_FLASH = "deepseek-flash";
|
|
3
4
|
export declare const MODEL_DEEPSEEK_V4_FLASH = "deepseek-v4-flash";
|
|
4
5
|
export declare const MODEL_DEEPSEEK_V4_PRO = "deepseek-v4-pro";
|
|
5
6
|
export declare const MODEL_DEEPSEEK_V4_FLASH_VISION_EXP = "deepseek-v4-flash-vision-exp";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deepseek.d.ts","sourceRoot":"","sources":["../../../src/constants/deepseek.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,qBAAqB,6BAA6B,CAAC;AAChE,eAAO,MAAM,sCAAsC,8CAA8C,CAAC;
|
|
1
|
+
{"version":3,"file":"deepseek.d.ts","sourceRoot":"","sources":["../../../src/constants/deepseek.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,qBAAqB,6BAA6B,CAAC;AAChE,eAAO,MAAM,sCAAsC,8CAA8C,CAAC;AAElG,eAAO,MAAM,oBAAoB,mBAAmB,CAAC;AAGrD,eAAO,MAAM,uBAAuB,sBAAsB,CAAC;AAC3D,eAAO,MAAM,qBAAqB,oBAAoB,CAAC;AACvD,eAAO,MAAM,kCAAkC,iCACf,CAAC;AAEjC,MAAM,MAAM,uBAAuB,GAAG,MAAM,GAAG,KAAK,GAAG,MAAM,GAAG,KAAK,CAAC;AAgBtE,uDAAuD;AACvD,eAAO,MAAM,mBAAmB,kBAAkB,CAAC;AACnD,gFAAgF;AAChF,eAAO,MAAM,uBAAuB,sBAAsB,CAAC;AAE3D,eAAO,MAAM,yBAAyB,UAKrC,CAAC;AAEF,eAAO,MAAM,gCAAgC,UAG5C,CAAC;AAEF,eAAO,MAAM,0BAA0B,UAGtC,CAAC;AAEF,wBAAgB,oCAAoC,CAClD,KAAK,EAAE,MAAM,GACZ,SAAS,uBAAuB,EAAE,CAcpC;AAED,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAE5D;AAED,wBAAgB,8BAA8B,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAErE;AAED,+EAA+E;AAC/E,wBAAgB,iCAAiC,CAC/C,KAAK,EAAE,MAAM,GACZ,uBAAuB,GAAG,SAAS,CAErC;AAED,wBAAgB,gCAAgC,CAC9C,KAAK,EAAE,MAAM,EACb,MAAM,CAAC,EAAE,uBAAuB,GAC/B,uBAAuB,GAAG,SAAS,CAkBrC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.DEEPSEEK_DEPRECATED_MODELS = exports.DEEPSEEK_VISION_SUPPORTED_MODELS = exports.DEEPSEEK_SUPPORTED_MODELS = exports.MODEL_DEEPSEEK_REASONER = exports.MODEL_DEEPSEEK_CHAT = exports.MODEL_DEEPSEEK_V4_FLASH_VISION_EXP = exports.MODEL_DEEPSEEK_V4_PRO = exports.MODEL_DEEPSEEK_V4_FLASH = exports.ENDPOINT_DEEPSEEK_CHAT_COMPLETIONS_API = exports.DEEPSEEK_API_BASE_URL = void 0;
|
|
3
|
+
exports.DEEPSEEK_DEPRECATED_MODELS = exports.DEEPSEEK_VISION_SUPPORTED_MODELS = exports.DEEPSEEK_SUPPORTED_MODELS = exports.MODEL_DEEPSEEK_REASONER = exports.MODEL_DEEPSEEK_CHAT = exports.MODEL_DEEPSEEK_V4_FLASH_VISION_EXP = exports.MODEL_DEEPSEEK_V4_PRO = exports.MODEL_DEEPSEEK_V4_FLASH = exports.MODEL_DEEPSEEK_FLASH = exports.ENDPOINT_DEEPSEEK_CHAT_COMPLETIONS_API = exports.DEEPSEEK_API_BASE_URL = void 0;
|
|
4
4
|
exports.getDeepSeekSupportedReasoningEfforts = getDeepSeekSupportedReasoningEfforts;
|
|
5
5
|
exports.isDeepSeekVisionModel = isDeepSeekVisionModel;
|
|
6
6
|
exports.isDeepSeekReasoningEffortModel = isDeepSeekReasoningEffortModel;
|
|
@@ -8,6 +8,7 @@ exports.getDefaultDeepSeekReasoningEffort = getDefaultDeepSeekReasoningEffort;
|
|
|
8
8
|
exports.normalizeDeepSeekReasoningEffort = normalizeDeepSeekReasoningEffort;
|
|
9
9
|
exports.DEEPSEEK_API_BASE_URL = 'https://api.deepseek.com';
|
|
10
10
|
exports.ENDPOINT_DEEPSEEK_CHAT_COMPLETIONS_API = `${exports.DEEPSEEK_API_BASE_URL}/chat/completions`;
|
|
11
|
+
exports.MODEL_DEEPSEEK_FLASH = 'deepseek-flash';
|
|
11
12
|
// DeepSeek V4 models
|
|
12
13
|
exports.MODEL_DEEPSEEK_V4_FLASH = 'deepseek-v4-flash';
|
|
13
14
|
exports.MODEL_DEEPSEEK_V4_PRO = 'deepseek-v4-pro';
|
|
@@ -29,11 +30,13 @@ exports.MODEL_DEEPSEEK_CHAT = 'deepseek-chat';
|
|
|
29
30
|
/** @deprecated Use MODEL_DEEPSEEK_V4_FLASH or MODEL_DEEPSEEK_V4_PRO instead. */
|
|
30
31
|
exports.MODEL_DEEPSEEK_REASONER = 'deepseek-reasoner';
|
|
31
32
|
exports.DEEPSEEK_SUPPORTED_MODELS = [
|
|
33
|
+
exports.MODEL_DEEPSEEK_FLASH,
|
|
32
34
|
exports.MODEL_DEEPSEEK_V4_FLASH,
|
|
33
35
|
exports.MODEL_DEEPSEEK_V4_PRO,
|
|
34
36
|
exports.MODEL_DEEPSEEK_V4_FLASH_VISION_EXP,
|
|
35
37
|
];
|
|
36
38
|
exports.DEEPSEEK_VISION_SUPPORTED_MODELS = [
|
|
39
|
+
exports.MODEL_DEEPSEEK_FLASH,
|
|
37
40
|
exports.MODEL_DEEPSEEK_V4_FLASH_VISION_EXP,
|
|
38
41
|
];
|
|
39
42
|
exports.DEEPSEEK_DEPRECATED_MODELS = [
|
|
@@ -41,7 +44,7 @@ exports.DEEPSEEK_DEPRECATED_MODELS = [
|
|
|
41
44
|
exports.MODEL_DEEPSEEK_REASONER,
|
|
42
45
|
];
|
|
43
46
|
function getDeepSeekSupportedReasoningEfforts(model) {
|
|
44
|
-
if (model === exports.MODEL_DEEPSEEK_V4_FLASH) {
|
|
47
|
+
if (model === exports.MODEL_DEEPSEEK_FLASH || model === exports.MODEL_DEEPSEEK_V4_FLASH) {
|
|
45
48
|
return DEEPSEEK_V4_FLASH_REASONING_EFFORTS;
|
|
46
49
|
}
|
|
47
50
|
if (model === exports.MODEL_DEEPSEEK_V4_FLASH_VISION_EXP) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deepseek.js","sourceRoot":"","sources":["../../../src/constants/deepseek.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"deepseek.js","sourceRoot":"","sources":["../../../src/constants/deepseek.ts"],"names":[],"mappings":";;;AAiDA,oFAgBC;AAED,sDAEC;AAED,wEAEC;AAGD,8EAIC;AAED,4EAqBC;AAvGY,QAAA,qBAAqB,GAAG,0BAA0B,CAAC;AACnD,QAAA,sCAAsC,GAAG,GAAG,6BAAqB,mBAAmB,CAAC;AAErF,QAAA,oBAAoB,GAAG,gBAAgB,CAAC;AAErD,qBAAqB;AACR,QAAA,uBAAuB,GAAG,mBAAmB,CAAC;AAC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AC,KAAK,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC;AACpE,CAAC;AAED,SAAgB,gCAAgC,CAC9C,KAAa,EACb,MAAgC;IAEhC,MAAM,SAAS,GAAG,oCAAoC,CAAC,KAAK,CAAC,CAAC;IAC9D,IAAI,SAAS,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QAC3B,OAAO,SAAS,CAAC;IACnB,CAAC;IAED,MAAM,SAAS,GAAG,MAAM,IAAI,iCAAiC,CAAC,KAAK,CAAC,CAAC;IACrE,IAAI,SAAS,IAAI,SAAS,CAAC,QAAQ,CAAC,SAAS,CAAC,EAAE,CAAC;QAC/C,OAAO,SAAS,CAAC;IACnB,CAAC;IAED,yEAAyE;IACzE,kEAAkE;IAClE,IAAI,KAAK,KAAK,6BAAqB,IAAI,SAAS,KAAK,KAAK,EAAE,CAAC;QAC3D,OAAO,MAAM,CAAC;IAChB,CAAC;IAED,OAAO,iCAAiC,CAAC,KAAK,CAAC,CAAC;AAClD,CAAC"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export declare const ENDPOINT_OPENAI_CHAT_COMPLETIONS_API = "https://api.openai.com/v1/chat/completions";
|
|
2
2
|
export declare const ENDPOINT_OPENAI_RESPONSES_API = "https://api.openai.com/v1/responses";
|
|
3
|
+
export declare const MODEL_GPT_6_ASTRA = "gpt-6-astra";
|
|
3
4
|
export declare const MODEL_GPT_5_NANO = "gpt-5-nano";
|
|
4
5
|
export declare const MODEL_GPT_5_MINI = "gpt-5-mini";
|
|
5
6
|
export declare const MODEL_GPT_5 = "gpt-5";
|
|
@@ -30,6 +31,8 @@ export type OpenAIReasoningEffort = 'none' | 'minimal' | 'low' | 'medium' | 'hig
|
|
|
30
31
|
* @returns True if the model is a GPT-5 variant
|
|
31
32
|
*/
|
|
32
33
|
export declare function isGPT5Model(model: string): boolean;
|
|
34
|
+
/** OpenAI models using the reasoning and verbosity request options. */
|
|
35
|
+
export declare function isOpenAIReasoningModel(model: string): boolean;
|
|
33
36
|
/**
|
|
34
37
|
* GPT-5.4 Pro currently requires the Responses API endpoint
|
|
35
38
|
*/
|
|
@@ -66,4 +69,6 @@ export declare function allowsReasoningLow(model: string): boolean;
|
|
|
66
69
|
* - GPT-5.4 Pro: medium
|
|
67
70
|
*/
|
|
68
71
|
export declare function getDefaultReasoningEffortForGPT5Model(model: string): 'none' | 'minimal' | 'medium';
|
|
72
|
+
/** Get the default reasoning effort for supported OpenAI reasoning models. */
|
|
73
|
+
export declare function getDefaultReasoningEffortForOpenAIModel(model: string): 'none' | 'minimal' | 'low' | 'medium';
|
|
69
74
|
//# sourceMappingURL=openai.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"openai.d.ts","sourceRoot":"","sources":["../../../src/constants/openai.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,oCAAoC,+CACH,CAAC;AAC/C,eAAO,MAAM,6BAA6B,wCACH,CAAC;
|
|
1
|
+
{"version":3,"file":"openai.d.ts","sourceRoot":"","sources":["../../../src/constants/openai.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,oCAAoC,+CACH,CAAC;AAC/C,eAAO,MAAM,6BAA6B,wCACH,CAAC;AAExC,eAAO,MAAM,iBAAiB,gBAAgB,CAAC;AAG/C,eAAO,MAAM,gBAAgB,eAAe,CAAC;AAC7C,eAAO,MAAM,gBAAgB,eAAe,CAAC;AAC7C,eAAO,MAAM,WAAW,UAAU,CAAC;AACnC,eAAO,MAAM,aAAa,YAAY,CAAC;AACvC,eAAO,MAAM,aAAa,YAAY,CAAC;AACvC,eAAO,MAAM,aAAa,YAAY,CAAC;AACvC,eAAO,MAAM,aAAa,YAAY,CAAC;AACvC,eAAO,MAAM,iBAAiB,gBAAgB,CAAC;AAC/C,eAAO,MAAM,mBAAmB,kBAAkB,CAAC;AACnD,eAAO,MAAM,kBAAkB,iBAAiB,CAAC;AACjD,eAAO,MAAM,kBAAkB,iBAAiB,CAAC;A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B,qCAAqC,CACnD,KAAK,EAAE,MAAM,GACZ,MAAM,GAAG,SAAS,GAAG,QAAQ,CAQ/B;AAED,8EAA8E;AAC9E,wBAAgB,uCAAuC,CACrD,KAAK,EAAE,MAAM,GACZ,MAAM,GAAG,SAAS,GAAG,KAAK,GAAG,QAAQ,CAIvC"}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.GPT_5_MODELS = exports.VISION_SUPPORTED_MODELS = exports.MODEL_O1 = exports.MODEL_O1_MINI = exports.MODEL_O3_MINI = exports.MODEL_GPT_4O = exports.MODEL_GPT_4O_MINI = exports.MODEL_GPT_4_1_NANO = exports.MODEL_GPT_4_1_MINI = exports.MODEL_GPT_4_1 = exports.MODEL_GPT_5_4_PRO = exports.MODEL_GPT_5_4_NANO = exports.MODEL_GPT_5_4_MINI = exports.MODEL_GPT_5_6_LUNA = exports.MODEL_GPT_5_6_TERRA = exports.MODEL_GPT_5_6_SOL = exports.MODEL_GPT_5_6 = exports.MODEL_GPT_5_5 = exports.MODEL_GPT_5_4 = exports.MODEL_GPT_5_1 = exports.MODEL_GPT_5 = exports.MODEL_GPT_5_MINI = exports.MODEL_GPT_5_NANO = exports.ENDPOINT_OPENAI_RESPONSES_API = exports.ENDPOINT_OPENAI_CHAT_COMPLETIONS_API = void 0;
|
|
3
|
+
exports.GPT_5_MODELS = exports.VISION_SUPPORTED_MODELS = exports.MODEL_O1 = exports.MODEL_O1_MINI = exports.MODEL_O3_MINI = exports.MODEL_GPT_4O = exports.MODEL_GPT_4O_MINI = exports.MODEL_GPT_4_1_NANO = exports.MODEL_GPT_4_1_MINI = exports.MODEL_GPT_4_1 = exports.MODEL_GPT_5_4_PRO = exports.MODEL_GPT_5_4_NANO = exports.MODEL_GPT_5_4_MINI = exports.MODEL_GPT_5_6_LUNA = exports.MODEL_GPT_5_6_TERRA = exports.MODEL_GPT_5_6_SOL = exports.MODEL_GPT_5_6 = exports.MODEL_GPT_5_5 = exports.MODEL_GPT_5_4 = exports.MODEL_GPT_5_1 = exports.MODEL_GPT_5 = exports.MODEL_GPT_5_MINI = exports.MODEL_GPT_5_NANO = exports.MODEL_GPT_6_ASTRA = exports.ENDPOINT_OPENAI_RESPONSES_API = exports.ENDPOINT_OPENAI_CHAT_COMPLETIONS_API = void 0;
|
|
4
4
|
exports.isGPT5Model = isGPT5Model;
|
|
5
|
+
exports.isOpenAIReasoningModel = isOpenAIReasoningModel;
|
|
5
6
|
exports.isResponsesOnlyGPT5Model = isResponsesOnlyGPT5Model;
|
|
6
7
|
exports.allowsReasoningXHigh = allowsReasoningXHigh;
|
|
7
8
|
exports.allowsReasoningMax = allowsReasoningMax;
|
|
@@ -9,8 +10,10 @@ exports.allowsReasoningNone = allowsReasoningNone;
|
|
|
9
10
|
exports.allowsReasoningMinimal = allowsReasoningMinimal;
|
|
10
11
|
exports.allowsReasoningLow = allowsReasoningLow;
|
|
11
12
|
exports.getDefaultReasoningEffortForGPT5Model = getDefaultReasoningEffortForGPT5Model;
|
|
13
|
+
exports.getDefaultReasoningEffortForOpenAIModel = getDefaultReasoningEffortForOpenAIModel;
|
|
12
14
|
exports.ENDPOINT_OPENAI_CHAT_COMPLETIONS_API = 'https://api.openai.com/v1/chat/completions';
|
|
13
15
|
exports.ENDPOINT_OPENAI_RESPONSES_API = 'https://api.openai.com/v1/responses';
|
|
16
|
+
exports.MODEL_GPT_6_ASTRA = 'gpt-6-astra';
|
|
14
17
|
// gpt model
|
|
15
18
|
exports.MODEL_GPT_5_NANO = 'gpt-5-nano';
|
|
16
19
|
exports.MODEL_GPT_5_MINI = 'gpt-5-mini';
|
|
@@ -37,6 +40,7 @@ exports.MODEL_O1_MINI = 'o1-mini';
|
|
|
37
40
|
exports.MODEL_O1 = 'o1';
|
|
38
41
|
// Vision support for models
|
|
39
42
|
exports.VISION_SUPPORTED_MODELS = [
|
|
43
|
+
exports.MODEL_GPT_6_ASTRA,
|
|
40
44
|
exports.MODEL_GPT_5_NANO,
|
|
41
45
|
exports.MODEL_GPT_5_MINI,
|
|
42
46
|
exports.MODEL_GPT_5,
|
|
@@ -82,6 +86,10 @@ exports.GPT_5_MODELS = [
|
|
|
82
86
|
function isGPT5Model(model) {
|
|
83
87
|
return exports.GPT_5_MODELS.includes(model);
|
|
84
88
|
}
|
|
89
|
+
/** OpenAI models using the reasoning and verbosity request options. */
|
|
90
|
+
function isOpenAIReasoningModel(model) {
|
|
91
|
+
return model === exports.MODEL_GPT_6_ASTRA || isGPT5Model(model);
|
|
92
|
+
}
|
|
85
93
|
/**
|
|
86
94
|
* GPT-5.4 Pro currently requires the Responses API endpoint
|
|
87
95
|
*/
|
|
@@ -92,7 +100,8 @@ function isResponsesOnlyGPT5Model(model) {
|
|
|
92
100
|
* Check if the provided model allows the reasoning_effort 'xhigh' level
|
|
93
101
|
*/
|
|
94
102
|
function allowsReasoningXHigh(model) {
|
|
95
|
-
return (model === exports.
|
|
103
|
+
return (model === exports.MODEL_GPT_6_ASTRA ||
|
|
104
|
+
model === exports.MODEL_GPT_5_6 ||
|
|
96
105
|
model === exports.MODEL_GPT_5_6_SOL ||
|
|
97
106
|
model === exports.MODEL_GPT_5_6_TERRA ||
|
|
98
107
|
model === exports.MODEL_GPT_5_6_LUNA ||
|
|
@@ -106,7 +115,8 @@ function allowsReasoningXHigh(model) {
|
|
|
106
115
|
* Check if the provided model allows the reasoning_effort 'max' level
|
|
107
116
|
*/
|
|
108
117
|
function allowsReasoningMax(model) {
|
|
109
|
-
return (model === exports.
|
|
118
|
+
return (model === exports.MODEL_GPT_6_ASTRA ||
|
|
119
|
+
model === exports.MODEL_GPT_5_6 ||
|
|
110
120
|
model === exports.MODEL_GPT_5_6_SOL ||
|
|
111
121
|
model === exports.MODEL_GPT_5_6_TERRA ||
|
|
112
122
|
model === exports.MODEL_GPT_5_6_LUNA);
|
|
@@ -159,4 +169,10 @@ function getDefaultReasoningEffortForGPT5Model(model) {
|
|
|
159
169
|
}
|
|
160
170
|
return 'medium';
|
|
161
171
|
}
|
|
172
|
+
/** Get the default reasoning effort for supported OpenAI reasoning models. */
|
|
173
|
+
function getDefaultReasoningEffortForOpenAIModel(model) {
|
|
174
|
+
return model === exports.MODEL_GPT_6_ASTRA
|
|
175
|
+
? 'low'
|
|
176
|
+
: getDefaultReasoningEffortForGPT5Model(model);
|
|
177
|
+
}
|
|
162
178
|
//# sourceMappingURL=openai.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"openai.js","sourceRoot":"","sources":["../../../src/constants/openai.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"openai.js","sourceRoot":"","sources":["../../../src/constants/openai.ts"],"names":[],"mappings":";;;AA2FA,kCAEC;AAGD,wDAEC;AAKD,4DAEC;AAKD,oDAaC;AAKD,gDAQC;AAOD,kDAYC;AAMD,wDAMC;AAMD,gDAEC;AASD,sFAUC;AAGD,0FAMC;AA3MY,QAAA,oCAAoC,GAC/C,4CAA4C,CAAC;AAClC,QAAA,6BAA6B,GACxC,qCAAqC,CAAC;AAE3B,QAAA,iBAAiB,GAAG,aAAa,CAAC;AAE/C,YAAY;AACC,QAAA,gBAAgB,GAAG,YAAY,CAAC;AAChC,QAAA,gBAAgB,GAAG,YAAY,CAAC;AAChC,QAAA,WAAW,GAAG,OAAO,CAAC;AACtB,QAAA,aAAa,GAAG,SAAS,CAAC;AAC1B,QAAA,aAAa,GAAG,SAAS,CAAC;AAC1B,QAAA,aAAa,GAAG,SAAS,CAAC;AAC1B,QAAA,aAAa,GAAG,SAAS,CAAC;AAC1B,QAAA,iBAAiB,GAAG,aAAa,CAAC;AAClC,QAAA,mBAAmB,GAAG,eAAe,CAAC;AACtC,QAAA,kBAAkB,GAAG,cAAc,CAAC;AACpC,QAAA,kBAAkB,GAAG,cAAc,CAAC;AACpC,QAAA,kBAAkB,GAAG,cAAc,CAAC;AACpC,QAAA,iBAAiB,GAAG,aAAa,CAAC;AA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CAAC,EAAE,CAAC;QAC/B,OAAO,MAAM,CAAC;IAChB,CAAC;IACD,IAAI,sBAAsB,CAAC,KAAK,CAAC,EAAE,CAAC;QAClC,OAAO,SAAS,CAAC;IACnB,CAAC;IACD,OAAO,QAAQ,CAAC;AAClB,CAAC;AAED,8EAA8E;AAC9E,SAAgB,uCAAuC,CACrD,KAAa;IAEb,OAAO,KAAK,KAAK,yBAAiB;QAChC,CAAC,CAAC,KAAK;QACP,CAAC,CAAC,qCAAqC,CAAC,KAAK,CAAC,CAAC;AACnD,CAAC"}
|
|
@@ -1,4 +1,15 @@
|
|
|
1
1
|
export declare const ENDPOINT_OPENROUTER_API = "https://openrouter.ai/api/v1/chat/completions";
|
|
2
|
+
export declare const MODEL_OPENAI_GPT_6_ASTRA = "openai/gpt-6-astra";
|
|
3
|
+
export declare const MODEL_OPENAI_GPT_6_ASTRA_PRO = "openai/gpt-6-astra-pro";
|
|
4
|
+
export declare const MODEL_ANTHROPIC_CLAUDE_FABLE_5_1 = "anthropic/claude-fable-5.1";
|
|
5
|
+
export declare const MODEL_OPENROUTER_DEEPSEEK_V4_1_FLASH = "deepseek/deepseek-v4.1-flash";
|
|
6
|
+
export declare const MODEL_GOOGLE_GEMINI_3_8_FLASH = "google/gemini-3.8-flash";
|
|
7
|
+
export declare const MODEL_INCLUSIONAI_LING_3_0_FLASH_VL_FREE = "inclusionai/ling-3.0-flash-vl:free";
|
|
8
|
+
export declare const MODEL_INCEPTION_MERCURY_2_5 = "inception/mercury-2.5";
|
|
9
|
+
export declare const MODEL_NEX_AGI_NEX_N2_5_MINI_FREE = "nex-agi/nex-n2.5-mini:free";
|
|
10
|
+
export declare const MODEL_NEX_AGI_NEX_N2_5_PRO_FREE = "nex-agi/nex-n2.5-pro:free";
|
|
11
|
+
export declare const MODEL_QWEN_QWEN_3_8_MAX_0902 = "qwen/qwen3.8-max-0902";
|
|
12
|
+
export declare const MODEL_META_MUSE_SPARK_1_3 = "meta/muse-spark-1.3";
|
|
2
13
|
export declare const MODEL_OPENROUTER_AUTO = "openrouter/auto";
|
|
3
14
|
export declare const MODEL_OPENROUTER_AUTO_BETA = "openrouter/auto-beta";
|
|
4
15
|
export declare const MODEL_OPENROUTER_FUSION = "openrouter/fusion";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"openrouter.d.ts","sourceRoot":"","sources":["../../../src/constants/openrouter.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,uBAAuB,kDACa,CAAC;
|
|
1
|
+
{"version":3,"file":"openrouter.d.ts","sourceRoot":"","sources":["../../../src/constants/openrouter.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,uBAAuB,kDACa,CAAC;AAElD,eAAO,MAAM,wBAAwB,uBAAuB,CAAC;AAC7D,eAAO,MAAM,4BAA4B,2BAA2B,CAAC;AACrE,eAAO,MAAM,gCAAgC,+BAA+B,CAAC;AAC7E,eAAO,MAAM,oCAAoC,iCACjB,CAAC;AACjC,eAAO,MAAM,6BAA6B,4BAA4B,CAAC;AACvE,eAAO,MAAM,wCAAwC,uCACf,CAAC;AACvC,eAAO,MAAM,2BAA2B,0BAA0B,CAAC;AACnE,eAAO,MAAM,gCAAgC,+BAA+B,CAAC;AAC7E,eAAO,MAAM,+BAA+B,8BAA8B,CAAC;AAC3E,eAAO,MAAM,4BAA4B,0BAA0B,CAAC;AACpE,eAAO,MAAM,yBAAyB,wBAAwB,CAAC;AAG/D,eAAO,MAAM,qBAAqB,oBAAoB,CAAC;AACvD,eAAO,MAAM,0BAA0B,yBAAyB,CAAC;AACjE,eAAO,MAAM,uBAAuB,sBAAsB,CAAC;AAC3D,eAAO,MAAM,sBAAsB,4BAA4B,CAAC;AAChE,eAAO,MAAM,wBAAwB,uBAAuB,CAAC;AAC7D,eAAO,MAAM,+BAA+B,8BAA8B,CAAC;AAC3E,eAAO,MAAM,0BAA0B,yBAAyB,CAAC;AACjE,eAAO,MAAM,0BAA0B,yBAAyB,CAAC;AACjE,eAAO,MAAM,4BAA4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AAK,EAAE,MAAM,GAAG,OAAO,CAE5D;AAED;;;;GAIG;AACH,wBAAgB,uBAAuB,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAI9D;AAED,wBAAgB,sCAAsC,CACpD,KAAK,EAAE,MAAM,GACZ,SAAS,yBAAyB,EAAE,CAwCtC;AAED,wBAAgB,mCAAmC,CACjD,KAAK,EAAE,MAAM,GACZ,yBAAyB,GAAG,SAAS,CA0BvC;AAED,wBAAgB,kCAAkC,CAChD,KAAK,EAAE,MAAM,EACb,MAAM,CAAC,EAAE,yBAAyB,GACjC,yBAAyB,GAAG,SAAS,CAsEvC"}
|
|
@@ -1,13 +1,24 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.OPENROUTER_CREDITS_THRESHOLD = exports.OPENROUTER_FREE_DAILY_LIMIT_HIGH_CREDITS = exports.OPENROUTER_FREE_DAILY_LIMIT_LOW_CREDITS = exports.OPENROUTER_FREE_RATE_LIMIT_PER_MINUTE = exports.OPENROUTER_VISION_SUPPORTED_MODELS = exports.OPENROUTER_FREE_MODELS = exports.OPENROUTER_DEPRECATED_MODELS = exports.MODEL_QWEN_QWEN_3_8_FLASH = exports.MODEL_OPENROUTER_DEEPSEEK_V4_FLASH_VISION_EXP = exports.MODEL_OPENROUTER_DEEPSEEK_V4_PRO_0813 = exports.MODEL_OPENROUTER_DEEPSEEK_V4_FLASH_0731 = exports.MODEL_OPENROUTER_DEEPSEEK_V4_FLASH = exports.MODEL_XAI_GROK_4_5 = exports.MODEL_XAI_GROK_4_6 = exports.MODEL_XAI_GROK_LATEST = exports.MODEL_KWAIPILOT_KAT_CODER_PRO_V2_5 = void 0;
|
|
3
|
+
exports.MODEL_GOOGLE_GEMINI_3_6_FLASH = exports.MODEL_GOOGLE_GEMINI_3_7_FLASH = exports.MODEL_GOOGLE_GEMINI_FLASH_LATEST = exports.MODEL_GOOGLE_GEMINI_PRO_LATEST = exports.MODEL_ANTHROPIC_CLAUDE_4_5_HAIKU = exports.MODEL_ANTHROPIC_CLAUDE_3_5_SONNET = exports.MODEL_ANTHROPIC_CLAUDE_3_7_SONNET = exports.MODEL_ANTHROPIC_CLAUDE_SONNET_4 = exports.MODEL_ANTHROPIC_CLAUDE_OPUS_4 = exports.MODEL_ANTHROPIC_CLAUDE_OPUS_4_8 = exports.MODEL_ANTHROPIC_CLAUDE_OPUS_5 = exports.MODEL_ANTHROPIC_CLAUDE_SONNET_5 = exports.MODEL_ANTHROPIC_CLAUDE_FABLE_5 = exports.MODEL_ANTHROPIC_CLAUDE_HAIKU_LATEST = exports.MODEL_ANTHROPIC_CLAUDE_SONNET_LATEST = exports.MODEL_OPENAI_GPT_4_1_NANO = exports.MODEL_OPENAI_GPT_4_1_MINI = exports.MODEL_OPENAI_GPT_4O = exports.MODEL_OPENAI_GPT_5_NANO = exports.MODEL_OPENAI_GPT_5_MINI = exports.MODEL_OPENAI_GPT_5_1_CODEX = exports.MODEL_OPENAI_GPT_5_1_CHAT = exports.MODEL_OPENAI_GPT_5_5 = exports.MODEL_OPENAI_GPT_5_5_PRO = exports.MODEL_OPENAI_GPT_5_6_LUNA = exports.MODEL_OPENAI_GPT_5_6_TERRA = exports.MODEL_OPENAI_GPT_5_6_SOL = exports.MODEL_OPENAI_GPT_MINI_LATEST = exports.MODEL_OPENAI_GPT_LATEST = exports.MODEL_MOONSHOTAI_KIMI_LATEST = exports.MODEL_MOONSHOTAI_KIMI_K2_5 = exports.MODEL_MOONSHOTAI_KIMI_K2_6 = exports.MODEL_MOONSHOTAI_KIMI_K2_7_CODE = exports.MODEL_MOONSHOTAI_KIMI_K3 = exports.MODEL_GPT_OSS_20B_FREE = exports.MODEL_OPENROUTER_FUSION = exports.MODEL_OPENROUTER_AUTO_BETA = exports.MODEL_OPENROUTER_AUTO = exports.MODEL_META_MUSE_SPARK_1_3 = exports.MODEL_QWEN_QWEN_3_8_MAX_0902 = exports.MODEL_NEX_AGI_NEX_N2_5_PRO_FREE = exports.MODEL_NEX_AGI_NEX_N2_5_MINI_FREE = exports.MODEL_INCEPTION_MERCURY_2_5 = exports.MODEL_INCLUSIONAI_LING_3_0_FLASH_VL_FREE = exports.MODEL_GOOGLE_GEMINI_3_8_FLASH = exports.MODEL_OPENROUTER_DEEPSEEK_V4_1_FLASH = exports.MODEL_ANTHROPIC_CLAUDE_FABLE_5_1 = exports.MODEL_OPENAI_GPT_6_ASTRA_PRO = exports.MODEL_OPENAI_GPT_6_ASTRA = exports.ENDPOINT_OPENROUTER_API = void 0;
|
|
4
|
+
exports.OPENROUTER_CREDITS_THRESHOLD = exports.OPENROUTER_FREE_DAILY_LIMIT_HIGH_CREDITS = exports.OPENROUTER_FREE_DAILY_LIMIT_LOW_CREDITS = exports.OPENROUTER_FREE_RATE_LIMIT_PER_MINUTE = exports.OPENROUTER_VISION_SUPPORTED_MODELS = exports.OPENROUTER_FREE_MODELS = exports.OPENROUTER_DEPRECATED_MODELS = exports.MODEL_QWEN_QWEN_3_8_FLASH = exports.MODEL_OPENROUTER_DEEPSEEK_V4_FLASH_VISION_EXP = exports.MODEL_OPENROUTER_DEEPSEEK_V4_PRO_0813 = exports.MODEL_OPENROUTER_DEEPSEEK_V4_FLASH_0731 = exports.MODEL_OPENROUTER_DEEPSEEK_V4_FLASH = exports.MODEL_XAI_GROK_4_5 = exports.MODEL_XAI_GROK_4_6 = exports.MODEL_XAI_GROK_LATEST = exports.MODEL_KWAIPILOT_KAT_CODER_PRO_V2_5 = exports.MODEL_KWAIPILOT_KAT_CODER_AIR_V2_5 = exports.MODEL_ZAI_GLM_4_5_AIR_FREE = exports.MODEL_ZAI_GLM_4_5_AIR = exports.MODEL_ZAI_GLM_4_7_FLASH = exports.MODEL_ZAI_GLM_5_3_FLASH = exports.MODEL_ZAI_GLM_5_3 = exports.MODEL_ZAI_GLM_5_2 = exports.MODEL_GOOGLE_GEMINI_2_5_FLASH_LITE_PREVIEW_09_2025 = exports.MODEL_GOOGLE_GEMINI_2_5_FLASH = exports.MODEL_GOOGLE_GEMINI_2_5_PRO = exports.MODEL_GOOGLE_GEMINI_3_5_FLASH_LITE = void 0;
|
|
5
5
|
exports.isOpenRouterFreeModel = isOpenRouterFreeModel;
|
|
6
6
|
exports.isOpenRouterVisionModel = isOpenRouterVisionModel;
|
|
7
7
|
exports.getOpenRouterSupportedReasoningEfforts = getOpenRouterSupportedReasoningEfforts;
|
|
8
8
|
exports.getDefaultOpenRouterReasoningEffort = getDefaultOpenRouterReasoningEffort;
|
|
9
9
|
exports.normalizeOpenRouterReasoningEffort = normalizeOpenRouterReasoningEffort;
|
|
10
10
|
exports.ENDPOINT_OPENROUTER_API = 'https://openrouter.ai/api/v1/chat/completions';
|
|
11
|
+
exports.MODEL_OPENAI_GPT_6_ASTRA = 'openai/gpt-6-astra';
|
|
12
|
+
exports.MODEL_OPENAI_GPT_6_ASTRA_PRO = 'openai/gpt-6-astra-pro';
|
|
13
|
+
exports.MODEL_ANTHROPIC_CLAUDE_FABLE_5_1 = 'anthropic/claude-fable-5.1';
|
|
14
|
+
exports.MODEL_OPENROUTER_DEEPSEEK_V4_1_FLASH = 'deepseek/deepseek-v4.1-flash';
|
|
15
|
+
exports.MODEL_GOOGLE_GEMINI_3_8_FLASH = 'google/gemini-3.8-flash';
|
|
16
|
+
exports.MODEL_INCLUSIONAI_LING_3_0_FLASH_VL_FREE = 'inclusionai/ling-3.0-flash-vl:free';
|
|
17
|
+
exports.MODEL_INCEPTION_MERCURY_2_5 = 'inception/mercury-2.5';
|
|
18
|
+
exports.MODEL_NEX_AGI_NEX_N2_5_MINI_FREE = 'nex-agi/nex-n2.5-mini:free';
|
|
19
|
+
exports.MODEL_NEX_AGI_NEX_N2_5_PRO_FREE = 'nex-agi/nex-n2.5-pro:free';
|
|
20
|
+
exports.MODEL_QWEN_QWEN_3_8_MAX_0902 = 'qwen/qwen3.8-max-0902';
|
|
21
|
+
exports.MODEL_META_MUSE_SPARK_1_3 = 'meta/muse-spark-1.3';
|
|
11
22
|
// OpenRouter models
|
|
12
23
|
exports.MODEL_OPENROUTER_AUTO = 'openrouter/auto';
|
|
13
24
|
exports.MODEL_OPENROUTER_AUTO_BETA = 'openrouter/auto-beta';
|
|
@@ -117,10 +128,71 @@ const OPENROUTER_CLAUDE_REASONING_EFFORTS = [
|
|
|
117
128
|
'xhigh',
|
|
118
129
|
'max',
|
|
119
130
|
];
|
|
131
|
+
const OPENROUTER_MODEL_REASONING = {
|
|
132
|
+
[exports.MODEL_OPENAI_GPT_6_ASTRA]: {
|
|
133
|
+
efforts: ['max', 'xhigh', 'high', 'medium', 'low'],
|
|
134
|
+
defaultEffort: 'medium',
|
|
135
|
+
},
|
|
136
|
+
[exports.MODEL_OPENAI_GPT_6_ASTRA_PRO]: {
|
|
137
|
+
efforts: ['max', 'xhigh', 'high', 'medium', 'low'],
|
|
138
|
+
defaultEffort: 'medium',
|
|
139
|
+
},
|
|
140
|
+
[exports.MODEL_ANTHROPIC_CLAUDE_FABLE_5_1]: {
|
|
141
|
+
efforts: ['max', 'xhigh', 'high', 'medium', 'low'],
|
|
142
|
+
defaultEffort: 'high',
|
|
143
|
+
},
|
|
144
|
+
[exports.MODEL_OPENROUTER_DEEPSEEK_V4_1_FLASH]: {
|
|
145
|
+
efforts: ['max', 'high', 'low', 'none'],
|
|
146
|
+
defaultEffort: 'none',
|
|
147
|
+
},
|
|
148
|
+
[exports.MODEL_GOOGLE_GEMINI_3_8_FLASH]: {
|
|
149
|
+
efforts: ['high', 'medium', 'low'],
|
|
150
|
+
defaultEffort: 'medium',
|
|
151
|
+
},
|
|
152
|
+
[exports.MODEL_INCLUSIONAI_LING_3_0_FLASH_VL_FREE]: {
|
|
153
|
+
efforts: [],
|
|
154
|
+
defaultEffort: undefined,
|
|
155
|
+
},
|
|
156
|
+
[exports.MODEL_INCEPTION_MERCURY_2_5]: {
|
|
157
|
+
efforts: ['high', 'medium', 'low', 'none'],
|
|
158
|
+
defaultEffort: 'none',
|
|
159
|
+
},
|
|
160
|
+
[exports.MODEL_NEX_AGI_NEX_N2_5_MINI_FREE]: {
|
|
161
|
+
efforts: ['high', 'medium', 'none'],
|
|
162
|
+
defaultEffort: 'none',
|
|
163
|
+
},
|
|
164
|
+
[exports.MODEL_NEX_AGI_NEX_N2_5_PRO_FREE]: {
|
|
165
|
+
efforts: ['high', 'medium', 'none'],
|
|
166
|
+
defaultEffort: 'none',
|
|
167
|
+
},
|
|
168
|
+
[exports.MODEL_QWEN_QWEN_3_8_MAX_0902]: {
|
|
169
|
+
efforts: ['xhigh', 'high', 'medium', 'low', 'minimal'],
|
|
170
|
+
defaultEffort: 'xhigh',
|
|
171
|
+
},
|
|
172
|
+
[exports.MODEL_META_MUSE_SPARK_1_3]: {
|
|
173
|
+
efforts: ['max', 'xhigh', 'high', 'medium', 'low', 'minimal'],
|
|
174
|
+
defaultEffort: 'medium',
|
|
175
|
+
},
|
|
176
|
+
};
|
|
120
177
|
// Free tier models
|
|
121
|
-
exports.OPENROUTER_FREE_MODELS = [
|
|
178
|
+
exports.OPENROUTER_FREE_MODELS = [
|
|
179
|
+
exports.MODEL_GPT_OSS_20B_FREE,
|
|
180
|
+
exports.MODEL_INCLUSIONAI_LING_3_0_FLASH_VL_FREE,
|
|
181
|
+
exports.MODEL_NEX_AGI_NEX_N2_5_MINI_FREE,
|
|
182
|
+
exports.MODEL_NEX_AGI_NEX_N2_5_PRO_FREE,
|
|
183
|
+
];
|
|
122
184
|
// Vision supported models on OpenRouter
|
|
123
185
|
exports.OPENROUTER_VISION_SUPPORTED_MODELS = [
|
|
186
|
+
exports.MODEL_OPENAI_GPT_6_ASTRA,
|
|
187
|
+
exports.MODEL_OPENAI_GPT_6_ASTRA_PRO,
|
|
188
|
+
exports.MODEL_ANTHROPIC_CLAUDE_FABLE_5_1,
|
|
189
|
+
exports.MODEL_OPENROUTER_DEEPSEEK_V4_1_FLASH,
|
|
190
|
+
exports.MODEL_GOOGLE_GEMINI_3_8_FLASH,
|
|
191
|
+
exports.MODEL_INCLUSIONAI_LING_3_0_FLASH_VL_FREE,
|
|
192
|
+
exports.MODEL_NEX_AGI_NEX_N2_5_MINI_FREE,
|
|
193
|
+
exports.MODEL_NEX_AGI_NEX_N2_5_PRO_FREE,
|
|
194
|
+
exports.MODEL_QWEN_QWEN_3_8_MAX_0902,
|
|
195
|
+
exports.MODEL_META_MUSE_SPARK_1_3,
|
|
124
196
|
exports.MODEL_OPENROUTER_AUTO_BETA,
|
|
125
197
|
exports.MODEL_MOONSHOTAI_KIMI_K3,
|
|
126
198
|
exports.MODEL_MOONSHOTAI_KIMI_K2_6,
|
|
@@ -187,6 +259,11 @@ function isOpenRouterVisionModel(model) {
|
|
|
187
259
|
}
|
|
188
260
|
function getOpenRouterSupportedReasoningEfforts(model) {
|
|
189
261
|
const normalizedModel = model.trim();
|
|
262
|
+
const profile = Object.prototype.hasOwnProperty.call(OPENROUTER_MODEL_REASONING, normalizedModel)
|
|
263
|
+
? OPENROUTER_MODEL_REASONING[normalizedModel]
|
|
264
|
+
: undefined;
|
|
265
|
+
if (profile)
|
|
266
|
+
return profile.efforts;
|
|
190
267
|
if (normalizedModel === exports.MODEL_ZAI_GLM_5_3 ||
|
|
191
268
|
normalizedModel === exports.MODEL_ZAI_GLM_5_3_FLASH) {
|
|
192
269
|
return OPENROUTER_ALWAYS_THINKING_REASONING_EFFORTS;
|
|
@@ -211,6 +288,11 @@ function getOpenRouterSupportedReasoningEfforts(model) {
|
|
|
211
288
|
}
|
|
212
289
|
function getDefaultOpenRouterReasoningEffort(model) {
|
|
213
290
|
const normalizedModel = model.trim();
|
|
291
|
+
const profile = Object.prototype.hasOwnProperty.call(OPENROUTER_MODEL_REASONING, normalizedModel)
|
|
292
|
+
? OPENROUTER_MODEL_REASONING[normalizedModel]
|
|
293
|
+
: undefined;
|
|
294
|
+
if (profile)
|
|
295
|
+
return profile.defaultEffort;
|
|
214
296
|
if (normalizedModel === exports.MODEL_ZAI_GLM_5_3 ||
|
|
215
297
|
normalizedModel === exports.MODEL_ZAI_GLM_5_3_FLASH) {
|
|
216
298
|
return 'low';
|
|
@@ -228,7 +310,15 @@ function getDefaultOpenRouterReasoningEffort(model) {
|
|
|
228
310
|
}
|
|
229
311
|
function normalizeOpenRouterReasoningEffort(model, effort) {
|
|
230
312
|
const normalizedModel = model.trim();
|
|
313
|
+
const profile = Object.prototype.hasOwnProperty.call(OPENROUTER_MODEL_REASONING, normalizedModel)
|
|
314
|
+
? OPENROUTER_MODEL_REASONING[normalizedModel]
|
|
315
|
+
: undefined;
|
|
231
316
|
const requested = effort ?? getDefaultOpenRouterReasoningEffort(model);
|
|
317
|
+
if (profile) {
|
|
318
|
+
if (requested && profile.efforts.includes(requested))
|
|
319
|
+
return requested;
|
|
320
|
+
return profile.defaultEffort;
|
|
321
|
+
}
|
|
232
322
|
if (!requested) {
|
|
233
323
|
return undefined;
|
|
234
324
|
}
|