@aituber-onair/chat 0.54.0 → 0.56.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.
Files changed (115) hide show
  1. package/README.ja.md +54 -10
  2. package/README.md +56 -11
  3. package/dist/cjs/constants/claude.d.ts +2 -0
  4. package/dist/cjs/constants/claude.d.ts.map +1 -1
  5. package/dist/cjs/constants/claude.js +6 -1
  6. package/dist/cjs/constants/claude.js.map +1 -1
  7. package/dist/cjs/constants/deepseek.d.ts +1 -0
  8. package/dist/cjs/constants/deepseek.d.ts.map +1 -1
  9. package/dist/cjs/constants/deepseek.js +5 -2
  10. package/dist/cjs/constants/deepseek.js.map +1 -1
  11. package/dist/cjs/constants/openai.d.ts +10 -3
  12. package/dist/cjs/constants/openai.d.ts.map +1 -1
  13. package/dist/cjs/constants/openai.js +40 -7
  14. package/dist/cjs/constants/openai.js.map +1 -1
  15. package/dist/cjs/constants/openrouter.d.ts +11 -0
  16. package/dist/cjs/constants/openrouter.d.ts.map +1 -1
  17. package/dist/cjs/constants/openrouter.js +93 -3
  18. package/dist/cjs/constants/openrouter.js.map +1 -1
  19. package/dist/cjs/constants/xai.d.ts +1 -0
  20. package/dist/cjs/constants/xai.d.ts.map +1 -1
  21. package/dist/cjs/constants/xai.js +7 -2
  22. package/dist/cjs/constants/xai.js.map +1 -1
  23. package/dist/cjs/services/ChatService.d.ts +2 -0
  24. package/dist/cjs/services/ChatService.d.ts.map +1 -1
  25. package/dist/cjs/services/ChatServiceFactory.d.ts.map +1 -1
  26. package/dist/cjs/services/ChatServiceFactory.js +23 -15
  27. package/dist/cjs/services/ChatServiceFactory.js.map +1 -1
  28. package/dist/cjs/services/providers/ChatServiceProvider.d.ts +2 -0
  29. package/dist/cjs/services/providers/ChatServiceProvider.d.ts.map +1 -1
  30. package/dist/cjs/services/providers/claude/ClaudeChatServiceProvider.d.ts.map +1 -1
  31. package/dist/cjs/services/providers/claude/ClaudeChatServiceProvider.js +2 -0
  32. package/dist/cjs/services/providers/claude/ClaudeChatServiceProvider.js.map +1 -1
  33. package/dist/cjs/services/providers/geminiNano/GeminiNanoChatService.d.ts +24 -3
  34. package/dist/cjs/services/providers/geminiNano/GeminiNanoChatService.d.ts.map +1 -1
  35. package/dist/cjs/services/providers/geminiNano/GeminiNanoChatService.js +211 -15
  36. package/dist/cjs/services/providers/geminiNano/GeminiNanoChatService.js.map +1 -1
  37. package/dist/cjs/services/providers/geminiNano/GeminiNanoChatServiceProvider.d.ts.map +1 -1
  38. package/dist/cjs/services/providers/geminiNano/GeminiNanoChatServiceProvider.js +1 -0
  39. package/dist/cjs/services/providers/geminiNano/GeminiNanoChatServiceProvider.js.map +1 -1
  40. package/dist/cjs/services/providers/openai/OpenAIChatService.d.ts.map +1 -1
  41. package/dist/cjs/services/providers/openai/OpenAIChatService.js +6 -2
  42. package/dist/cjs/services/providers/openai/OpenAIChatService.js.map +1 -1
  43. package/dist/cjs/services/providers/openai/OpenAIChatServiceProvider.d.ts.map +1 -1
  44. package/dist/cjs/services/providers/openai/OpenAIChatServiceProvider.js +17 -4
  45. package/dist/cjs/services/providers/openai/OpenAIChatServiceProvider.js.map +1 -1
  46. package/dist/cjs/services/providers/openai/openaiRequestBuilder.d.ts.map +1 -1
  47. package/dist/cjs/services/providers/openai/openaiRequestBuilder.js +9 -3
  48. package/dist/cjs/services/providers/openai/openaiRequestBuilder.js.map +1 -1
  49. package/dist/cjs/services/providers/openrouter/OpenRouterChatService.d.ts.map +1 -1
  50. package/dist/cjs/services/providers/openrouter/OpenRouterChatService.js +8 -2
  51. package/dist/cjs/services/providers/openrouter/OpenRouterChatService.js.map +1 -1
  52. package/dist/cjs/services/providers/openrouter/OpenRouterChatServiceProvider.d.ts.map +1 -1
  53. package/dist/cjs/services/providers/openrouter/OpenRouterChatServiceProvider.js +11 -0
  54. package/dist/cjs/services/providers/openrouter/OpenRouterChatServiceProvider.js.map +1 -1
  55. package/dist/cjs/services/providers/xai/XAIChatServiceProvider.d.ts.map +1 -1
  56. package/dist/cjs/services/providers/xai/XAIChatServiceProvider.js +1 -0
  57. package/dist/cjs/services/providers/xai/XAIChatServiceProvider.js.map +1 -1
  58. package/dist/esm/constants/claude.d.ts +2 -0
  59. package/dist/esm/constants/claude.d.ts.map +1 -1
  60. package/dist/esm/constants/claude.js +5 -0
  61. package/dist/esm/constants/claude.js.map +1 -1
  62. package/dist/esm/constants/deepseek.d.ts +1 -0
  63. package/dist/esm/constants/deepseek.d.ts.map +1 -1
  64. package/dist/esm/constants/deepseek.js +4 -1
  65. package/dist/esm/constants/deepseek.js.map +1 -1
  66. package/dist/esm/constants/openai.d.ts +10 -3
  67. package/dist/esm/constants/openai.d.ts.map +1 -1
  68. package/dist/esm/constants/openai.js +37 -6
  69. package/dist/esm/constants/openai.js.map +1 -1
  70. package/dist/esm/constants/openrouter.d.ts +11 -0
  71. package/dist/esm/constants/openrouter.d.ts.map +1 -1
  72. package/dist/esm/constants/openrouter.js +91 -1
  73. package/dist/esm/constants/openrouter.js.map +1 -1
  74. package/dist/esm/constants/xai.d.ts +1 -0
  75. package/dist/esm/constants/xai.d.ts.map +1 -1
  76. package/dist/esm/constants/xai.js +6 -1
  77. package/dist/esm/constants/xai.js.map +1 -1
  78. package/dist/esm/services/ChatService.d.ts +2 -0
  79. package/dist/esm/services/ChatService.d.ts.map +1 -1
  80. package/dist/esm/services/ChatServiceFactory.d.ts.map +1 -1
  81. package/dist/esm/services/ChatServiceFactory.js +23 -15
  82. package/dist/esm/services/ChatServiceFactory.js.map +1 -1
  83. package/dist/esm/services/providers/ChatServiceProvider.d.ts +2 -0
  84. package/dist/esm/services/providers/ChatServiceProvider.d.ts.map +1 -1
  85. package/dist/esm/services/providers/claude/ClaudeChatServiceProvider.d.ts.map +1 -1
  86. package/dist/esm/services/providers/claude/ClaudeChatServiceProvider.js +3 -1
  87. package/dist/esm/services/providers/claude/ClaudeChatServiceProvider.js.map +1 -1
  88. package/dist/esm/services/providers/geminiNano/GeminiNanoChatService.d.ts +24 -3
  89. package/dist/esm/services/providers/geminiNano/GeminiNanoChatService.d.ts.map +1 -1
  90. package/dist/esm/services/providers/geminiNano/GeminiNanoChatService.js +211 -15
  91. package/dist/esm/services/providers/geminiNano/GeminiNanoChatService.js.map +1 -1
  92. package/dist/esm/services/providers/geminiNano/GeminiNanoChatServiceProvider.d.ts.map +1 -1
  93. package/dist/esm/services/providers/geminiNano/GeminiNanoChatServiceProvider.js +1 -0
  94. package/dist/esm/services/providers/geminiNano/GeminiNanoChatServiceProvider.js.map +1 -1
  95. package/dist/esm/services/providers/openai/OpenAIChatService.d.ts.map +1 -1
  96. package/dist/esm/services/providers/openai/OpenAIChatService.js +7 -3
  97. package/dist/esm/services/providers/openai/OpenAIChatService.js.map +1 -1
  98. package/dist/esm/services/providers/openai/OpenAIChatServiceProvider.d.ts.map +1 -1
  99. package/dist/esm/services/providers/openai/OpenAIChatServiceProvider.js +18 -5
  100. package/dist/esm/services/providers/openai/OpenAIChatServiceProvider.js.map +1 -1
  101. package/dist/esm/services/providers/openai/openaiRequestBuilder.d.ts.map +1 -1
  102. package/dist/esm/services/providers/openai/openaiRequestBuilder.js +10 -4
  103. package/dist/esm/services/providers/openai/openaiRequestBuilder.js.map +1 -1
  104. package/dist/esm/services/providers/openrouter/OpenRouterChatService.d.ts.map +1 -1
  105. package/dist/esm/services/providers/openrouter/OpenRouterChatService.js +9 -3
  106. package/dist/esm/services/providers/openrouter/OpenRouterChatService.js.map +1 -1
  107. package/dist/esm/services/providers/openrouter/OpenRouterChatServiceProvider.d.ts.map +1 -1
  108. package/dist/esm/services/providers/openrouter/OpenRouterChatServiceProvider.js +12 -1
  109. package/dist/esm/services/providers/openrouter/OpenRouterChatServiceProvider.js.map +1 -1
  110. package/dist/esm/services/providers/xai/XAIChatServiceProvider.d.ts.map +1 -1
  111. package/dist/esm/services/providers/xai/XAIChatServiceProvider.js +2 -1
  112. package/dist/esm/services/providers/xai/XAIChatServiceProvider.js.map +1 -1
  113. package/dist/umd/aituber-onair-chat.js +457 -35
  114. package/dist/umd/aituber-onair-chat.min.js +8 -8
  115. package/package.json +1 -1
