@aituber-onair/chat 0.65.0 → 0.67.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 +131 -69
- package/README.md +131 -74
- 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/gemini.d.ts +2 -0
- package/dist/cjs/constants/gemini.d.ts.map +1 -1
- package/dist/cjs/constants/gemini.js +4 -2
- package/dist/cjs/constants/gemini.js.map +1 -1
- package/dist/cjs/constants/kimi.d.ts +10 -1
- package/dist/cjs/constants/kimi.d.ts.map +1 -1
- package/dist/cjs/constants/kimi.js +21 -3
- package/dist/cjs/constants/kimi.js.map +1 -1
- package/dist/cjs/constants/mistral.d.ts +4 -1
- package/dist/cjs/constants/mistral.d.ts.map +1 -1
- package/dist/cjs/constants/mistral.js +11 -4
- package/dist/cjs/constants/mistral.js.map +1 -1
- package/dist/cjs/constants/openai.d.ts +12 -1
- package/dist/cjs/constants/openai.d.ts.map +1 -1
- package/dist/cjs/constants/openai.js +32 -8
- package/dist/cjs/constants/openai.js.map +1 -1
- package/dist/cjs/constants/openrouter.d.ts +12 -0
- package/dist/cjs/constants/openrouter.d.ts.map +1 -1
- package/dist/cjs/constants/openrouter.js +90 -13
- package/dist/cjs/constants/openrouter.js.map +1 -1
- package/dist/cjs/constants/plamo.d.ts +2 -1
- package/dist/cjs/constants/plamo.d.ts.map +1 -1
- package/dist/cjs/constants/plamo.js +7 -3
- package/dist/cjs/constants/plamo.js.map +1 -1
- package/dist/cjs/services/ChatServiceFactory.d.ts.map +1 -1
- package/dist/cjs/services/ChatServiceFactory.js +2 -1
- 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 +0 -1
- package/dist/cjs/services/providers/claude/ClaudeChatServiceProvider.js.map +1 -1
- package/dist/cjs/services/providers/kimi/KimiChatService.d.ts.map +1 -1
- package/dist/cjs/services/providers/kimi/KimiChatService.js +2 -2
- package/dist/cjs/services/providers/kimi/KimiChatService.js.map +1 -1
- package/dist/cjs/services/providers/kimi/KimiChatServiceProvider.d.ts.map +1 -1
- package/dist/cjs/services/providers/kimi/KimiChatServiceProvider.js +5 -11
- package/dist/cjs/services/providers/kimi/KimiChatServiceProvider.js.map +1 -1
- package/dist/cjs/services/providers/mistral/MistralChatServiceProvider.js +1 -1
- package/dist/cjs/services/providers/mistral/MistralChatServiceProvider.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 -3
- 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 +6 -12
- 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 +6 -2
- 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 +6 -2
- package/dist/cjs/services/providers/openrouter/OpenRouterChatService.js.map +1 -1
- package/dist/cjs/services/providers/openrouter/OpenRouterChatServiceProvider.d.ts +2 -2
- package/dist/cjs/services/providers/openrouter/OpenRouterChatServiceProvider.d.ts.map +1 -1
- package/dist/cjs/services/providers/openrouter/OpenRouterChatServiceProvider.js +15 -16
- package/dist/cjs/services/providers/openrouter/OpenRouterChatServiceProvider.js.map +1 -1
- package/dist/cjs/services/providers/plamo/PlamoChatService.d.ts.map +1 -1
- package/dist/cjs/services/providers/plamo/PlamoChatService.js +1 -1
- package/dist/cjs/services/providers/plamo/PlamoChatService.js.map +1 -1
- package/dist/cjs/services/providers/plamo/PlamoChatServiceProvider.js +1 -1
- package/dist/cjs/services/providers/plamo/PlamoChatServiceProvider.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 +4 -1
- package/dist/esm/constants/claude.js.map +1 -1
- package/dist/esm/constants/gemini.d.ts +2 -0
- package/dist/esm/constants/gemini.d.ts.map +1 -1
- package/dist/esm/constants/gemini.js +4 -2
- package/dist/esm/constants/gemini.js.map +1 -1
- package/dist/esm/constants/kimi.d.ts +10 -1
- package/dist/esm/constants/kimi.d.ts.map +1 -1
- package/dist/esm/constants/kimi.js +20 -2
- package/dist/esm/constants/kimi.js.map +1 -1
- package/dist/esm/constants/mistral.d.ts +4 -1
- package/dist/esm/constants/mistral.d.ts.map +1 -1
- package/dist/esm/constants/mistral.js +10 -3
- package/dist/esm/constants/mistral.js.map +1 -1
- package/dist/esm/constants/openai.d.ts +12 -1
- package/dist/esm/constants/openai.d.ts.map +1 -1
- package/dist/esm/constants/openai.js +31 -7
- package/dist/esm/constants/openai.js.map +1 -1
- package/dist/esm/constants/openrouter.d.ts +12 -0
- package/dist/esm/constants/openrouter.d.ts.map +1 -1
- package/dist/esm/constants/openrouter.js +87 -11
- package/dist/esm/constants/openrouter.js.map +1 -1
- package/dist/esm/constants/plamo.d.ts +2 -1
- package/dist/esm/constants/plamo.d.ts.map +1 -1
- package/dist/esm/constants/plamo.js +6 -2
- package/dist/esm/constants/plamo.js.map +1 -1
- package/dist/esm/services/ChatServiceFactory.d.ts.map +1 -1
- package/dist/esm/services/ChatServiceFactory.js +3 -2
- 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 +1 -2
- package/dist/esm/services/providers/claude/ClaudeChatServiceProvider.js.map +1 -1
- package/dist/esm/services/providers/kimi/KimiChatService.d.ts.map +1 -1
- package/dist/esm/services/providers/kimi/KimiChatService.js +3 -3
- package/dist/esm/services/providers/kimi/KimiChatService.js.map +1 -1
- package/dist/esm/services/providers/kimi/KimiChatServiceProvider.d.ts.map +1 -1
- package/dist/esm/services/providers/kimi/KimiChatServiceProvider.js +6 -12
- package/dist/esm/services/providers/kimi/KimiChatServiceProvider.js.map +1 -1
- package/dist/esm/services/providers/mistral/MistralChatServiceProvider.js +1 -1
- package/dist/esm/services/providers/mistral/MistralChatServiceProvider.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 -4
- 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 +7 -13
- 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 +7 -3
- 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 +7 -3
- package/dist/esm/services/providers/openrouter/OpenRouterChatService.js.map +1 -1
- package/dist/esm/services/providers/openrouter/OpenRouterChatServiceProvider.d.ts +2 -2
- package/dist/esm/services/providers/openrouter/OpenRouterChatServiceProvider.d.ts.map +1 -1
- package/dist/esm/services/providers/openrouter/OpenRouterChatServiceProvider.js +16 -17
- package/dist/esm/services/providers/openrouter/OpenRouterChatServiceProvider.js.map +1 -1
- package/dist/esm/services/providers/plamo/PlamoChatService.d.ts.map +1 -1
- package/dist/esm/services/providers/plamo/PlamoChatService.js +1 -1
- package/dist/esm/services/providers/plamo/PlamoChatService.js.map +1 -1
- package/dist/esm/services/providers/plamo/PlamoChatServiceProvider.js +1 -1
- package/dist/esm/services/providers/plamo/PlamoChatServiceProvider.js.map +1 -1
- package/dist/umd/aituber-onair-chat.js +201 -80
- package/dist/umd/aituber-onair-chat.min.js +7 -7
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -303,18 +303,26 @@ rather than the API's `medium` default. The provider's default model is unchange
|
|
|
303
303
|
[Model API reference](https://developers.openai.com/api/docs/models/gpt-6.1-sol),
|
|
304
304
|
[API guide](https://developers.openai.com/api/docs/guides/latest-model).
|
|
305
305
|
|
|
306
|
+
Models with image input and streaming whose tools require Responses use Responses by default. `gpt-6.1-terra` (`MODEL_GPT_6_1_TERRA`) is an explicit option in this group. It supports `none`, `low`, `medium`, `high`, `xhigh`, and `max` reasoning effort. The API default is `medium`; the package default is `none`. Tool-free requests may use Chat Completions. Tools and MCP at the standard endpoint always use Responses, while custom endpoints with tools are rejected before sending.
|
|
307
|
+
|
|
308
|
+
This package does not send sampling fields such as `temperature`, `top_p`, or `logprobs`. The OpenRouter variant, `openai/gpt-6.1-terra`, uses Chat Completions with package-default reasoning effort `none`. Provider default models are unchanged.
|
|
309
|
+
|
|
310
|
+
See the [official Terra model specification](https://developers.openai.com/api/docs/models/gpt-6.1-terra), [API parameter migration guide](https://developers.openai.com/api/docs/guides/latest-model#gpt-6-astra-update-api-and-model-parameters), and [OpenRouter model catalog](https://openrouter.ai/api/v1/models).
|
|
311
|
+
|
|
306
312
|
`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).
|
|
307
313
|
|
|
308
314
|
`gpt-6-sol` (`MODEL_GPT_6_SOL`) is also available with image input and
|
|
309
315
|
streaming. It uses Responses by default and supports `none`, `low`, `medium`,
|
|
310
|
-
`high`, `xhigh`, and `max` reasoning effort. The package default is `
|
|
311
|
-
|
|
316
|
+
`high`, `xhigh`, and `max` reasoning effort. The package default is `none`;
|
|
317
|
+
select `gpt5EndpointPreference: 'chat'` to use Chat Completions with this default.
|
|
318
|
+
Explicit reasoning levels above `none` use Responses.
|
|
312
319
|
|
|
313
320
|
`gpt-6-luna` (`MODEL_GPT_6_LUNA`) supports image input, streaming, and
|
|
314
321
|
function calling. It uses Responses by default and supports `none`, `low`,
|
|
315
|
-
`medium`, `high`, `xhigh`, and `max`; the package defaults to `
|
|
316
|
-
responsive chat.
|
|
317
|
-
|
|
322
|
+
`medium`, `high`, `xhigh`, and `max`; the package defaults to `none` for
|
|
323
|
+
responsive chat. Select `gpt5EndpointPreference: 'chat'` to use Chat Completions,
|
|
324
|
+
including function calling, with this default. Explicit reasoning levels above
|
|
325
|
+
`none` use Responses. [Model API reference](https://developers.openai.com/api/docs/models/gpt-6-luna).
|
|
318
326
|
|
|
319
327
|
```typescript
|
|
320
328
|
const openaiService = ChatServiceFactory.createChatService('openai', {
|
|
@@ -613,7 +621,7 @@ time-to-first-token matters more than deep reasoning:
|
|
|
613
621
|
```typescript
|
|
614
622
|
const aituberChatService = ChatServiceFactory.createChatService('openai', {
|
|
615
623
|
apiKey: process.env.OPENAI_API_KEY,
|
|
616
|
-
model: 'gpt-5.
|
|
624
|
+
model: 'gpt-5.6-luna',
|
|
617
625
|
gpt5Preset: 'casual', // resolves to reasoning_effort 'none' on this model
|
|
618
626
|
responseLength: 'veryShort', // or 'short' for slightly longer replies
|
|
619
627
|
});
|
|
@@ -636,11 +644,23 @@ Caveats:
|
|
|
636
644
|
- `gpt-5.4-pro` – Highest-tier GPT-5.4 model. Use with Responses API only.
|
|
637
645
|
- `gpt-5.4` – Previous GPT-5 generation model optimized for stronger coding, instruction following, and long-context agentic work.
|
|
638
646
|
- `gpt-5.4-mini` – Faster GPT-5.4-class small model for coding, tool use, and multimodal workloads.
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
647
|
+
|
|
648
|
+
The provider default is `gpt-5.6-luna`, which OpenAI names as the replacement
|
|
649
|
+
for `gpt-5-nano`. It defaults to `reasoning_effort: 'none'` for responsive chat.
|
|
650
|
+
|
|
651
|
+
Models that OpenAI has deprecated or shut down remain exported for source
|
|
652
|
+
compatibility (`OPENAI_DEPRECATED_MODELS`), but are no longer in the supported
|
|
653
|
+
model list. Requests to shut-down models fail at the OpenAI API.
|
|
654
|
+
|
|
655
|
+
| Model | Status | Replacement |
|
|
656
|
+
| --- | --- | --- |
|
|
657
|
+
| `o1`, `o3-mini` | Shut down on 2026-10-23 | `gpt-5.6-sol` |
|
|
658
|
+
| `gpt-4.1-nano` | Shut down on 2026-10-23 | `gpt-5.6-luna` |
|
|
659
|
+
| `o1-mini` | Shut down in 2025 | `gpt-5.6-sol` |
|
|
660
|
+
| `gpt-5`, `gpt-5-mini`, `gpt-5-nano` | Scheduled shutdown on 2026-12-11 | `gpt-5.6-sol`, `gpt-5.6-terra`, `gpt-5.6-luna` |
|
|
661
|
+
| `gpt-5.1`, `gpt-5.4-nano` | Scheduled shutdown on 2027-04-01 | `gpt-6-sol`, `gpt-6-luna` |
|
|
662
|
+
|
|
663
|
+
See [OpenAI deprecations](https://developers.openai.com/api/docs/deprecations).
|
|
644
664
|
|
|
645
665
|
`gpt-5.5-pro` is not included in the supported model list because OpenAI
|
|
646
666
|
documents it as non-streaming, while this package's standard chat flow expects
|
|
@@ -751,6 +771,11 @@ Claude refusals are terminal completions rather than tool errors. The returned
|
|
|
751
771
|
completion preserves `finish_reason: 'refusal'` and Anthropic `stop_details`
|
|
752
772
|
when supplied, including in streaming `processChat` callbacks.
|
|
753
773
|
|
|
774
|
+
`claude-sonnet-4-5-20250929` is deprecated by Anthropic and retires on
|
|
775
|
+
2026-11-30. It remains exported in `CLAUDE_DEPRECATED_MODELS`, but is no longer
|
|
776
|
+
in the supported model list; use `claude-sonnet-5-5` instead.
|
|
777
|
+
[Model deprecations](https://platform.claude.com/docs/en/about-claude/model-deprecations).
|
|
778
|
+
|
|
754
779
|
#### Google Gemini
|
|
755
780
|
|
|
756
781
|
```typescript
|
|
@@ -765,13 +790,15 @@ const geminiService = ChatServiceFactory.createChatService('gemini', {
|
|
|
765
790
|
`gemini-3.5-flash-lite` is available as the latest stable, low-latency
|
|
766
791
|
Flash-Lite option. `gemini-3.8-flash` is available as the newest explicit stable
|
|
767
792
|
Flash option for low-latency coding, agentic, and multimodal tasks.
|
|
768
|
-
`gemini-3.
|
|
793
|
+
`gemini-3.6-flash` remains available. Google deprecated `gemini-3.7-flash` and
|
|
794
|
+
`gemini-3.5-flash` on 2026-10-08 and routes their requests to
|
|
795
|
+
`gemini-3.8-flash` and `gemini-3.6-flash`, respectively.
|
|
769
796
|
Deprecated
|
|
770
|
-
preview and shutdown-scheduled models such as `gemini-3.
|
|
797
|
+
preview and shutdown-scheduled models such as `gemini-3.7-flash`,
|
|
798
|
+
`gemini-3.5-flash`, `gemini-3.1-flash-lite-preview`,
|
|
771
799
|
`gemini-3-pro-preview`, and `gemini-2.5-flash-lite-preview-06-17` remain usable
|
|
772
800
|
by explicit model string for backward compatibility, but are no longer
|
|
773
801
|
advertised in the standard supported-model list for production use.
|
|
774
|
-
`gemini-3.5-flash` is also available as a stable Flash model.
|
|
775
802
|
|
|
776
803
|
Gemini 3 models accept `reasoning_effort`, which maps to Gemini
|
|
777
804
|
`thinkingConfig.thinkingLevel` while keeping `includeThoughts: false`:
|
|
@@ -790,40 +817,51 @@ those models.
|
|
|
790
817
|
|
|
791
818
|
#### OpenRouter
|
|
792
819
|
|
|
793
|
-
The following explicit options use OpenRouter Chat Completions without changing the provider default. Text-only options include Mercury 2.5, Nemotron 3.5 Lightning, Solar Mini4, Solar Pro 4,
|
|
820
|
+
The following explicit options use OpenRouter Chat Completions without changing the provider default. Text-only options include Mercury 2.5/3, Nemotron 3.5 Lightning, Solar Mini4, Solar Pro 4, and Ling 3.1 Flash; the others support image input. This does not add file, audio, or video input support.
|
|
794
821
|
|
|
795
822
|
| Model ID | Reasoning efforts (package default) |
|
|
796
823
|
| --- | --- |
|
|
797
824
|
| `mistralai/mistral-large-4-0` | `none` (package default), `high` (upstream default); no reasoning token budget |
|
|
798
|
-
| `unbiased/pareto-26.
|
|
825
|
+
| `unbiased/pareto-26.9` | No effort selector (provider default) |
|
|
826
|
+
| `anthropic/claude-haiku-5.5` | none, low, medium, high, xhigh, max (none) |
|
|
827
|
+
| `inception/mercury-3` | none, low, medium, high (none) |
|
|
828
|
+
| `deepseek/deepseek-v4.1-flash-1017` | none, low, high, max (none) |
|
|
829
|
+
| `moonshotai/kimi-k3.1-pro` | none, low, high, max (none) |
|
|
830
|
+
| `minimax/minimax-m3.1-flash` | low, medium, high, xhigh, max (low) |
|
|
831
|
+
| `unbiased/pareto-26.10` | No effort selector or reasoning token budget |
|
|
832
|
+
| `inclusionai/ling-3.0-flash-vl` | No effort selector or reasoning token budget |
|
|
833
|
+
| `nex-agi/nex-n2.5-pro` | none, medium, high (none) |
|
|
799
834
|
| `openai/gpt-6.1-sol` | max, xhigh, high, medium, low (low) |
|
|
835
|
+
| `openai/gpt-6.1-terra` | none, low, medium, high, xhigh, max (none) |
|
|
800
836
|
| `openai/gpt-6-sol` | max, xhigh, high, medium, low, none (none) |
|
|
801
837
|
| `openai/gpt-6-luna` | max, xhigh, high, medium, low, none (none) |
|
|
802
838
|
| `anthropic/claude-sonnet-5.5` | max, xhigh, high, medium, low (low) |
|
|
803
839
|
| `anthropic/claude-opus-5.5` | max, xhigh, high, medium, low (low) |
|
|
804
840
|
| `x-ai/grok-4.7` | xhigh, high, medium, low (low) |
|
|
805
841
|
| `z-ai/glm-5.3-flashx` | max, high, low (low) |
|
|
806
|
-
| `openai/gpt-6-astra` | max, xhigh, high, medium, low (
|
|
807
|
-
| `openai/gpt-6-astra-pro` | max, xhigh, high, medium, low (
|
|
808
|
-
| `anthropic/claude-fable-5.1` | max, xhigh, high, medium, low (
|
|
842
|
+
| `openai/gpt-6-astra` | max, xhigh, high, medium, low (low) |
|
|
843
|
+
| `openai/gpt-6-astra-pro` | max, xhigh, high, medium, low (low) |
|
|
844
|
+
| `anthropic/claude-fable-5.1` | max, xhigh, high, medium, low (low) |
|
|
809
845
|
| `deepseek/deepseek-v4.1-flash` | max, high, low, none (none) |
|
|
810
|
-
| `google/gemini-3.8-flash` | high, medium, low (
|
|
811
|
-
| `inclusionai/ling-3.0-flash-vl:free` | No effort selector (provider default) |
|
|
846
|
+
| `google/gemini-3.8-flash` | high, medium, low (low) |
|
|
812
847
|
| `inception/mercury-2.5` | high, medium, low, none (none) |
|
|
813
|
-
| `
|
|
814
|
-
| `
|
|
815
|
-
| `qwen/qwen3.8-max-0902` | xhigh, high, medium, low, minimal (xhigh) |
|
|
816
|
-
| `meta/muse-spark-1.3` | max, xhigh, high, medium, low, minimal (medium) |
|
|
848
|
+
| `qwen/qwen3.8-max-0902` | xhigh, high, medium, low, minimal (minimal) |
|
|
849
|
+
| `meta/muse-spark-1.3` | max, xhigh, high, medium, low, minimal (minimal) |
|
|
817
850
|
| `inclusionai/ling-3.1-flash` | No effort selector (provider default) |
|
|
818
851
|
| `upstage/solar-pro4` | none, minimal, low, medium, high, xhigh, max (none) |
|
|
819
852
|
| `upstage/solar-mini4` | none, minimal, low, medium, high, xhigh, max (none) |
|
|
820
853
|
| `xiaomi/mimo-v2.6-flash` | No effort selector (provider default) |
|
|
821
|
-
| `apodex/apodex-1.1-mini:free` | No effort selector (provider default) |
|
|
822
854
|
| `nvidia/nemotron-3.5-lightning` | No effort selector (provider default) |
|
|
823
855
|
| `qwen/qwen3.8-27b` | No effort selector (provider default) |
|
|
824
856
|
| `qwen/qwen3.8-omni-flash` | No effort selector (provider default) |
|
|
857
|
+
| `google/gemma-4-31b-it:free` | No effort selector (provider default) |
|
|
858
|
+
| `nvidia/nemotron-3.5-super-vl:free` | No effort selector (provider default) |
|
|
859
|
+
|
|
860
|
+
The additional explicit options in the table support tools and streaming. Mercury 3 is text-only; the other additions accept images. MiniMax M3.1 Flash requires reasoning and normalizes unsupported settings to `low`. Pareto 26.10 sends no reasoning parameters. Ling 3.0 Flash VL supports reasoning visibility without an effort selector or token budget. Ling and Nex Pro use paid IDs.
|
|
825
861
|
|
|
826
|
-
|
|
862
|
+
These capabilities follow the [OpenRouter model catalog](https://openrouter.ai/api/v1/models) and [Chat Completions schema](https://openrouter.ai/docs/api-reference/overview).
|
|
863
|
+
|
|
864
|
+
For models without documented effort levels or reasoning token budgets, those controls are omitted. Current explicit options in this group are `nvidia/nemotron-3.5-lightning`, `qwen/qwen3.8-27b`, `qwen/qwen3.8-omni-flash`, `xiaomi/mimo-v2.6-flash`, `inclusionai/ling-3.1-flash`, `google/gemma-4-31b-it:free`, and `nvidia/nemotron-3.5-super-vl:free`. Existing `reasoning_effort` and `reasoningMaxTokens` settings are not sent for these models; `includeReasoning` still controls whether reasoning output is included. See the [reasoning configuration documentation](https://openrouter.ai/docs/guides/best-practices/reasoning-tokens).
|
|
827
865
|
|
|
828
866
|
Solar Pro 4 (`upstage/solar-pro4`) is an explicit text-only option via
|
|
829
867
|
`POST https://openrouter.ai/api/v1/chat/completions`. Select **OpenRouter → Solar Pro 4**
|
|
@@ -842,13 +880,28 @@ Solar Mini4 is an explicit text-chat option. Reasoning defaults to `none` for
|
|
|
842
880
|
responsive replies; supported efforts, including `minimal`, are sent unchanged.
|
|
843
881
|
Its reasoning token budget is omitted. MiMo V2.6 Flash supports text and image
|
|
844
882
|
input here; audio and video inputs are outside this package's supported surface.
|
|
845
|
-
|
|
846
|
-
MiMo and Apodex use provider-default reasoning without an effort or budget field;
|
|
883
|
+
MiMo uses provider-default reasoning without an effort or budget field;
|
|
847
884
|
`includeReasoning` controls whether the upstream response includes reasoning; it
|
|
848
885
|
does not disable reasoning computation or add reasoning display to this package.
|
|
849
|
-
See [Solar Mini4](https://openrouter.ai/upstage/solar-mini4)
|
|
850
|
-
[MiMo V2.6 Flash](https://openrouter.ai/xiaomi/mimo-v2.6-flash)
|
|
851
|
-
|
|
886
|
+
See [Solar Mini4](https://openrouter.ai/upstage/solar-mini4) and
|
|
887
|
+
[MiMo V2.6 Flash](https://openrouter.ai/xiaomi/mimo-v2.6-flash).
|
|
888
|
+
|
|
889
|
+
The provider default is `google/gemma-4-31b-it:free`, a free model with text and
|
|
890
|
+
image input and tool calling. It replaced `openai/gpt-oss-20b:free` after that
|
|
891
|
+
free route was removed from the OpenRouter catalog. `getFreeModels()` returns
|
|
892
|
+
`google/gemma-4-31b-it:free` and `nvidia/nemotron-3.5-super-vl:free`. Free
|
|
893
|
+
routes change often, so use `refreshOpenRouterFreeModels` below to find the
|
|
894
|
+
currently available `:free` models.
|
|
895
|
+
|
|
896
|
+
IDs that the OpenRouter catalog no longer returns remain exported in
|
|
897
|
+
`OPENROUTER_DEPRECATED_MODELS`, but are no longer in the supported model list:
|
|
898
|
+
`openai/gpt-oss-20b:free`, `~openai/gpt-latest`, `anthropic/claude-opus-4`,
|
|
899
|
+
`anthropic/claude-sonnet-4`, `google/gemini-2.5-flash-lite-preview-09-2025`,
|
|
900
|
+
`kwaipilot/kat-coder-air-v2.5`, `kwaipilot/kat-coder-pro-v2.5`,
|
|
901
|
+
`unbiased/pareto-26.10-preview`, `apodex/apodex-1.1-mini:free`,
|
|
902
|
+
`inclusionai/ling-3.0-flash-vl:free`, `nex-agi/nex-n2.5-mini:free`, and
|
|
903
|
+
`nex-agi/nex-n2.5-pro:free`. Use `unbiased/pareto-26.9` instead of the Pareto
|
|
904
|
+
preview.
|
|
852
905
|
|
|
853
906
|
Mistral Large 4 (`mistralai/mistral-large-4-0`) is a supported, explicit public
|
|
854
907
|
preview for text and image input, text output, streaming, and tool calls with a
|
|
@@ -874,24 +927,23 @@ live inference; no live generation test was run. See the [model catalog](https:/
|
|
|
874
927
|
[model page](https://openrouter.ai/mistralai/mistral-large-4-0), and
|
|
875
928
|
[Chat Completions reference](https://openrouter.ai/docs/api/reference/overview).
|
|
876
929
|
|
|
877
|
-
Pareto 26.
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
`
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
browser
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
and [Chat Completions reference](https://openrouter.ai/docs/api/api-reference/chat/create-a-chat-completion).
|
|
930
|
+
Pareto 26.9 (`unbiased/pareto-26.9`) is a stable, explicit option for text/image
|
|
931
|
+
input, streaming, and automatic tool selection. Select **OpenRouter → Pareto 26.9**
|
|
932
|
+
and enter your OpenRouter API key, or pass this model ID to `ChatServiceFactory`
|
|
933
|
+
with the `openrouter` provider. Existing defaults and model order are unchanged.
|
|
934
|
+
Requests use Bearer-authenticated JSON at
|
|
935
|
+
`https://openrouter.ai/api/v1/chat/completions`, with `choices[].message` responses
|
|
936
|
+
or SSE `choices[].delta` events. Output token limits are supported. No reasoning
|
|
937
|
+
controls are documented, so effort, token budgets, and `includeReasoning` are
|
|
938
|
+
ignored and no reasoning object is sent. The example hides effort/budget inputs.
|
|
939
|
+
The package supports tools; the example chat UI does not configure tools.
|
|
940
|
+
Structured-output enforcement and file/audio/video input are outside this path.
|
|
941
|
+
The [model page](https://openrouter.ai/unbiased/pareto-26.9) and
|
|
942
|
+
[Chat Completions quickstart](https://openrouter.ai/docs/quickstart) document the
|
|
943
|
+
model and API route. The [browser authentication guide](https://openrouter.ai/docs/guides/overview/auth/oauth)
|
|
944
|
+
documents direct browser requests; no proxy is added. Mock transport and DOM
|
|
945
|
+
integration tests cover package behavior, not live inference or authenticated CORS.
|
|
946
|
+
No rendered-browser verification, live generation, or CORS probe was run.
|
|
895
947
|
|
|
896
948
|
Ling 3.1 Flash (`inclusionai/ling-3.1-flash`) is an explicit text-only option.
|
|
897
949
|
Choose the `openrouter` provider and this model ID with your OpenRouter API key, or
|
|
@@ -951,31 +1003,28 @@ const openRouterService = ChatServiceFactory.createChatService('openrouter', {
|
|
|
951
1003
|
- `deepseek/deepseek-v4-flash`: older unversioned 0423 snapshot; supports `none`, `high`, and `xhigh`.
|
|
952
1004
|
- `deepseek/deepseek-v4-pro-0813`: fixed Pro snapshot; supports `none`, `high`, and `xhigh`.
|
|
953
1005
|
- `deepseek/deepseek-v4-flash-vision-exp`: experimental image-capable model; supports `none`, `low`, `high`, and `max`.
|
|
954
|
-
- Specialized coding models are explicit options rather than defaults. This includes `kwaipilot/kat-coder-air-v2.5` and `kwaipilot/kat-coder-pro-v2.5`, which are text-only.
|
|
955
1006
|
- `moonshotai/kimi-k3` availability depends on upstream capacity; OpenRouter may return 429 responses when capacity is constrained.
|
|
956
1007
|
- `x-ai/grok-4.5` has region-specific availability, including a current EU limitation. `~x-ai/grok-latest` inherits those limits when it resolves to Grok 4.5.
|
|
957
1008
|
- Supported models (curated list):
|
|
958
1009
|
- `openrouter/auto`, `openrouter/auto-beta`
|
|
959
1010
|
- `openrouter/fusion`
|
|
960
|
-
- `
|
|
961
|
-
- `~openai/gpt-
|
|
1011
|
+
- `google/gemma-4-31b-it:free`, `nvidia/nemotron-3.5-super-vl:free`
|
|
1012
|
+
- `~openai/gpt-mini-latest`
|
|
962
1013
|
- `openai/gpt-5.6-sol`, `openai/gpt-5.6-terra`, `openai/gpt-5.6-luna`
|
|
963
1014
|
- `openai/gpt-5.5-pro`, `openai/gpt-5.5`
|
|
964
1015
|
- `openai/gpt-5.1-codex`, `openai/gpt-5-mini`, `openai/gpt-5-nano`
|
|
965
1016
|
- `openai/gpt-4o`, `openai/gpt-4.1-mini`, `openai/gpt-4.1-nano`
|
|
966
1017
|
- `~anthropic/claude-sonnet-latest`, `~anthropic/claude-haiku-latest`
|
|
967
1018
|
- `anthropic/claude-fable-5`, `anthropic/claude-sonnet-5`, `anthropic/claude-opus-5`, `anthropic/claude-opus-4.8`
|
|
968
|
-
- `anthropic/claude-opus-4`, `anthropic/claude-sonnet-4`
|
|
969
1019
|
- `anthropic/claude-haiku-4.5`
|
|
970
1020
|
- `~google/gemini-pro-latest`, `~google/gemini-flash-latest`
|
|
971
1021
|
- `google/gemini-3.7-flash`, `google/gemini-3.6-flash`, `google/gemini-3.5-flash-lite`
|
|
972
|
-
- `google/gemini-2.5-pro`, `google/gemini-2.5-flash
|
|
1022
|
+
- `google/gemini-2.5-pro`, `google/gemini-2.5-flash`
|
|
973
1023
|
- `z-ai/glm-5.3`, `z-ai/glm-5.3-flash`, `z-ai/glm-5.2`, `z-ai/glm-4.7-flash`, `z-ai/glm-4.5-air`
|
|
974
1024
|
- `~x-ai/grok-latest`, `x-ai/grok-4.6`, `x-ai/grok-4.5`
|
|
975
1025
|
- `deepseek/deepseek-v4-flash-0731`, `deepseek/deepseek-v4-flash`, `deepseek/deepseek-v4-pro-0813`, `deepseek/deepseek-v4-flash-vision-exp`
|
|
976
1026
|
- `qwen/qwen3.8-flash`
|
|
977
1027
|
- `~moonshotai/kimi-latest`, `moonshotai/kimi-k3`, `moonshotai/kimi-k2.7-code`, `moonshotai/kimi-k2.6`, `moonshotai/kimi-k2.5`
|
|
978
|
-
- `kwaipilot/kat-coder-air-v2.5`, `kwaipilot/kat-coder-pro-v2.5`
|
|
979
1028
|
|
|
980
1029
|
**Dynamic OpenRouter free model refresh**
|
|
981
1030
|
|
|
@@ -992,7 +1041,7 @@ const result = await refreshOpenRouterFreeModels({
|
|
|
992
1041
|
maxWorking: 10, // default: 10
|
|
993
1042
|
});
|
|
994
1043
|
|
|
995
|
-
console.log(result.working); // e.g. ['
|
|
1044
|
+
console.log(result.working); // e.g. ['google/gemma-4-31b-it:free']
|
|
996
1045
|
console.log(result.failed); // [{ id, reason }, ...]
|
|
997
1046
|
console.log(result.fetchedAt); // Date.now() timestamp
|
|
998
1047
|
```
|
|
@@ -1047,6 +1096,8 @@ Notes:
|
|
|
1047
1096
|
|
|
1048
1097
|
#### Kimi (Moonshot)
|
|
1049
1098
|
|
|
1099
|
+
The [official K3.1 Pro quickstart](https://platform.kimi.ai/docs/guide/kimi-k3-1-pro-quickstart.md) and [model list](https://platform.kimi.ai/docs/models.md) document both K3.1 variants. Both support image input, tools, and streaming.
|
|
1100
|
+
|
|
1050
1101
|
```typescript
|
|
1051
1102
|
const kimiService = ChatServiceFactory.createChatService('kimi', {
|
|
1052
1103
|
apiKey: process.env.MOONSHOT_API_KEY,
|
|
@@ -1060,20 +1111,23 @@ const kimiService = ChatServiceFactory.createChatService('kimi', {
|
|
|
1060
1111
|
|
|
1061
1112
|
Notes:
|
|
1062
1113
|
- Kimi uses OpenAI-compatible Chat Completions.
|
|
1063
|
-
- Supported models: `kimi-k3
|
|
1064
|
-
- `kimi-
|
|
1065
|
-
- Kimi
|
|
1066
|
-
- Kimi
|
|
1067
|
-
-
|
|
1114
|
+
- Supported models: `kimi-k3.1-pro` (default), `kimi-k3.1-pro-highspeed`, `kimi-k3`
|
|
1115
|
+
- The default model is `kimi-k3.1-pro`, the migration target named in Kimi's K2 series retirement notice. It always reasons and cannot disable reasoning, so this package sends `reasoning_effort: 'low'` by default to keep chat replies responsive (Kimi's API default is `max`). `high` and `max` remain explicit options. K3-family models reject the K2.x `thinking` option; set `model: 'kimi-k2.6'` explicitly while your account can still use K2 models.
|
|
1116
|
+
- Kimi stopped offering K2 series models to newly registered users on 2026-10-31 and plans to retire all K2 series models by the end of December 2026. `kimi-k2.6`, `kimi-k2.7-code`, and `kimi-k2.7-code-highspeed` remain exported in `KIMI_DEPRECATED_MODELS`, but are no longer in the supported model list.
|
|
1117
|
+
- `kimi-k2.5` was discontinued by Kimi on 2026-08-31. It remains exported in `KIMI_DEPRECATED_MODELS`, but is no longer in the supported model list.
|
|
1118
|
+
- Kimi K3 and K3.1 Pro (including Highspeed) are explicit reasoning models. It accepts `reasoning_effort: 'low' | 'high' | 'max'`, defaults to `low` in this package (the Kimi API default is `max`), always reasons, and does not accept the K2.x `thinking` option. `none`, `minimal`, and `medium` are not supported.
|
|
1119
|
+
- Kimi K3-family models use `max_completion_tokens` for configured response limits.
|
|
1120
|
+
- For Kimi K3-family multi-turn and tool-call flows, append the returned `completion.assistant_message` to history so `reasoning_content` and `tool_calls` are preserved.
|
|
1068
1121
|
- Kimi K2.7 Code models are coding-oriented and require thinking mode, so they keep `thinking` enabled even when tools are used.
|
|
1069
1122
|
- Explicitly setting `thinking: { type: 'disabled' }` with Kimi K2.7 Code models throws before sending the request.
|
|
1070
|
-
-
|
|
1123
|
+
- K2 models that allow thinking to be disabled default to `thinking: { type: 'disabled' }` for responsive chat, including direct `KimiChatService` construction. Set `thinking: { type: 'enabled' }` to opt in. When tools are enabled, these models still force thinking off.
|
|
1071
1124
|
|
|
1072
1125
|
Self-hosted example:
|
|
1073
1126
|
|
|
1074
1127
|
```typescript
|
|
1075
1128
|
const kimiService = ChatServiceFactory.createChatService('kimi', {
|
|
1076
1129
|
apiKey: process.env.MOONSHOT_API_KEY,
|
|
1130
|
+
model: 'kimi-k2.6', // Explicit legacy model with optional thinking
|
|
1077
1131
|
baseUrl: 'http://localhost:8000/v1',
|
|
1078
1132
|
thinking: { type: 'disabled' }
|
|
1079
1133
|
});
|
|
@@ -1130,11 +1184,13 @@ await mistralService.processChat(
|
|
|
1130
1184
|
Notes:
|
|
1131
1185
|
- Mistral uses Chat Completions at `https://api.mistral.ai/v1/chat/completions`.
|
|
1132
1186
|
- Default model: `mistral-small-latest`, chosen for the sample-friendly balance of low cost, strong general chat quality, vision support, and adjustable reasoning support.
|
|
1133
|
-
- Supported models: `mistral-small-latest`, `ministral-3b-2512`, `ministral-8b-2512`, `ministral-14b-2512`, `mistral-medium-3-5`, `mistral-large-latest`, `mistral-large-
|
|
1187
|
+
- Supported models: `mistral-small-latest`, `ministral-3b-2512`, `ministral-8b-2512`, `ministral-14b-2512`, `mistral-medium-3-5`, `mistral-large-latest`, `mistral-large-4-0`, `mistral-small-2603`, `zai-glm-5-3`.
|
|
1188
|
+
- Mistral Large 4 (`mistral-large-4-0`) is an explicit public preview option with text and image input, documented on Mistral's [model page](https://docs.mistral.ai/models/mistral-large-4-0.md). It accepts only `low`, `medium`, and `high` reasoning levels, which this package does not expose yet, so `reasoning_effort` is not sent for it. Thinking chunks in the response are skipped and only the answer text is returned.
|
|
1189
|
+
- `mistral-large-2512` (Mistral Large 3) was deprecated by Mistral on 2026-10-31 and retires on 2027-04-30. It remains exported in `MISTRAL_DEPRECATED_MODELS` for source compatibility, but is no longer advertised.
|
|
1134
1190
|
- Text-only explicit options include `zai-glm-5-3` (GLM-5.3), with streaming and function calling. Vision and adjustable reasoning are not enabled for this model. Availability depends on your Mistral subscription tier; accounts without access receive HTTP 403 with `tier_not_allowed`.
|
|
1135
1191
|
- Retired `mistral-medium-2508` remains exported only for source compatibility.
|
|
1136
1192
|
- Ministral 3 models support text, vision, streaming, and function calling through the same Chat Completions endpoint.
|
|
1137
|
-
- `reasoning_effort` is supported as `'none' | 'high'` and is only sent for `mistral-small-latest` and `mistral-medium-3-5`, matching Mistral's adjustable reasoning docs. It is omitted for other models.
|
|
1193
|
+
- `reasoning_effort` is supported as `'none' | 'high'` and is only sent for `mistral-small-latest` and `mistral-medium-3-5`, matching Mistral's adjustable reasoning docs. The provider defaults to `none` for responsive chat; `high` is an explicit opt-in. It is omitted for other models, including Mistral Large 4.
|
|
1138
1194
|
|
|
1139
1195
|
Reasoning example:
|
|
1140
1196
|
|
|
@@ -1178,9 +1234,10 @@ const plamoService = ChatServiceFactory.createChatService('plamo', {
|
|
|
1178
1234
|
|
|
1179
1235
|
Notes:
|
|
1180
1236
|
- PLaMo uses OpenAI-compatible Chat Completions at `https://api.platform.preferredai.jp/v1/chat/completions`.
|
|
1181
|
-
- Supported
|
|
1237
|
+
- Supported models: `plamo-3.0-prime` (default), `plamo-3.1-prime`.
|
|
1238
|
+
- PLaMo 3.1 Prime (`plamo-3.1-prime`) uses the same endpoint, context window (262,144 tokens), and `reasoning_effort` values as 3.0 Prime. PLaMo's web search option (`web_search_options`) and the separate Deep Research model on the Responses API are not wired into this provider.
|
|
1182
1239
|
- `plamo-2.2-prime` remains exported for source compatibility, but is no longer advertised because PLaMo documents its 2026-09-30 retirement and replacement by `plamo-3.0-prime`.
|
|
1183
|
-
- `reasoning_effort` can be set to `none` or `medium` for reasoning-capable PLaMo models.
|
|
1240
|
+
- `reasoning_effort` can be set to `none` or `medium` for reasoning-capable PLaMo models. The package explicitly sends `none` by default for responsive chat, including direct `PlamoChatService` construction. Set `medium` to opt into reasoning.
|
|
1184
1241
|
- Vision is not advertised as supported by this provider.
|
|
1185
1242
|
- PLaMo can also be used through `openai-compatible` by manually providing the full endpoint and model.
|
|
1186
1243
|
|
|
@@ -1604,18 +1661,18 @@ without hard-coding provider-specific rules.
|
|
|
1604
1661
|
|
|
1605
1662
|
Currently, the following AI providers are built-in:
|
|
1606
1663
|
|
|
1607
|
-
- **OpenAI**: GPT-6.1 Sol (`gpt-6.1-sol`, tools via Responses), 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
|
|
1664
|
+
- **OpenAI**: GPT-6.1 Terra (`gpt-6.1-terra`, explicit, tools via Responses), GPT-6.1 Sol (`gpt-6.1-sol`, tools via Responses), 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
|
|
1608
1665
|
- **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.
|
|
1609
|
-
- **Gemini**: Supports recommended models like Gemini 3.8 Flash, Gemini 3.
|
|
1610
|
-
- **Claude**: Claude Haiku 5.5 (`claude-haiku-5-5`, explicit), Claude Opus 5.5 (`claude-opus-5-5`), Claude Sonnet 5.5 (`claude-sonnet-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,
|
|
1611
|
-
- **OpenRouter**: Mistral Large 4 (`mistralai/mistral-large-4-0`, explicit public preview),
|
|
1666
|
+
- **Gemini**: Supports recommended models like Gemini 3.8 Flash, Gemini 3.6 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.7 Flash, Gemini 3.5 Flash, Gemini 3.1 Flash-Lite Preview, Gemini 3 Pro Preview, and Gemini 2.5 Flash Lite Preview remain exported for explicit use.
|
|
1667
|
+
- **Claude**: Claude Haiku 5.5 (`claude-haiku-5-5`, explicit), Claude Opus 5.5 (`claude-opus-5-5`), Claude Sonnet 5.5 (`claude-sonnet-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, 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.
|
|
1668
|
+
- **OpenRouter**: Pareto 26.9 (`unbiased/pareto-26.9`), Mistral Large 4 (`mistralai/mistral-large-4-0`, explicit public preview), Ling 3.1 Flash (text-only, explicit), Solar Mini4, Solar Pro 4, MiMo V2.6 Flash, GPT-6.1 Sol, GPT-6 Sol/Luna/Astra/Pro, Claude Sonnet 5.5/Opus 5.5, Grok 4.7, Claude Fable 5.1, DeepSeek V4.1 Flash, Gemini 3.8 Flash, Mercury 2.5, Qwen3.8 Max, Muse Spark 1.3; Supports a curated OpenRouter model list (OpenAI/Claude/Gemini/Z.ai/xAI/Kimi/DeepSeek/Qwen), including GLM-5.3/FlashX, 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. Explicit options also include `nvidia/nemotron-3.5-lightning` (text-only), `qwen/qwen3.8-27b`, and `qwen/qwen3.8-omni-flash` (image input). The default is `google/gemma-4-31b-it:free`; `nvidia/nemotron-3.5-super-vl:free` is also listed as a free model. Additional models: `anthropic/claude-haiku-5.5`, `inception/mercury-3`, `deepseek/deepseek-v4.1-flash-1017`, `moonshotai/kimi-k3.1-pro`, `minimax/minimax-m3.1-flash`, `unbiased/pareto-26.10`, `inclusionai/ling-3.0-flash-vl`, `nex-agi/nex-n2.5-pro`. `openai/gpt-6.1-terra` is also an explicit option.
|
|
1612
1669
|
- **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-FlashX/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`.
|
|
1613
1670
|
- **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`.
|
|
1614
|
-
- **Kimi**:
|
|
1671
|
+
- **Kimi**: Kimi K3.1 Pro (`kimi-k3.1-pro`, default) and Highspeed (`kimi-k3.1-pro-highspeed`) support image input, tools, streaming, and the same reasoning controls as K3. Also supports Kimi K3 (`kimi-k3`, `low` / `high` / `max` reasoning with `low` as the package default), all with vision support. K2 series models (`kimi-k2.6`, `kimi-k2.7-code`, `kimi-k2.7-code-highspeed`) are deprecated ahead of Kimi's December 2026 retirement
|
|
1615
1672
|
- **DeepSeek**: DeepSeek V4.1 Flash 1017 via the rolling `deepseek-flash` ID, plus text-only V4 Pro (`deepseek-v4-pro`), through OpenAI-compatible Chat Completions. Legacy Flash aliases remain available for compatibility. Thinking defaults to disabled for low-latency chat.
|
|
1616
|
-
- **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. GLM-5.3 (`zai-glm-5-3`) is an explicit text-only option.
|
|
1673
|
+
- **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. GLM-5.3 (`zai-glm-5-3`) is an explicit text-only option. Mistral Large 4 (`mistral-large-4-0`) is an explicit public preview option; deprecated `mistral-large-2512` is no longer advertised.
|
|
1617
1674
|
- **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.
|
|
1618
|
-
- **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.
|
|
1675
|
+
- **PLaMo**: Supports PLaMo 3.0 Prime (`plamo-3.0-prime`, default) and PLaMo 3.1 Prime (`plamo-3.1-prime`) via OpenAI-compatible Chat Completions; the retiring 2.2 constant remains exported for compatibility.
|
|
1619
1676
|
- **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.
|
|
1620
1677
|
|
|
1621
1678
|
## License
|
|
@@ -6,6 +6,7 @@ export declare const MODEL_CLAUDE_3_5_SONNET = "claude-3-5-sonnet-20241022";
|
|
|
6
6
|
export declare const MODEL_CLAUDE_3_7_SONNET = "claude-3-7-sonnet-20250219";
|
|
7
7
|
export declare const MODEL_CLAUDE_4_SONNET = "claude-sonnet-4-20250514";
|
|
8
8
|
export declare const MODEL_CLAUDE_4_OPUS = "claude-opus-4-20250514";
|
|
9
|
+
/** @deprecated Anthropic retires it on November 30, 2026. Use MODEL_CLAUDE_5_5_SONNET. */
|
|
9
10
|
export declare const MODEL_CLAUDE_4_5_SONNET = "claude-sonnet-4-5-20250929";
|
|
10
11
|
export declare const MODEL_CLAUDE_4_5_HAIKU = "claude-haiku-4-5-20251001";
|
|
11
12
|
export declare const MODEL_CLAUDE_4_5_OPUS = "claude-opus-4-5-20251101";
|
|
@@ -1 +1 @@
|
|
|
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;AAGzD,eAAO,MAAM,oBAAoB,4BAA4B,CAAC;AAC9D,eAAO,MAAM,sBAAsB,8BAA8B,CAAC;AAClE,eAAO,MAAM,uBAAuB,+BAA+B,CAAC;AACpE,eAAO,MAAM,uBAAuB,+BAA+B,CAA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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;AACvD,eAAO,MAAM,uBAAuB,sBAAsB,CAAC;AAC3D,eAAO,MAAM,sBAAsB,qBAAqB,CAAC;AAIzD,eAAO,MAAM,wBAAwB,UAQpC,CAAC;AAEF,MAAM,MAAM,qBAAqB,GAAG,KAAK,GAAG,QAAQ,GAAG,MAAM,GAAG,OAAO,GAAG,KAAK,CAAC;AAoChF,eAAO,MAAM,8BAA8B,UAe1C,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;;;GAGG;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,CAgBnC"}
|
|
@@ -14,6 +14,7 @@ exports.MODEL_CLAUDE_3_5_SONNET = 'claude-3-5-sonnet-20241022';
|
|
|
14
14
|
exports.MODEL_CLAUDE_3_7_SONNET = 'claude-3-7-sonnet-20250219';
|
|
15
15
|
exports.MODEL_CLAUDE_4_SONNET = 'claude-sonnet-4-20250514';
|
|
16
16
|
exports.MODEL_CLAUDE_4_OPUS = 'claude-opus-4-20250514';
|
|
17
|
+
/** @deprecated Anthropic retires it on November 30, 2026. Use MODEL_CLAUDE_5_5_SONNET. */
|
|
17
18
|
exports.MODEL_CLAUDE_4_5_SONNET = 'claude-sonnet-4-5-20250929';
|
|
18
19
|
exports.MODEL_CLAUDE_4_5_HAIKU = 'claude-haiku-4-5-20251001';
|
|
19
20
|
exports.MODEL_CLAUDE_4_5_OPUS = 'claude-opus-4-5-20251101';
|
|
@@ -27,8 +28,10 @@ exports.MODEL_CLAUDE_5_OPUS = 'claude-opus-5';
|
|
|
27
28
|
exports.MODEL_CLAUDE_5_5_OPUS = 'claude-opus-5-5';
|
|
28
29
|
exports.MODEL_CLAUDE_5_5_SONNET = 'claude-sonnet-5-5';
|
|
29
30
|
exports.MODEL_CLAUDE_5_5_HAIKU = 'claude-haiku-5-5';
|
|
30
|
-
//
|
|
31
|
+
// Deprecated and retired model ids remain exported so existing imports
|
|
32
|
+
// continue to compile.
|
|
31
33
|
exports.CLAUDE_DEPRECATED_MODELS = [
|
|
34
|
+
exports.MODEL_CLAUDE_4_5_SONNET,
|
|
32
35
|
exports.MODEL_CLAUDE_3_HAIKU,
|
|
33
36
|
exports.MODEL_CLAUDE_3_5_HAIKU,
|
|
34
37
|
exports.MODEL_CLAUDE_3_5_SONNET,
|
|
@@ -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":";;;AA8FA,gFAIC;AAED,oEAEC;AAMD,0EAIC;AAKD,wEAmBC;AAxIY,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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M,CAAC,EAAE,CAAC;QAC/B,OAAO,MAAM,CAAC;IAChB,CAAC;IAED,uEAAuE;IACvE,OAAO,MAAM,CAAC;AAChB,CAAC"}
|
|
@@ -2,8 +2,10 @@ export declare const ENDPOINT_GEMINI_API = "https://generativelanguage.googleapi
|
|
|
2
2
|
export declare const MODEL_GEMMA_4_31B_IT = "gemma-4-31b-it";
|
|
3
3
|
export declare const MODEL_GEMMA_4_26B_A4B_IT = "gemma-4-26b-a4b-it";
|
|
4
4
|
export declare const MODEL_GEMINI_3_8_FLASH = "gemini-3.8-flash";
|
|
5
|
+
/** @deprecated Google routes requests to gemini-3.8-flash. Use MODEL_GEMINI_3_8_FLASH. */
|
|
5
6
|
export declare const MODEL_GEMINI_3_7_FLASH = "gemini-3.7-flash";
|
|
6
7
|
export declare const MODEL_GEMINI_3_6_FLASH = "gemini-3.6-flash";
|
|
8
|
+
/** @deprecated Google routes requests to gemini-3.6-flash. Use MODEL_GEMINI_3_6_FLASH. */
|
|
7
9
|
export declare const MODEL_GEMINI_3_5_FLASH = "gemini-3.5-flash";
|
|
8
10
|
export declare const MODEL_GEMINI_3_5_FLASH_LITE = "gemini-3.5-flash-lite";
|
|
9
11
|
export declare const MODEL_GEMINI_3_1_PRO_PREVIEW = "gemini-3.1-pro-preview";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"gemini.d.ts","sourceRoot":"","sources":["../../../src/constants/gemini.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,mBAAmB,8CAA8C,CAAC;AAG/E,eAAO,MAAM,oBAAoB,mBAAmB,CAAC;AACrD,eAAO,MAAM,wBAAwB,uBAAuB,CAAC;AAC7D,eAAO,MAAM,sBAAsB,qBAAqB,CAAC;AACzD,eAAO,MAAM,sBAAsB,qBAAqB,CAAC;AACzD,eAAO,MAAM,sBAAsB,qBAAqB,CAAC;AACzD,eAAO,MAAM,sBAAsB,qBAAqB,CAAC;AACzD,eAAO,MAAM,2BAA2B,0BAA0B,CAAC;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AAC;AACnE,2DAA2D;AAC3D,eAAO,MAAM,yCAAyC,wCACf,CAAC;AAExC,eAAO,MAAM,yBAAyB,UAYrC,CAAC;AAEF,eAAO,MAAM,wBAAwB,UAMpC,CAAC;AAIF,eAAO,MAAM,8BAA8B,UAG1C,CAAC;AAEF,MAAM,MAAM,qBAAqB,GAAG,SAAS,GAAG,KAAK,GAAG,QAAQ,GAAG,MAAM,CAAC;AA+B1E;;;GAGG;AACH,wBAAgB,kCAAkC,CAChD,KAAK,EAAE,MAAM,GACZ,SAAS,qBAAqB,EAAE,CAUlC;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,CAWnC"}
|
|
@@ -11,8 +11,10 @@ exports.ENDPOINT_GEMINI_API = 'https://generativelanguage.googleapis.com';
|
|
|
11
11
|
exports.MODEL_GEMMA_4_31B_IT = 'gemma-4-31b-it';
|
|
12
12
|
exports.MODEL_GEMMA_4_26B_A4B_IT = 'gemma-4-26b-a4b-it';
|
|
13
13
|
exports.MODEL_GEMINI_3_8_FLASH = 'gemini-3.8-flash';
|
|
14
|
+
/** @deprecated Google routes requests to gemini-3.8-flash. Use MODEL_GEMINI_3_8_FLASH. */
|
|
14
15
|
exports.MODEL_GEMINI_3_7_FLASH = 'gemini-3.7-flash';
|
|
15
16
|
exports.MODEL_GEMINI_3_6_FLASH = 'gemini-3.6-flash';
|
|
17
|
+
/** @deprecated Google routes requests to gemini-3.6-flash. Use MODEL_GEMINI_3_6_FLASH. */
|
|
16
18
|
exports.MODEL_GEMINI_3_5_FLASH = 'gemini-3.5-flash';
|
|
17
19
|
exports.MODEL_GEMINI_3_5_FLASH_LITE = 'gemini-3.5-flash-lite';
|
|
18
20
|
exports.MODEL_GEMINI_3_1_PRO_PREVIEW = 'gemini-3.1-pro-preview';
|
|
@@ -29,9 +31,7 @@ exports.MODEL_GEMINI_2_5_FLASH_LITE = 'gemini-2.5-flash-lite';
|
|
|
29
31
|
exports.MODEL_GEMINI_2_5_FLASH_LITE_PREVIEW_06_17 = 'gemini-2.5-flash-lite-preview-06-17';
|
|
30
32
|
exports.GEMINI_RECOMMENDED_MODELS = [
|
|
31
33
|
exports.MODEL_GEMINI_3_8_FLASH,
|
|
32
|
-
exports.MODEL_GEMINI_3_7_FLASH,
|
|
33
34
|
exports.MODEL_GEMINI_3_6_FLASH,
|
|
34
|
-
exports.MODEL_GEMINI_3_5_FLASH,
|
|
35
35
|
exports.MODEL_GEMINI_3_5_FLASH_LITE,
|
|
36
36
|
exports.MODEL_GEMINI_3_1_FLASH_LITE,
|
|
37
37
|
exports.MODEL_GEMINI_3_1_PRO_PREVIEW,
|
|
@@ -43,6 +43,8 @@ exports.GEMINI_RECOMMENDED_MODELS = [
|
|
|
43
43
|
exports.MODEL_GEMMA_4_26B_A4B_IT,
|
|
44
44
|
];
|
|
45
45
|
exports.GEMINI_DEPRECATED_MODELS = [
|
|
46
|
+
exports.MODEL_GEMINI_3_7_FLASH,
|
|
47
|
+
exports.MODEL_GEMINI_3_5_FLASH,
|
|
46
48
|
exports.MODEL_GEMINI_3_1_FLASH_LITE_PREVIEW,
|
|
47
49
|
exports.MODEL_GEMINI_3_PRO_PREVIEW,
|
|
48
50
|
exports.MODEL_GEMINI_2_5_FLASH_LITE_PREVIEW_06_17,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"gemini.js","sourceRoot":"","sources":["../../../src/constants/gemini.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"gemini.js","sourceRoot":"","sources":["../../../src/constants/gemini.ts"],"names":[],"mappings":";;;AA4FA,gFAYC;AAED,oEAEC;AAKD,0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,CAAC;IAChB,CAAC;IAED,OAAO,SAAS,CAAC,CAAC,CAAC,CAAC;AACtB,CAAC"}
|
|
@@ -1,9 +1,16 @@
|
|
|
1
1
|
export declare const ENDPOINT_KIMI_CHAT_COMPLETIONS_API = "https://api.moonshot.ai/v1/chat/completions";
|
|
2
2
|
export declare const MODEL_KIMI_K3 = "kimi-k3";
|
|
3
|
+
/** @deprecated Kimi retires all K2 series models by the end of December 2026. Use MODEL_KIMI_K3_1_PRO. */
|
|
3
4
|
export declare const MODEL_KIMI_K2_7_CODE = "kimi-k2.7-code";
|
|
5
|
+
/** @deprecated Kimi retires all K2 series models by the end of December 2026. Use MODEL_KIMI_K3_1_PRO. */
|
|
4
6
|
export declare const MODEL_KIMI_K2_7_CODE_HIGHSPEED = "kimi-k2.7-code-highspeed";
|
|
7
|
+
/** @deprecated Kimi retires all K2 series models by the end of December 2026. Use MODEL_KIMI_K3_1_PRO. */
|
|
5
8
|
export declare const MODEL_KIMI_K2_6 = "kimi-k2.6";
|
|
9
|
+
/** @deprecated Discontinued by Kimi on August 31, 2026. Use MODEL_KIMI_K3_1_PRO. */
|
|
6
10
|
export declare const MODEL_KIMI_K2_5 = "kimi-k2.5";
|
|
11
|
+
export declare const MODEL_KIMI_K3_1_PRO = "kimi-k3.1-pro";
|
|
12
|
+
export declare const MODEL_KIMI_K3_1_PRO_HIGHSPEED = "kimi-k3.1-pro-highspeed";
|
|
13
|
+
export declare const KIMI_DEPRECATED_MODELS: string[];
|
|
7
14
|
export type KimiReasoningEffort = 'low' | 'high' | 'max';
|
|
8
15
|
export declare const KIMI_VISION_SUPPORTED_MODELS: string[];
|
|
9
16
|
export declare const KIMI_THINKING_REQUIRED_MODELS: string[];
|
|
@@ -20,7 +27,9 @@ export declare function isKimiThinkingRequiredModel(model: string): boolean;
|
|
|
20
27
|
*/
|
|
21
28
|
export declare function getKimiSupportedReasoningEfforts(model: string): readonly KimiReasoningEffort[];
|
|
22
29
|
/**
|
|
23
|
-
* Get the
|
|
30
|
+
* Get the package default reasoning effort for a Kimi model.
|
|
31
|
+
* Kimi's API default is `max`; this package defaults to `low` for responsive
|
|
32
|
+
* chat and keeps `high` / `max` as explicit options.
|
|
24
33
|
*/
|
|
25
34
|
export declare function getDefaultKimiReasoningEffort(model: string): KimiReasoningEffort | undefined;
|
|
26
35
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"kimi.d.ts","sourceRoot":"","sources":["../../../src/constants/kimi.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,kCAAkC,gDACA,CAAC;AAGhD,eAAO,MAAM,aAAa,YAAY,CAAC;AACvC,eAAO,MAAM,oBAAoB,mBAAmB,CAAC;AACrD,eAAO,MAAM,8BAA8B,6BAA6B,CAAC;AACzE,eAAO,MAAM,eAAe,cAAc,CAAC;AAC3C,eAAO,MAAM,eAAe,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"kimi.d.ts","sourceRoot":"","sources":["../../../src/constants/kimi.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,kCAAkC,gDACA,CAAC;AAGhD,eAAO,MAAM,aAAa,YAAY,CAAC;AACvC,0GAA0G;AAC1G,eAAO,MAAM,oBAAoB,mBAAmB,CAAC;AACrD,0GAA0G;AAC1G,eAAO,MAAM,8BAA8B,6BAA6B,CAAC;AACzE,0GAA0G;AAC1G,eAAO,MAAM,eAAe,cAAc,CAAC;AAC3C,oFAAoF;AACpF,eAAO,MAAM,eAAe,cAAc,CAAC;AAC3C,eAAO,MAAM,mBAAmB,kBAAkB,CAAC;AACnD,eAAO,MAAM,6BAA6B,4BAA4B,CAAC;AAEvE,eAAO,MAAM,sBAAsB,UAKlC,CAAC;AAEF,MAAM,MAAM,mBAAmB,GAAG,KAAK,GAAG,MAAM,GAAG,KAAK,CAAC;AAYzD,eAAO,MAAM,4BAA4B,UAQxC,CAAC;AAGF,eAAO,MAAM,6BAA6B,UAGzC,CAAC;AAEF;;GAEG;AACH,wBAAgB,iBAAiB,CAAC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