package/README.ja.md CHANGED
@@ -254,6 +254,19 @@ 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
+
259
+ `gpt-6-sol`(`MODEL_GPT_6_SOL`)も画像入力とストリーミングに対応します。
260
+ 既定ではResponses APIを使い、`none`、`low`、`medium`、`high`、`xhigh`、`max`を
261
+ 指定できます。パッケージ既定は`medium`です。Chat Completionsを選ぶ場合は
262
+ `reasoning_effort: 'none'`を指定してください。
263
+
264
+ `gpt-6-luna`(`MODEL_GPT_6_LUNA`)は画像入力、ストリーミング、関数呼び出しに
265
+ 対応します。既定ではResponses APIを使い、`none`、`low`、`medium`、`high`、
266
+ `xhigh`、`max`を指定できます。応答速度を優先し、パッケージ既定は`low`です。
267
+ Chat Completionsで関数呼び出しを使う場合は`reasoning_effort: 'none'`を
268
+ 指定してください。[Model API reference](https://developers.openai.com/api/docs/models/gpt-6-luna).
269
+
257
270
  ```typescript
258
271
  const openaiService = ChatServiceFactory.createChatService('openai', {
259
272
  apiKey: process.env.OPENAI_API_KEY,
@@ -568,6 +581,8 @@ CI/ローカルで再現性を高める場合は
568
581
 
569
582
  #### Claude (Anthropic)
570
583
 
584
+ `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).
585
+
571
586
  ```typescript
572
587
  const claudeService = ChatServiceFactory.createChatService('claude', {
573
588
  apiKey: process.env.ANTHROPIC_API_KEY,
@@ -576,8 +591,10 @@ const claudeService = ChatServiceFactory.createChatService('claude', {
576
591
  });
577
592
  ```
578
593
 
579
- `claude-opus-5` は高性能用途向けの明示的な選択肢として利用でき、パッケージの
594
+ `claude-opus-5` と `claude-opus-5-5` は高性能用途向けの明示的な選択肢として利用でき、パッケージの
580
595
  既定値にはしていません。Claude Opus 5 は adaptive thinking が既定で有効です。
596
+ Opus 5.5 は画像入力に対応します。今回参照した資料ではモデル固有のeffort値を
597
+ 確認できなかったため、effortは指定せずAPI側の既定動作を使います。
581
598
  対応するClaudeモデルでは `reasoning_effort` を指定でき、Anthropic APIの
582
599
  `output_config.effort` に変換されます。省略時のClaude API既定値は `high` です。
583
600
 
@@ -631,6 +648,24 @@ hidden thinking が使い切るリスクを抑えます。Gemini 2.5 は
631
648
 
632
649
  #### OpenRouter
633
650
 
651
+ 次のモデルは既定を変更せず、OpenRouterのChat Completions経由で明示選択できます。Mercury 2.5はテキスト専用、それ以外は画像入力にも対応します。ファイル・音声・動画入力の対応を意味するものではありません。
652
+
653
+ | Model ID | 推論レベル(package既定) |
654
+ | --- | --- |
655
+ | `openai/gpt-6-astra` | max, xhigh, high, medium, low (medium) |
656
+ | `openai/gpt-6-astra-pro` | max, xhigh, high, medium, low (medium) |
657
+ | `anthropic/claude-fable-5.1` | max, xhigh, high, medium, low (high) |
658
+ | `deepseek/deepseek-v4.1-flash` | max, high, low, none (none) |
659
+ | `google/gemini-3.8-flash` | high, medium, low (medium) |
660
+ | `inclusionai/ling-3.0-flash-vl:free` | No effort selector (provider default) |
661
+ | `inception/mercury-2.5` | high, medium, low, none (none) |
662
+ | `nex-agi/nex-n2.5-mini:free` | high, medium, none (none) |
663
+ | `nex-agi/nex-n2.5-pro:free` | high, medium, none (none) |
664
+ | `qwen/qwen3.8-max-0902` | xhigh, high, medium, low, minimal (xhigh) |
665
+ | `meta/muse-spark-1.3` | max, xhigh, high, medium, low, minimal (medium) |
666
+
667
+ 常時推論モデルでは`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).
668
+
634
669
  ```typescript
635
670
  const openRouterService = ChatServiceFactory.createChatService('openrouter', {
636
671
  apiKey: process.env.OPENROUTER_API_KEY,
@@ -747,9 +782,9 @@ const xaiService = ChatServiceFactory.createChatService('xai', {
747
782
 
748
783
  注意:
749
784
  - xAIはOpenAI互換のChat Completionsを利用します。
750
- - 対応モデル: `grok-4.6`, `grok-4.5`, `grok-4.3`, `grok-4.20-0309-reasoning`, `grok-4.20-0309-non-reasoning`
785
+ - 対応モデル: `grok-4.7`, `grok-4.6`, `grok-4.5`, `grok-4.3`, `grok-4.20-0309-reasoning`, `grok-4.20-0309-non-reasoning`
751
786
  - packageのデフォルトは`reasoning_effort: 'none'`の`grok-4.3`です。廃止済みGrok 4.1 Fastの定数はソース互換のためexportを残しますが、対応一覧には表示しません。
752
- - `reasoning_effort` は対応モデルにのみ送信されます。`grok-4.6` は `low`, `medium`, `high`, `xhigh`、`grok-4.5` は `low`, `medium`, `high` に対応し、いずれもチャット用途向けにデフォルトは `low` です。`grok-4.3` は `none`, `low`, `medium`, `high` に対応し、デフォルトは `none` です。
787
+ - `reasoning_effort` は対応モデルにのみ送信されます。Grok 4.7と4.6は `low`, `medium`, `high`, `xhigh`、Grok 4.5は `low`, `medium`, `high` に対応します。応答を速めるため、この3モデルのパッケージ既定値は `low` です。`grok-4.3` は `none`, `low`, `medium`, `high` に対応し、デフォルトは `none` です。
753
788
  - 対応 xAI モデルではビジョンとツール・関数呼び出しを利用できます。Grok 4.6 も React basic サンプルで画像チャットを直接検証できるようにビジョン対応として有効化しています。
754
789
 
755
790
  #### Kimi(Moonshot)
@@ -791,6 +826,8 @@ const kimiService = ChatServiceFactory.createChatService('kimi', {
791
826
 
792
827
  #### DeepSeek
793
828
 
829
+ `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/).
830
+
794
831
  ```typescript
795
832
  const deepSeekService = ChatServiceFactory.createChatService('deepseek', {
796
833
  apiKey: process.env.DEEPSEEK_API_KEY,
@@ -885,6 +922,7 @@ const plamoService = ChatServiceFactory.createChatService('plamo', {
885
922
  ```typescript
886
923
  const geminiNanoService = ChatServiceFactory.createChatService('gemini-nano', {
887
924
  responseLength: 'short',
925
+ sessionMode: 'persistent',
888
926
  initialPrompts: [
889
927
  {
890
928
  role: 'system',
@@ -915,7 +953,13 @@ const geminiNanoService = ChatServiceFactory.createChatService('gemini-nano', {
915
953
  Prompt APIは標準で有効なため、Chromeフラグの設定は不要です。
916
954
  Chrome拡張ではChrome 138以降から利用できます。
917
955
  - モデルはすべてデバイス上で実行され、推論時にネットワーク通信は発生しません。
918
- - 非ストリーミングのみ — レスポンスは完全なテキストとして一括返却されます。
956
+ - Chromeの `promptStreaming()` が利用できる場合はストリーミングし、利用できない場合は
957
+ `prompt()` にフォールバックします。完了時には常に完全なレスポンスを返します。
958
+ - `sessionMode`のデフォルトは`'stateless'`です。`'persistent'`にするとターン間で
959
+ オンデバイスセッションを再利用できます。永続セッションは生存中メモリを保持するため、
960
+ 不要になったら`dispose()`を呼び出してください。
961
+ - persistentモードでは、古い履歴を末尾の連続した範囲に絞っても再利用できます。
962
+ 履歴を編集または空にするとliveセッションを再構築します。
919
963
  - ビジョン(画像入力)は非対応です。
920
964
  - EN/JAの言語選択とフロントエンドだけでのモデル準備は、
921
965
  [ブラウザ完結Gemini Nanoカスタマーサポート例](./examples/gemini-nano-customer-support-bot/)
@@ -1287,19 +1331,19 @@ vision、JSON mode、reasoning 設定を使うべきかを provider 固有ロジ
1287
1331
 
1288
1332
  現在、以下のAIプロバイダーが組み込まれています:
1289
1333
 
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のモデルをサポート
1334
+ - **OpenAI**: GPT-6 Astra (`gpt-6-astra`)、GPT-6 Sol (`gpt-6-sol`)、GPT-6 Luna (`gpt-6-luna`, 既定で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
1335
  - **OpenAI-Compatible**: OpenAI互換 endpoint 経由で任意のローカル/セルフホスト model ID を利用できます。vision 対応可否は endpoint ごとに差があるため、原則 `unknown` 扱いです
1292
1336
  - **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も含みます
1337
+ - **Claude**: Claude Opus 5.5 (`claude-opus-5-5`) と 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として保持します
1338
+ - **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
1339
  - **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
- - **xAI**: Grok 4.6、Grok 4.5、Grok 4.3、Grok 4.20 Reasoning/Non-Reasoningをvision対応でサポート。低遅延のデフォルトは`reasoning_effort: 'none'`のGrok 4.3です
1340
+ - **xAI**: Grok 4.7、Grok 4.6、Grok 4.5、Grok 4.3、Grok 4.20 Reasoning/Non-Reasoningをvision対応でサポート。Grok 4.7/4.6/4.5のpackage既定は低遅延向けの`reasoning_effort: 'low'`、Grok 4.3は`none`です
1297
1341
  - **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はデフォルト無効です
1342
+ - **DeepSeek**: DeepSeek V4.1 Flash (`deepseek-flash`); DeepSeek V4 Flash、V4 Pro、明示選択用の実験ビジョンモデル`deepseek-v4-flash-vision-exp`をOpenAI互換Chat Completions経由でサポート。低遅延チャット向けにthinkingはデフォルト無効です
1299
1343
  - **Mistral**: Ministral 3系(`ministral-3b-2512`, `ministral-8b-2512`, `ministral-14b-2512`)と現行generalist modelをサポートし、streamingとvisionにも対応。adjustable `reasoning_effort`は対応モデルにだけ送信します
1300
1344
  - **Sakana AI**: Fugu、Fugu Ultra、日本語特化・ビジョン対応のSakana Namazu(`sakana-namazu`)をOpenAI互換Chat Completions経由でサポート。Namazuのthinkingはデフォルト無効です
1301
1345
  - **PLaMo**: PLaMo 3.0 Prime(`plamo-3.0-prime`, デフォルト)をOpenAI互換Chat Completions経由でサポートし、廃止予定の2.2定数は互換用にexportを残します
1302
- - **Gemini Nano**: Chromeブラウザ内蔵AI(LanguageModel API)。デバイス上で動作し、APIキー不要。Webページでは対応するデスクトップ端末上のChrome 148以降が必要で、Chromeフラグの設定は不要。非ストリーミング、ビジョン非対応
1346
+ - **Gemini Nano**: Chromeブラウザ内蔵AI(LanguageModel API)。デバイス上で動作し、APIキー不要。Webページでは対応するデスクトップ端末上のChrome 148以降が必要で、Chromeフラグの設定は不要。`promptStreaming()` が利用できる場合はストリーミングし、ビジョン非対応
1303
1347
 
1304
1348
  ## ライセンス
1305
1349
 
package/README.md CHANGED
@@ -262,6 +262,19 @@ 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
+
267
+ `gpt-6-sol` (`MODEL_GPT_6_SOL`) is also available with image input and
268
+ streaming. It uses Responses by default and supports `none`, `low`, `medium`,
269
+ `high`, `xhigh`, and `max` reasoning effort. The package default is `medium`;
270
+ Chat Completions can be selected explicitly when `reasoning_effort` is `none`.
271
+
272
+ `gpt-6-luna` (`MODEL_GPT_6_LUNA`) supports image input, streaming, and
273
+ function calling. It uses Responses by default and supports `none`, `low`,
274
+ `medium`, `high`, `xhigh`, and `max`; the package defaults to `low` for
275
+ responsive chat. Chat Completions function calling requires
276
+ `reasoning_effort: 'none'`. [Model API reference](https://developers.openai.com/api/docs/models/gpt-6-luna).
277
+
265
278
  ```typescript
266
279
  const openaiService = ChatServiceFactory.createChatService('openai', {
267
280
  apiKey: process.env.OPENAI_API_KEY,
@@ -582,6 +595,8 @@ For CI/local deterministic runs, pair it with `examples/mock-openai-server`.
582
595
 
583
596
  #### Claude (Anthropic)
584
597
 
598
+ `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).
599
+
585
600
  ```typescript
586
601
  const claudeService = ChatServiceFactory.createChatService('claude', {
587
602
  apiKey: process.env.ANTHROPIC_API_KEY,
@@ -590,8 +605,11 @@ const claudeService = ChatServiceFactory.createChatService('claude', {
590
605
  });
591
606
  ```
592
607
 
593
- `claude-opus-5` is available as an explicit high-capability option and is not
594
- the package default. Claude Opus 5 has adaptive thinking enabled by default.
608
+ `claude-opus-5` and `claude-opus-5-5` are available as explicit high-capability
609
+ options and are not the package default. Opus 5.5 supports image input; the
610
+ package leaves its reasoning effort unspecified because model-specific effort
611
+ values are not documented in the sources used for this integration. Claude
612
+ Opus 5 has adaptive thinking enabled by default.
595
613
  Supported Claude models accept `reasoning_effort`, which maps to Anthropic's
596
614
  `output_config.effort`. The Claude API defaults to `high` when it is omitted:
597
615
 
@@ -650,6 +668,24 @@ those models.
650
668
 
651
669
  #### OpenRouter
652
670
 
671
+ 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.
672
+
673
+ | Model ID | Reasoning efforts (package default) |
674
+ | --- | --- |
675
+ | `openai/gpt-6-astra` | max, xhigh, high, medium, low (medium) |
676
+ | `openai/gpt-6-astra-pro` | max, xhigh, high, medium, low (medium) |
677
+ | `anthropic/claude-fable-5.1` | max, xhigh, high, medium, low (high) |
678
+ | `deepseek/deepseek-v4.1-flash` | max, high, low, none (none) |
679
+ | `google/gemini-3.8-flash` | high, medium, low (medium) |
680
+ | `inclusionai/ling-3.0-flash-vl:free` | No effort selector (provider default) |
681
+ | `inception/mercury-2.5` | high, medium, low, none (none) |
682
+ | `nex-agi/nex-n2.5-mini:free` | high, medium, none (none) |
683
+ | `nex-agi/nex-n2.5-pro:free` | high, medium, none (none) |
684
+ | `qwen/qwen3.8-max-0902` | xhigh, high, medium, low, minimal (xhigh) |
685
+ | `meta/muse-spark-1.3` | max, xhigh, high, medium, low, minimal (medium) |
686
+
687
+ 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).
688
+
653
689
  ```typescript
654
690
  const openRouterService = ChatServiceFactory.createChatService('openrouter', {
655
691
  apiKey: process.env.OPENROUTER_API_KEY,
@@ -765,9 +801,9 @@ const xaiService = ChatServiceFactory.createChatService('xai', {
765
801
 
766
802
  Notes:
767
803
  - xAI uses OpenAI-compatible Chat Completions.
768
- - Supported models: `grok-4.6`, `grok-4.5`, `grok-4.3`, `grok-4.20-0309-reasoning`, `grok-4.20-0309-non-reasoning`.
804
+ - Supported models: `grok-4.7`, `grok-4.6`, `grok-4.5`, `grok-4.3`, `grok-4.20-0309-reasoning`, `grok-4.20-0309-non-reasoning`.
769
805
  - `grok-4.3` is the package default with `reasoning_effort: 'none'`. Retired Grok 4.1 Fast constants remain exported for source compatibility but are no longer advertised.
770
- - `reasoning_effort` is sent only for models that support it. `grok-4.6` supports `low`, `medium`, `high`, and `xhigh`; `grok-4.5` supports `low`, `medium`, and `high`. Both default to `low` for chat-style responses. `grok-4.3` supports `none`, `low`, `medium`, and `high` and defaults to `none`.
806
+ - `reasoning_effort` is sent only for models that support it. Grok 4.7 and 4.6 support `low`, `medium`, `high`, and `xhigh`; Grok 4.5 supports `low`, `medium`, and `high`. The package defaults all three to `low` for faster chat responses. `grok-4.3` supports `none`, `low`, `medium`, and `high` and defaults to `none`.
771
807
  - Supported xAI models can be used with vision and tool/function calling. Grok 4.6 vision support is enabled so image chat can be validated directly in the React basic sample.
772
808
 
773
809
  #### Kimi (Moonshot)
@@ -809,6 +845,8 @@ Notes for self-hosted:
809
845
 
810
846
  #### DeepSeek
811
847
 
848
+ `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/).
849
+
812
850
  ```typescript
813
851
  const deepSeekService = ChatServiceFactory.createChatService('deepseek', {
814
852
  apiKey: process.env.DEEPSEEK_API_KEY,
@@ -903,6 +941,7 @@ Notes:
903
941
  ```typescript
904
942
  const geminiNanoService = ChatServiceFactory.createChatService('gemini-nano', {
905
943
  responseLength: 'short',
944
+ sessionMode: 'persistent',
906
945
  initialPrompts: [
907
946
  {
908
947
  role: 'system',
@@ -934,7 +973,13 @@ Notes:
934
973
  API is enabled by default, so no Chrome flags are required. Chrome extensions
935
974
  have supported the Prompt API since Chrome 138.
936
975
  - The model runs entirely on-device; no network requests are made for inference.
937
- - Non-streaming only — responses are returned as a single complete text.
976
+ - Streaming uses Chrome's `promptStreaming()` when available and falls back to
977
+ `prompt()`; the service always completes with the full response.
978
+ - `sessionMode` defaults to `'stateless'`. Use `'persistent'` to reuse an
979
+ on-device session across turns; call `dispose()` when the service is no
980
+ longer needed because the persistent session retains memory while alive.
981
+ - In persistent mode, trimming old history to a suffix preserves reuse; editing
982
+ or clearing the history rebuilds the live session.
938
983
  - Vision is not supported.
939
984
  - See the
940
985
  [browser-only Gemini Nano customer-support example](./examples/gemini-nano-customer-support-bot/)
@@ -1311,19 +1356,19 @@ without hard-coding provider-specific rules.
1311
1356
 
1312
1357
  Currently, the following AI providers are built-in:
1313
1358
 
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
1359
+ - **OpenAI**: GPT-6 Astra (`gpt-6-astra`), GPT-6 Sol (`gpt-6-sol`), and GPT-6 Luna (`gpt-6-luna`, Responses API by default); 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
1360
  - **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
1361
  - **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.
1362
+ - **Claude**: Claude Opus 5.5 (`claude-opus-5-5`) and 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.
1363
+ - **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
1364
  - **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
- - **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'`.
1365
+ - **xAI**: Supports Grok 4.7, Grok 4.6, Grok 4.5, Grok 4.3, and Grok 4.20 Reasoning/Non-Reasoning with vision. Grok 4.7/4.6/4.5 use package-default `reasoning_effort: 'low'`; Grok 4.3 defaults to `none`.
1321
1366
  - **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.
1367
+ - **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
1368
  - **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
1369
  - **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
1370
  - **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.
1326
- - **Gemini Nano**: Chrome built-in AI (LanguageModel API). Runs on-device with no API key required. Web pages require Chrome 148+ on a supported desktop device; no Chrome flags are required. Non-streaming, no vision support.
1371
+ - **Gemini Nano**: Chrome built-in AI (LanguageModel API). Runs on-device with no API key required. Web pages require Chrome 148+ on a supported desktop device; no Chrome flags are required. Streams when Chrome exposes `promptStreaming()`; no vision support.
1327
1372
 
1328
1373
  ## License
1329
1374
 
@@ -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";
@@ -15,6 +16,7 @@ export declare const MODEL_CLAUDE_4_8_OPUS = "claude-opus-4-8";
15
16
  export declare const MODEL_CLAUDE_5_FABLE = "claude-fable-5";
16
17
  export declare const MODEL_CLAUDE_5_SONNET = "claude-sonnet-5";
17
18
  export declare const MODEL_CLAUDE_5_OPUS = "claude-opus-5";
19
+ export declare const MODEL_CLAUDE_5_5_OPUS = "claude-opus-5-5";
18
20
  export declare const CLAUDE_DEPRECATED_MODELS: string[];
19
21
  export type ClaudeReasoningEffort = 'low' | 'medium' | 'high' | 'xhigh' | 'max';
20
22
  export declare const CLAUDE_VISION_SUPPORTED_MODELS: string[];
@@ -1 +1 @@
1
- {"version":3,"file":"claude.d.ts","sourceRoot":"","sources":["../../../src/constants/claude.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,mBAAmB,0CAA0C,CAAC;AAG3E,eAAO,MAAM,oBAAoB,4BAA4B,CAAC;AAC9D,eAAO,MAAM,sBAAsB,8BAA8B,CAAC;AAClE,eAAO,MAAM,uBAAuB,+BAA+B,CAAC;AACpE,eAAO,MAAM,uBAAuB,+BAA+B,CAAC;AACpE,eAAO,MAAM,qBAAqB,6BAA6B,CAAC;AAChE,eAAO,MAAM,mBAAmB,2BAA2B,CAAC;AAC5D,eAAO,MAAM,uBAAuB,+BAA+B,CAAC;AACpE,eAAO,MAAM,sBAAsB,8BA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BAAqB,6BAA6B,CAAC;AAChE,eAAO,MAAM,mBAAmB,2BAA2B,CAAC;AAC5D,eAAO,MAAM,uBAAuB,+BAA+B,CAAC;AACpE,eAAO,MAAM,sBAAsB,8BAA8B,CAAC;AAClE,eAAO,MAAM,qBAAqB,6BAA6B,CAAC;AAChE,eAAO,MAAM,uBAAuB,sBAAsB,CAAC;AAC3D,eAAO,MAAM,qBAAqB,oBAAoB,CAAC;AACvD,eAAO,MAAM,qBAAqB,oBAAoB,CAAC;AACvD,eAAO,MAAM,qBAAqB,oBAAoB,CAAC;AACvD,eAAO,MAAM,oBAAoB,mBAAmB,CAAC;AACrD,eAAO,MAAM,qBAAqB,oBAAoB,CAAC;AACvD,eAAO,MAAM,mBAAmB,kBAAkB,CAAC;AACnD,eAAO,MAAM,qBAAqB,oBAAoB,CAAC;AAGvD,eAAO,MAAM,wBAAwB,UAOpC,CAAC;AAEF,MAAM,MAAM,qBAAqB,GAAG,KAAK,GAAG,QAAQ,GAAG,MAAM,GAAG,OAAO,GAAG,KAAK,CAAC;AAkChF,eAAO,MAAM,8BAA8B,UAa1C,CAAC;AAEF;;GAEG;AACH,wBAAgB,kCAAkC,CAChD,KAAK,EAAE,MAAM,GACZ,SAAS,qBAAqB,EAAE,CAElC;AAED,wBAAgB,4BAA4B,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAEnE;AAED;;GAEG;AACH,wBAAgB,+BAA+B,CAC7C,KAAK,EAAE,MAAM,GACZ,qBAAqB,GAAG,SAAS,CAEnC;AAED;;GAEG;AACH,wBAAgB,8BAA8B,CAC5C,KAAK,EAAE,MAAM,EACb,MAAM,CAAC,EAAE,qBAAqB,GAC7B,qBAAqB,GAAG,SAAS,CAenC"}
@@ -1,11 +1,12 @@
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_5_OPUS = 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';
@@ -23,6 +24,7 @@ exports.MODEL_CLAUDE_4_8_OPUS = 'claude-opus-4-8';
23
24
  exports.MODEL_CLAUDE_5_FABLE = 'claude-fable-5';
24
25
  exports.MODEL_CLAUDE_5_SONNET = 'claude-sonnet-5';
25
26
  exports.MODEL_CLAUDE_5_OPUS = 'claude-opus-5';
27
+ exports.MODEL_CLAUDE_5_5_OPUS = 'claude-opus-5-5';
26
28
  // Retired model ids remain exported so existing imports continue to compile.
27
29
  exports.CLAUDE_DEPRECATED_MODELS = [
28
30
  exports.MODEL_CLAUDE_3_HAIKU,
@@ -52,11 +54,13 @@ const CLAUDE_REASONING_EFFORTS_BY_MODEL = {
52
54
  [exports.MODEL_CLAUDE_4_6_OPUS]: CLAUDE_MAX_REASONING_EFFORTS,
53
55
  [exports.MODEL_CLAUDE_4_7_OPUS]: CLAUDE_XHIGH_REASONING_EFFORTS,
54
56
  [exports.MODEL_CLAUDE_4_8_OPUS]: CLAUDE_XHIGH_REASONING_EFFORTS,
57
+ [exports.MODEL_CLAUDE_5_1_FABLE]: CLAUDE_XHIGH_REASONING_EFFORTS,
55
58
  [exports.MODEL_CLAUDE_5_FABLE]: CLAUDE_XHIGH_REASONING_EFFORTS,
56
59
  [exports.MODEL_CLAUDE_5_SONNET]: CLAUDE_XHIGH_REASONING_EFFORTS,
57
60
  [exports.MODEL_CLAUDE_5_OPUS]: CLAUDE_XHIGH_REASONING_EFFORTS,
58
61
  };
59
62
  exports.CLAUDE_VISION_SUPPORTED_MODELS = [
63
+ exports.MODEL_CLAUDE_5_1_FABLE,
60
64
  exports.MODEL_CLAUDE_4_5_SONNET,
61
65
  exports.MODEL_CLAUDE_4_5_HAIKU,
62
66
  exports.MODEL_CLAUDE_4_5_OPUS,
@@ -67,6 +71,7 @@ exports.CLAUDE_VISION_SUPPORTED_MODELS = [
67
71
  exports.MODEL_CLAUDE_5_FABLE,
68
72
  exports.MODEL_CLAUDE_5_SONNET,
69
73
  exports.MODEL_CLAUDE_5_OPUS,
74
+ exports.MODEL_CLAUDE_5_5_OPUS,
70
75
  ];
71
76
  /**
72
77
  * Return the effort values supported by a Claude model.
@@ -1 +1 @@
1
- {"version":3,"file":"claude.js","sourceRoot":"","sources":["../../../src/constants/claude.ts"],"names":[],"mappings":";;;AA+EA,gFAIC;AAED,oEAEC;AAKD,0EAIC;AAKD,wEAkBC;AAvHY,QAAA,mBAAmB,GAAG,uCAAuC,CAAC;AAE3E,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,4BAA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xD,CAAC;AAED,SAAgB,4BAA4B,CAAC,KAAa;IACxD,OAAO,kCAAkC,CAAC,KAAK,CAAC,CAAC,MAAM,GAAG,CAAC,CAAC;AAC9D,CAAC;AAED;;GAEG;AACH,SAAgB,+BAA+B,CAC7C,KAAa;IAEb,OAAO,4BAA4B,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC;AAClE,CAAC;AAED;;GAEG;AACH,SAAgB,8BAA8B,CAC5C,KAAa,EACb,MAA8B;IAE9B,MAAM,SAAS,GAAG,kCAAkC,CAAC,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,8CAA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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":";;;AA6CA,oFAgBC;AAED,sDAEC;AAED,wEAEC;AAGD,8EAIC;AAED,4EAqBC;AAnGY,QAAA,qBAAqB,GAAG,0BAA0B,CAAC;AACnD,QAAA,sCAAsC,GAAG,GAAG,6BAAqB,mBAAmB,CAAC;AAElG,qBAAqB;AACR,QAAA,uBAAuB,GAAG,mBAAmB,CAAC;AAC9C,QAAA,qBAAqB,GAAG,iBAAiB,CAAC;AAC1C,QAAA,kCAAkC,GAC7C,8BAA8B,CAAC;AAIjC,MAAM,mCAAmC,GAAG;IAC1C,MAAM;IACN,KAAK;IACL,MAAM;IACN,KAAK;CACgD,CAAC;AAExD,MAAM,iCAAiC,GAAG;IACxC,MAAM;IACN,MAAM;IACN,KAAK;CACgD,CAAC;AAExD,gCAAgC;AAChC,uDAAuD;AAC1C,QAAA,mBAAmB,GAAG,eAAe,CAAC;AACnD,gFAAgF;AACnE,QAAA,uBAAuB,GAAG,mBAAmB,CAAC;AAE9C,QAAA,yBAAyB,GAAG;IACvC,+BAAuB;IACvB,6BAAqB;IACrB,0CAAkC;CACnC,CAAC;AAEW,QAAA,gC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AI_RESPONSES_API = "https://api.openai.com/v1/responses";
3
+ export declare const MODEL_GPT_6_ASTRA = "gpt-6-astra";
4
+ export declare const MODEL_GPT_6_SOL = "gpt-6-sol";
5
+ export declare const MODEL_GPT_6_LUNA = "gpt-6-luna";
3
6
  export declare const MODEL_GPT_5_NANO = "gpt-5-nano";
4
7
  export declare const MODEL_GPT_5_MINI = "gpt-5-mini";
5
8
  export declare const MODEL_GPT_5 = "gpt-5";
@@ -30,6 +33,8 @@ export type OpenAIReasoningEffort = 'none' | 'minimal' | 'low' | 'medium' | 'hig
30
33
  * @returns True if the model is a GPT-5 variant
31
34
  */
32
35
  export declare function isGPT5Model(model: string): boolean;
36
+ /** OpenAI models using the reasoning and verbosity request options. */
37
+ export declare function isOpenAIReasoningModel(model: string): boolean;
33
38
  /**
34
39
  * GPT-5.4 Pro currently requires the Responses API endpoint
35
40
  */
@@ -43,9 +48,9 @@ export declare function allowsReasoningXHigh(model: string): boolean;
43
48
  */
44
49
  export declare function allowsReasoningMax(model: string): boolean;
45
50
  /**
46
- * Check if the provided model allows the reasoning_effort 'none' shortcut
47
- * Supported by GPT-5.1, GPT-5.4, GPT-5.5, and GPT-5.6 family models,
48
- * except Pro
51
+ * Check if the provided model allows the reasoning_effort 'none' shortcut.
52
+ * Supported by GPT-6 Sol/Luna and GPT-5.1, GPT-5.4, GPT-5.5, and GPT-5.6
53
+ * family models, except Pro.
49
54
  */
50
55
  export declare function allowsReasoningNone(model: string): boolean;
51
56
  /**
@@ -66,4 +71,6 @@ export declare function allowsReasoningLow(model: string): boolean;
66
71
  * - GPT-5.4 Pro: medium
67
72
  */
68
73
  export declare function getDefaultReasoningEffortForGPT5Model(model: string): 'none' | 'minimal' | 'medium';
74
+ /** Get the default reasoning effort for supported OpenAI reasoning models. */
75
+ export declare function getDefaultReasoningEffortForOpenAIModel(model: string): 'none' | 'minimal' | 'low' | 'medium';
69
76
  //# sourceMappingURL=openai.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"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D;AAED;;;;;;GAMG;AACH,wBAAgB,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,CAQvC"}
@@ -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_LUNA = exports.MODEL_GPT_6_SOL = 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,12 @@ 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';
17
+ exports.MODEL_GPT_6_SOL = 'gpt-6-sol';
18
+ exports.MODEL_GPT_6_LUNA = 'gpt-6-luna';
14
19
  // gpt model
15
20
  exports.MODEL_GPT_5_NANO = 'gpt-5-nano';
16
21
  exports.MODEL_GPT_5_MINI = 'gpt-5-mini';
@@ -37,6 +42,9 @@ exports.MODEL_O1_MINI = 'o1-mini';
37
42
  exports.MODEL_O1 = 'o1';
38
43
  // Vision support for models
39
44
  exports.VISION_SUPPORTED_MODELS = [
45
+ exports.MODEL_GPT_6_ASTRA,
46
+ exports.MODEL_GPT_6_SOL,
47
+ exports.MODEL_GPT_6_LUNA,
40
48
  exports.MODEL_GPT_5_NANO,
41
49
  exports.MODEL_GPT_5_MINI,
42
50
  exports.MODEL_GPT_5,
@@ -82,6 +90,13 @@ exports.GPT_5_MODELS = [
82
90
  function isGPT5Model(model) {
83
91
  return exports.GPT_5_MODELS.includes(model);
84
92
  }
93
+ /** OpenAI models using the reasoning and verbosity request options. */
94
+ function isOpenAIReasoningModel(model) {
95
+ return (model === exports.MODEL_GPT_6_ASTRA ||
96
+ model === exports.MODEL_GPT_6_SOL ||
97
+ model === exports.MODEL_GPT_6_LUNA ||
98
+ isGPT5Model(model));
99
+ }
85
100
  /**
86
101
  * GPT-5.4 Pro currently requires the Responses API endpoint
87
102
  */
@@ -92,7 +107,10 @@ function isResponsesOnlyGPT5Model(model) {
92
107
  * Check if the provided model allows the reasoning_effort 'xhigh' level
93
108
  */
94
109
  function allowsReasoningXHigh(model) {
95
- return (model === exports.MODEL_GPT_5_6 ||
110
+ return (model === exports.MODEL_GPT_6_ASTRA ||
111
+ model === exports.MODEL_GPT_6_SOL ||
112
+ model === exports.MODEL_GPT_6_LUNA ||
113
+ model === exports.MODEL_GPT_5_6 ||
96
114
  model === exports.MODEL_GPT_5_6_SOL ||
97
115
  model === exports.MODEL_GPT_5_6_TERRA ||
98
116
  model === exports.MODEL_GPT_5_6_LUNA ||
@@ -106,18 +124,23 @@ function allowsReasoningXHigh(model) {
106
124
  * Check if the provided model allows the reasoning_effort 'max' level
107
125
  */
108
126
  function allowsReasoningMax(model) {
109
- return (model === exports.MODEL_GPT_5_6 ||
127
+ return (model === exports.MODEL_GPT_6_ASTRA ||
128
+ model === exports.MODEL_GPT_6_SOL ||
129
+ model === exports.MODEL_GPT_6_LUNA ||
130
+ model === exports.MODEL_GPT_5_6 ||
110
131
  model === exports.MODEL_GPT_5_6_SOL ||
111
132
  model === exports.MODEL_GPT_5_6_TERRA ||
112
133
  model === exports.MODEL_GPT_5_6_LUNA);
113
134
  }
114
135
  /**
115
- * Check if the provided model allows the reasoning_effort 'none' shortcut
116
- * Supported by GPT-5.1, GPT-5.4, GPT-5.5, and GPT-5.6 family models,
117
- * except Pro
136
+ * Check if the provided model allows the reasoning_effort 'none' shortcut.
137
+ * Supported by GPT-6 Sol/Luna and GPT-5.1, GPT-5.4, GPT-5.5, and GPT-5.6
138
+ * family models, except Pro.
118
139
  */
119
140
  function allowsReasoningNone(model) {
120
- return (model === exports.MODEL_GPT_5_6 ||
141
+ return (model === exports.MODEL_GPT_6_SOL ||
142
+ model === exports.MODEL_GPT_6_LUNA ||
143
+ model === exports.MODEL_GPT_5_6 ||
121
144
  model === exports.MODEL_GPT_5_6_SOL ||
122
145
  model === exports.MODEL_GPT_5_6_TERRA ||
123
146
  model === exports.MODEL_GPT_5_6_LUNA ||
@@ -159,4 +182,14 @@ function getDefaultReasoningEffortForGPT5Model(model) {
159
182
  }
160
183
  return 'medium';
161
184
  }
185
+ /** Get the default reasoning effort for supported OpenAI reasoning models. */
186
+ function getDefaultReasoningEffortForOpenAIModel(model) {
187
+ return model === exports.MODEL_GPT_6_ASTRA
188
+ ? 'low'
189
+ : model === exports.MODEL_GPT_6_SOL
190
+ ? 'medium'
191
+ : model === exports.MODEL_GPT_6_LUNA
192
+ ? 'low'
193
+ : getDefaultReasoningEffortForGPT5Model(model);
194
+ }
162
195
  //# sourceMappingURL=openai.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"openai.js","sourceRoot":"","sources":["../../../src/constants/openai.ts"],"names":[],"mappings":";;;AAwFA,kCAEC;AAKD,4DAEC;AAKD,oDAYC;AAKD,gDAOC;AAOD,kDAYC;AAMD,wDAMC;AAMD,gDAEC;AASD,sFAUC;AAxLY,QAAA,oCAAoC,GAC/C,4CAA4C,CAAC;AAClC,QAAA,6BAA6B,GACxC,qCAAqC,CAAC;AAExC,YAAY;AACC,QAAA,gBAAgB,GAAG,YAAY,CAAC;AAChC,QAAA,gBAAgB,GAAG,YAAY,CAAC;AA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