johns-harness 2026.10.12 → 2026.10.14
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/CHANGELOG.md +11 -0
- package/dist/auth-profiles-5CHn7vq1.js +1 -1
- package/dist/config-koj5M_EO.js +1 -1
- package/dist/daemon-cli.js +1 -1
- package/dist/model-selection-BGlGpPgM.js +1 -1
- package/dist/model-selection-BU6wl1le.js +1 -1
- package/dist/model-selection-L7RMwsG-.js +1 -1
- package/dist/plugin-sdk/config-4Fgm-yEH.js +1 -1
- package/dist/plugin-sdk/config-Di-lyCdh.js +1 -1
- package/dist/plugin-sdk/discord.js +1 -1
- package/dist/plugin-sdk/model-auth-CX9cPHdC.js +1 -1
- package/dist/plugin-sdk/model-auth-Ciehz0x5.js +1 -1
- package/dist/plugin-sdk/model-auth-DVyo6JSX.js +1 -1
- package/dist/plugin-sdk/model-auth-kiHYHGrs.js +1 -1
- package/dist/plugin-sdk/model-selection-Dbj4jDYM.js +1 -1
- package/docs/MODELS.md +13 -0
- package/models/models.json +8 -3
- package/node_modules/@mariozechner/pi-ai/dist/models.generated.js +2 -1
- package/node_modules/@mariozechner/pi-ai/dist/providers/google.js +45 -0
- package/package.json +1 -1
- package/scripts/models-sync.mjs +74 -1
- package/vendor/patched-deps/@mariozechner/pi-ai/dist/models.generated.js +2 -1
- package/vendor/patched-deps/@mariozechner/pi-ai/dist/providers/google.js +45 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,16 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 2026.10.14
|
|
4
|
+
|
|
5
|
+
- **New stable chat model:** `google/gemini-4-argon` (GA October 13, cutoff March 2026). Text/image input in the harness and text output; the native API also accepts audio/video/PDF. A unified **1,048,576-token** window includes input, thinking and output; output uses only the remaining space. Function calling is verified through the real adapter.
|
|
6
|
+
- **Correct ordinary streaming transport:** **65,536 max output tokens** per stream, including thoughts. Google's native model GET reports 32,768 for direct non-streaming REST; the official GenerateContent long-decode guide distinguishes that from 64K streaming/SDK calls. The pinned SDK lacks automatic continuation. This release rejects requests above the single-stream cap and does **not** claim 1M long decode, background execution or the Interactions API.
|
|
7
|
+
- **Master-driven Google wire rules:** `harness.thinking: "level"`, `thinkingDefault`, accepted `efforts`, sampling and cache rules generate into the real Google adapter. Low/medium/high map to `thinkingConfig.thinkingLevel`; minimal/none map low, xhigh/max map high (no native xhigh). Default and `/think off` preserve medium because Argon cannot disable thinking. No legacy `thinkingBudget`; ignored temperature/top_p/top_k are omitted. Explicit cachedContent is refused; implicit caching starts at 4,096 prompt tokens with a 95% cache-hit discount. All older models retain their historical adapter behavior.
|
|
8
|
+
- **Aliases:** `gemini` → `google/gemini-4-argon`; new `gemini31` preserves `google/gemini-3.1-pro-preview`. No other alias, model ID, image default, auth setting, Sonnet 1M choice or Opus cap changes.
|
|
9
|
+
- **Pricing (USD/MTok, input/output including thoughts/cache read):** Standard introductory **$2/$10/$0.10 through November 30, 2026**, then **$4/$20/$0.20 starting December 1**. Batch and Flex $1/$5/$0.05 → $2/$10/$0.10; Priority $3.60/$18/$0.18 → $7.20/$36/$0.36. Paid only, no Free tier/Google AI Pro access or long-context premium. Catalog cost estimates use introductory Standard rates, not tiered inference/grounding charges; update the entry at expiry. Implicit caching only, no explicit storage price. Grounding Search/Maps each offer 5,000 shared monthly free requests across Gemini 3+ then $14/1,000 queries; the ordinary adapter does not expose those native tools.
|
|
10
|
+
- **Live proof:** two HTTP 200 `streamGenerateContent` turns through the actual harness adapter: medium-default function call with thought signature, then low-effort signed tool-result replay and `ARGON_OK` completion. Both accepted maxOutputTokens 65,536 and omitted sampling parameters. Regression tests exercise actual SDK HTTP/SSE and historical models.
|
|
11
|
+
- Official sources checked October 14: [release](https://ai.google.dev/gemini-api/docs/changelog#10-13-2026), [model](https://ai.google.dev/gemini-api/docs/models/gemini-4-argon), [migration](https://ai.google.dev/gemini-api/docs/latest-model), [GenerateContent thinking](https://ai.google.dev/gemini-api/docs/generate-content/thinking), [GenerateContent long decode](https://ai.google.dev/gemini-api/docs/generate-content/long-decode), [pricing](https://ai.google.dev/gemini-api/docs/pricing#gemini-4-argon), [model card](https://deepmind.google/models/model-cards/gemini-4-argon/).
|
|
12
|
+
- **Rollback:** `npm i -g johns-harness@2026.10.12` (previous confirmed registry release).
|
|
13
|
+
|
|
3
14
|
## 2026.10.12
|
|
4
15
|
|
|
5
16
|
Five image models that were already callable but missing from the catalog (sources checked 2026-10-12). All are image-only (`chat: false`) and reached through `image_generate`; no chat model, chat alias or chat default changed.
|
|
@@ -5157,7 +5157,7 @@ Object.assign(DEFAULT_MODEL_ALIASES, {
|
|
|
5157
5157
|
grok46: "xai/grok-4.6"
|
|
5158
5158
|
});
|
|
5159
5159
|
/* JOHNNESS_MODELS_MASTER:BEGIN aliases (generated from models/models.json by scripts/models-sync.mjs; edit the master, not this block) */
|
|
5160
|
-
const JOHNNESS_MASTER_ALIASES = {"deepseek":"deepseek/deepseek-flash","deepseek-pro":"deepseek/deepseek-v4-pro","gemini-lite":"google/gemini-3.5-flash-lite","muse":"meta/muse-spark-1.3","muse-spark":"meta/muse-spark-1.3","opus46":"anthropic/claude-opus-4-6","sonnet46":"anthropic/claude-sonnet-4-6","gpt-mini":"openai/gpt-5-mini","gemini":"google/gemini-3.1-pro-preview","gemini-flash":"google/gemini-3.8-flash","gemini-flash-lite":"google/gemini-2.5-flash-lite","flash":"google/gemini-3.8-flash","banana":"google/gemini-nano-banana-2.1","nano-banana":"google/gemini-nano-banana-2.1","nano-banana-pro":"google/gemini-3-pro-image","nano-banana-pro-preview":"google/gemini-3-pro-image-preview","nano-banana-lite":"google/gemini-3.1-flash-lite-image","grok-image":"xai/grok-imagine-image-2.0","image":"openai-codex/gpt-image-2.5-sunburst","image-sunburst":"openai-codex/gpt-image-2.5-sunburst","image-flare":"openai-codex/gpt-image-2.5-flare","image2":"openai-codex/gpt-image-2","sonnet5":"anthropic/claude-sonnet-5","opus5":"anthropic/claude-opus-5","haiku45":"anthropic/claude-haiku-4-5","sol6":"openai-codex/gpt-6-sol","sol56":"openai-codex/gpt-5.6-sol","luna56":"openai-codex/gpt-5.6-luna","grok46":"xai/grok-4.6","opus":"anthropic/claude-opus-5-5","sonnet":"anthropic/claude-sonnet-5-5","fable":"anthropic/claude-fable-5-1","haiku":"anthropic/claude-haiku-5-5","gpt":"openai-codex/gpt-6.1-sol","sol":"openai-codex/gpt-6.1-sol","luna":"openai-codex/gpt-6-luna","astra":"openai-codex/gpt-6-astra","terra":"openai-codex/gpt-5.6-terra","grok":"xai/grok-4.7"};
|
|
5160
|
+
const JOHNNESS_MASTER_ALIASES = {"deepseek":"deepseek/deepseek-flash","deepseek-pro":"deepseek/deepseek-v4-pro","gemini-lite":"google/gemini-3.5-flash-lite","muse":"meta/muse-spark-1.3","muse-spark":"meta/muse-spark-1.3","opus46":"anthropic/claude-opus-4-6","sonnet46":"anthropic/claude-sonnet-4-6","gpt-mini":"openai/gpt-5-mini","gemini":"google/gemini-4-argon","gemini31":"google/gemini-3.1-pro-preview","gemini-flash":"google/gemini-3.8-flash","gemini-flash-lite":"google/gemini-2.5-flash-lite","flash":"google/gemini-3.8-flash","banana":"google/gemini-nano-banana-2.1","nano-banana":"google/gemini-nano-banana-2.1","nano-banana-pro":"google/gemini-3-pro-image","nano-banana-pro-preview":"google/gemini-3-pro-image-preview","nano-banana-lite":"google/gemini-3.1-flash-lite-image","grok-image":"xai/grok-imagine-image-2.0","image":"openai-codex/gpt-image-2.5-sunburst","image-sunburst":"openai-codex/gpt-image-2.5-sunburst","image-flare":"openai-codex/gpt-image-2.5-flare","image2":"openai-codex/gpt-image-2","sonnet5":"anthropic/claude-sonnet-5","opus5":"anthropic/claude-opus-5","haiku45":"anthropic/claude-haiku-4-5","sol6":"openai-codex/gpt-6-sol","sol56":"openai-codex/gpt-5.6-sol","luna56":"openai-codex/gpt-5.6-luna","grok46":"xai/grok-4.6","opus":"anthropic/claude-opus-5-5","sonnet":"anthropic/claude-sonnet-5-5","fable":"anthropic/claude-fable-5-1","haiku":"anthropic/claude-haiku-5-5","gpt":"openai-codex/gpt-6.1-sol","sol":"openai-codex/gpt-6.1-sol","luna":"openai-codex/gpt-6-luna","astra":"openai-codex/gpt-6-astra","terra":"openai-codex/gpt-5.6-terra","grok":"xai/grok-4.7"};
|
|
5161
5161
|
for (const [alias, ref] of Object.entries(JOHNNESS_MASTER_ALIASES)) DEFAULT_MODEL_ALIASES[alias] = ref;
|
|
5162
5162
|
/* JOHNNESS_MODELS_MASTER:END */
|
|
5163
5163
|
const DEFAULT_MODEL_COST = {
|
package/dist/config-koj5M_EO.js
CHANGED
|
@@ -1852,7 +1852,7 @@ Object.assign(DEFAULT_MODEL_ALIASES, {
|
|
|
1852
1852
|
grok46: "xai/grok-4.6"
|
|
1853
1853
|
});
|
|
1854
1854
|
/* JOHNNESS_MODELS_MASTER:BEGIN aliases (generated from models/models.json by scripts/models-sync.mjs; edit the master, not this block) */
|
|
1855
|
-
const JOHNNESS_MASTER_ALIASES = {"deepseek":"deepseek/deepseek-flash","deepseek-pro":"deepseek/deepseek-v4-pro","gemini-lite":"google/gemini-3.5-flash-lite","muse":"meta/muse-spark-1.3","muse-spark":"meta/muse-spark-1.3","opus46":"anthropic/claude-opus-4-6","sonnet46":"anthropic/claude-sonnet-4-6","gpt-mini":"openai/gpt-5-mini","gemini":"google/gemini-3.1-pro-preview","gemini-flash":"google/gemini-3.8-flash","gemini-flash-lite":"google/gemini-2.5-flash-lite","flash":"google/gemini-3.8-flash","banana":"google/gemini-nano-banana-2.1","nano-banana":"google/gemini-nano-banana-2.1","nano-banana-pro":"google/gemini-3-pro-image","nano-banana-pro-preview":"google/gemini-3-pro-image-preview","nano-banana-lite":"google/gemini-3.1-flash-lite-image","grok-image":"xai/grok-imagine-image-2.0","image":"openai-codex/gpt-image-2.5-sunburst","image-sunburst":"openai-codex/gpt-image-2.5-sunburst","image-flare":"openai-codex/gpt-image-2.5-flare","image2":"openai-codex/gpt-image-2","sonnet5":"anthropic/claude-sonnet-5","opus5":"anthropic/claude-opus-5","haiku45":"anthropic/claude-haiku-4-5","sol6":"openai-codex/gpt-6-sol","sol56":"openai-codex/gpt-5.6-sol","luna56":"openai-codex/gpt-5.6-luna","grok46":"xai/grok-4.6","opus":"anthropic/claude-opus-5-5","sonnet":"anthropic/claude-sonnet-5-5","fable":"anthropic/claude-fable-5-1","haiku":"anthropic/claude-haiku-5-5","gpt":"openai-codex/gpt-6.1-sol","sol":"openai-codex/gpt-6.1-sol","luna":"openai-codex/gpt-6-luna","astra":"openai-codex/gpt-6-astra","terra":"openai-codex/gpt-5.6-terra","grok":"xai/grok-4.7"};
|
|
1855
|
+
const JOHNNESS_MASTER_ALIASES = {"deepseek":"deepseek/deepseek-flash","deepseek-pro":"deepseek/deepseek-v4-pro","gemini-lite":"google/gemini-3.5-flash-lite","muse":"meta/muse-spark-1.3","muse-spark":"meta/muse-spark-1.3","opus46":"anthropic/claude-opus-4-6","sonnet46":"anthropic/claude-sonnet-4-6","gpt-mini":"openai/gpt-5-mini","gemini":"google/gemini-4-argon","gemini31":"google/gemini-3.1-pro-preview","gemini-flash":"google/gemini-3.8-flash","gemini-flash-lite":"google/gemini-2.5-flash-lite","flash":"google/gemini-3.8-flash","banana":"google/gemini-nano-banana-2.1","nano-banana":"google/gemini-nano-banana-2.1","nano-banana-pro":"google/gemini-3-pro-image","nano-banana-pro-preview":"google/gemini-3-pro-image-preview","nano-banana-lite":"google/gemini-3.1-flash-lite-image","grok-image":"xai/grok-imagine-image-2.0","image":"openai-codex/gpt-image-2.5-sunburst","image-sunburst":"openai-codex/gpt-image-2.5-sunburst","image-flare":"openai-codex/gpt-image-2.5-flare","image2":"openai-codex/gpt-image-2","sonnet5":"anthropic/claude-sonnet-5","opus5":"anthropic/claude-opus-5","haiku45":"anthropic/claude-haiku-4-5","sol6":"openai-codex/gpt-6-sol","sol56":"openai-codex/gpt-5.6-sol","luna56":"openai-codex/gpt-5.6-luna","grok46":"xai/grok-4.6","opus":"anthropic/claude-opus-5-5","sonnet":"anthropic/claude-sonnet-5-5","fable":"anthropic/claude-fable-5-1","haiku":"anthropic/claude-haiku-5-5","gpt":"openai-codex/gpt-6.1-sol","sol":"openai-codex/gpt-6.1-sol","luna":"openai-codex/gpt-6-luna","astra":"openai-codex/gpt-6-astra","terra":"openai-codex/gpt-5.6-terra","grok":"xai/grok-4.7"};
|
|
1856
1856
|
for (const [alias, ref] of Object.entries(JOHNNESS_MASTER_ALIASES)) DEFAULT_MODEL_ALIASES[alias] = ref;
|
|
1857
1857
|
/* JOHNNESS_MODELS_MASTER:END */
|
|
1858
1858
|
const DEFAULT_MODEL_COST = {
|
package/dist/daemon-cli.js
CHANGED
|
@@ -5004,7 +5004,7 @@ Object.assign(DEFAULT_MODEL_ALIASES, {
|
|
|
5004
5004
|
grok46: "xai/grok-4.6"
|
|
5005
5005
|
});
|
|
5006
5006
|
/* JOHNNESS_MODELS_MASTER:BEGIN aliases (generated from models/models.json by scripts/models-sync.mjs; edit the master, not this block) */
|
|
5007
|
-
const JOHNNESS_MASTER_ALIASES = {"deepseek":"deepseek/deepseek-flash","deepseek-pro":"deepseek/deepseek-v4-pro","gemini-lite":"google/gemini-3.5-flash-lite","muse":"meta/muse-spark-1.3","muse-spark":"meta/muse-spark-1.3","opus46":"anthropic/claude-opus-4-6","sonnet46":"anthropic/claude-sonnet-4-6","gpt-mini":"openai/gpt-5-mini","gemini":"google/gemini-3.1-pro-preview","gemini-flash":"google/gemini-3.8-flash","gemini-flash-lite":"google/gemini-2.5-flash-lite","flash":"google/gemini-3.8-flash","banana":"google/gemini-nano-banana-2.1","nano-banana":"google/gemini-nano-banana-2.1","nano-banana-pro":"google/gemini-3-pro-image","nano-banana-pro-preview":"google/gemini-3-pro-image-preview","nano-banana-lite":"google/gemini-3.1-flash-lite-image","grok-image":"xai/grok-imagine-image-2.0","image":"openai-codex/gpt-image-2.5-sunburst","image-sunburst":"openai-codex/gpt-image-2.5-sunburst","image-flare":"openai-codex/gpt-image-2.5-flare","image2":"openai-codex/gpt-image-2","sonnet5":"anthropic/claude-sonnet-5","opus5":"anthropic/claude-opus-5","haiku45":"anthropic/claude-haiku-4-5","sol6":"openai-codex/gpt-6-sol","sol56":"openai-codex/gpt-5.6-sol","luna56":"openai-codex/gpt-5.6-luna","grok46":"xai/grok-4.6","opus":"anthropic/claude-opus-5-5","sonnet":"anthropic/claude-sonnet-5-5","fable":"anthropic/claude-fable-5-1","haiku":"anthropic/claude-haiku-5-5","gpt":"openai-codex/gpt-6.1-sol","sol":"openai-codex/gpt-6.1-sol","luna":"openai-codex/gpt-6-luna","astra":"openai-codex/gpt-6-astra","terra":"openai-codex/gpt-5.6-terra","grok":"xai/grok-4.7"};
|
|
5007
|
+
const JOHNNESS_MASTER_ALIASES = {"deepseek":"deepseek/deepseek-flash","deepseek-pro":"deepseek/deepseek-v4-pro","gemini-lite":"google/gemini-3.5-flash-lite","muse":"meta/muse-spark-1.3","muse-spark":"meta/muse-spark-1.3","opus46":"anthropic/claude-opus-4-6","sonnet46":"anthropic/claude-sonnet-4-6","gpt-mini":"openai/gpt-5-mini","gemini":"google/gemini-4-argon","gemini31":"google/gemini-3.1-pro-preview","gemini-flash":"google/gemini-3.8-flash","gemini-flash-lite":"google/gemini-2.5-flash-lite","flash":"google/gemini-3.8-flash","banana":"google/gemini-nano-banana-2.1","nano-banana":"google/gemini-nano-banana-2.1","nano-banana-pro":"google/gemini-3-pro-image","nano-banana-pro-preview":"google/gemini-3-pro-image-preview","nano-banana-lite":"google/gemini-3.1-flash-lite-image","grok-image":"xai/grok-imagine-image-2.0","image":"openai-codex/gpt-image-2.5-sunburst","image-sunburst":"openai-codex/gpt-image-2.5-sunburst","image-flare":"openai-codex/gpt-image-2.5-flare","image2":"openai-codex/gpt-image-2","sonnet5":"anthropic/claude-sonnet-5","opus5":"anthropic/claude-opus-5","haiku45":"anthropic/claude-haiku-4-5","sol6":"openai-codex/gpt-6-sol","sol56":"openai-codex/gpt-5.6-sol","luna56":"openai-codex/gpt-5.6-luna","grok46":"xai/grok-4.6","opus":"anthropic/claude-opus-5-5","sonnet":"anthropic/claude-sonnet-5-5","fable":"anthropic/claude-fable-5-1","haiku":"anthropic/claude-haiku-5-5","gpt":"openai-codex/gpt-6.1-sol","sol":"openai-codex/gpt-6.1-sol","luna":"openai-codex/gpt-6-luna","astra":"openai-codex/gpt-6-astra","terra":"openai-codex/gpt-5.6-terra","grok":"xai/grok-4.7"};
|
|
5008
5008
|
for (const [alias, ref] of Object.entries(JOHNNESS_MASTER_ALIASES)) DEFAULT_MODEL_ALIASES[alias] = ref;
|
|
5009
5009
|
/* JOHNNESS_MODELS_MASTER:END */
|
|
5010
5010
|
const DEFAULT_MODEL_COST = {
|
|
@@ -1709,7 +1709,7 @@ Object.assign(DEFAULT_MODEL_ALIASES, {
|
|
|
1709
1709
|
grok46: "xai/grok-4.6"
|
|
1710
1710
|
});
|
|
1711
1711
|
/* JOHNNESS_MODELS_MASTER:BEGIN aliases (generated from models/models.json by scripts/models-sync.mjs; edit the master, not this block) */
|
|
1712
|
-
const JOHNNESS_MASTER_ALIASES = {"deepseek":"deepseek/deepseek-flash","deepseek-pro":"deepseek/deepseek-v4-pro","gemini-lite":"google/gemini-3.5-flash-lite","muse":"meta/muse-spark-1.3","muse-spark":"meta/muse-spark-1.3","opus46":"anthropic/claude-opus-4-6","sonnet46":"anthropic/claude-sonnet-4-6","gpt-mini":"openai/gpt-5-mini","gemini":"google/gemini-3.1-pro-preview","gemini-flash":"google/gemini-3.8-flash","gemini-flash-lite":"google/gemini-2.5-flash-lite","flash":"google/gemini-3.8-flash","banana":"google/gemini-nano-banana-2.1","nano-banana":"google/gemini-nano-banana-2.1","nano-banana-pro":"google/gemini-3-pro-image","nano-banana-pro-preview":"google/gemini-3-pro-image-preview","nano-banana-lite":"google/gemini-3.1-flash-lite-image","grok-image":"xai/grok-imagine-image-2.0","image":"openai-codex/gpt-image-2.5-sunburst","image-sunburst":"openai-codex/gpt-image-2.5-sunburst","image-flare":"openai-codex/gpt-image-2.5-flare","image2":"openai-codex/gpt-image-2","sonnet5":"anthropic/claude-sonnet-5","opus5":"anthropic/claude-opus-5","haiku45":"anthropic/claude-haiku-4-5","sol6":"openai-codex/gpt-6-sol","sol56":"openai-codex/gpt-5.6-sol","luna56":"openai-codex/gpt-5.6-luna","grok46":"xai/grok-4.6","opus":"anthropic/claude-opus-5-5","sonnet":"anthropic/claude-sonnet-5-5","fable":"anthropic/claude-fable-5-1","haiku":"anthropic/claude-haiku-5-5","gpt":"openai-codex/gpt-6.1-sol","sol":"openai-codex/gpt-6.1-sol","luna":"openai-codex/gpt-6-luna","astra":"openai-codex/gpt-6-astra","terra":"openai-codex/gpt-5.6-terra","grok":"xai/grok-4.7"};
|
|
1712
|
+
const JOHNNESS_MASTER_ALIASES = {"deepseek":"deepseek/deepseek-flash","deepseek-pro":"deepseek/deepseek-v4-pro","gemini-lite":"google/gemini-3.5-flash-lite","muse":"meta/muse-spark-1.3","muse-spark":"meta/muse-spark-1.3","opus46":"anthropic/claude-opus-4-6","sonnet46":"anthropic/claude-sonnet-4-6","gpt-mini":"openai/gpt-5-mini","gemini":"google/gemini-4-argon","gemini31":"google/gemini-3.1-pro-preview","gemini-flash":"google/gemini-3.8-flash","gemini-flash-lite":"google/gemini-2.5-flash-lite","flash":"google/gemini-3.8-flash","banana":"google/gemini-nano-banana-2.1","nano-banana":"google/gemini-nano-banana-2.1","nano-banana-pro":"google/gemini-3-pro-image","nano-banana-pro-preview":"google/gemini-3-pro-image-preview","nano-banana-lite":"google/gemini-3.1-flash-lite-image","grok-image":"xai/grok-imagine-image-2.0","image":"openai-codex/gpt-image-2.5-sunburst","image-sunburst":"openai-codex/gpt-image-2.5-sunburst","image-flare":"openai-codex/gpt-image-2.5-flare","image2":"openai-codex/gpt-image-2","sonnet5":"anthropic/claude-sonnet-5","opus5":"anthropic/claude-opus-5","haiku45":"anthropic/claude-haiku-4-5","sol6":"openai-codex/gpt-6-sol","sol56":"openai-codex/gpt-5.6-sol","luna56":"openai-codex/gpt-5.6-luna","grok46":"xai/grok-4.6","opus":"anthropic/claude-opus-5-5","sonnet":"anthropic/claude-sonnet-5-5","fable":"anthropic/claude-fable-5-1","haiku":"anthropic/claude-haiku-5-5","gpt":"openai-codex/gpt-6.1-sol","sol":"openai-codex/gpt-6.1-sol","luna":"openai-codex/gpt-6-luna","astra":"openai-codex/gpt-6-astra","terra":"openai-codex/gpt-5.6-terra","grok":"xai/grok-4.7"};
|
|
1713
1713
|
for (const [alias, ref] of Object.entries(JOHNNESS_MASTER_ALIASES)) DEFAULT_MODEL_ALIASES[alias] = ref;
|
|
1714
1714
|
/* JOHNNESS_MODELS_MASTER:END */
|
|
1715
1715
|
const DEFAULT_MODEL_COST = {
|
|
@@ -1684,7 +1684,7 @@ Object.assign(DEFAULT_MODEL_ALIASES, {
|
|
|
1684
1684
|
grok46: "xai/grok-4.6"
|
|
1685
1685
|
});
|
|
1686
1686
|
/* JOHNNESS_MODELS_MASTER:BEGIN aliases (generated from models/models.json by scripts/models-sync.mjs; edit the master, not this block) */
|
|
1687
|
-
const JOHNNESS_MASTER_ALIASES = {"deepseek":"deepseek/deepseek-flash","deepseek-pro":"deepseek/deepseek-v4-pro","gemini-lite":"google/gemini-3.5-flash-lite","muse":"meta/muse-spark-1.3","muse-spark":"meta/muse-spark-1.3","opus46":"anthropic/claude-opus-4-6","sonnet46":"anthropic/claude-sonnet-4-6","gpt-mini":"openai/gpt-5-mini","gemini":"google/gemini-3.1-pro-preview","gemini-flash":"google/gemini-3.8-flash","gemini-flash-lite":"google/gemini-2.5-flash-lite","flash":"google/gemini-3.8-flash","banana":"google/gemini-nano-banana-2.1","nano-banana":"google/gemini-nano-banana-2.1","nano-banana-pro":"google/gemini-3-pro-image","nano-banana-pro-preview":"google/gemini-3-pro-image-preview","nano-banana-lite":"google/gemini-3.1-flash-lite-image","grok-image":"xai/grok-imagine-image-2.0","image":"openai-codex/gpt-image-2.5-sunburst","image-sunburst":"openai-codex/gpt-image-2.5-sunburst","image-flare":"openai-codex/gpt-image-2.5-flare","image2":"openai-codex/gpt-image-2","sonnet5":"anthropic/claude-sonnet-5","opus5":"anthropic/claude-opus-5","haiku45":"anthropic/claude-haiku-4-5","sol6":"openai-codex/gpt-6-sol","sol56":"openai-codex/gpt-5.6-sol","luna56":"openai-codex/gpt-5.6-luna","grok46":"xai/grok-4.6","opus":"anthropic/claude-opus-5-5","sonnet":"anthropic/claude-sonnet-5-5","fable":"anthropic/claude-fable-5-1","haiku":"anthropic/claude-haiku-5-5","gpt":"openai-codex/gpt-6.1-sol","sol":"openai-codex/gpt-6.1-sol","luna":"openai-codex/gpt-6-luna","astra":"openai-codex/gpt-6-astra","terra":"openai-codex/gpt-5.6-terra","grok":"xai/grok-4.7"};
|
|
1687
|
+
const JOHNNESS_MASTER_ALIASES = {"deepseek":"deepseek/deepseek-flash","deepseek-pro":"deepseek/deepseek-v4-pro","gemini-lite":"google/gemini-3.5-flash-lite","muse":"meta/muse-spark-1.3","muse-spark":"meta/muse-spark-1.3","opus46":"anthropic/claude-opus-4-6","sonnet46":"anthropic/claude-sonnet-4-6","gpt-mini":"openai/gpt-5-mini","gemini":"google/gemini-4-argon","gemini31":"google/gemini-3.1-pro-preview","gemini-flash":"google/gemini-3.8-flash","gemini-flash-lite":"google/gemini-2.5-flash-lite","flash":"google/gemini-3.8-flash","banana":"google/gemini-nano-banana-2.1","nano-banana":"google/gemini-nano-banana-2.1","nano-banana-pro":"google/gemini-3-pro-image","nano-banana-pro-preview":"google/gemini-3-pro-image-preview","nano-banana-lite":"google/gemini-3.1-flash-lite-image","grok-image":"xai/grok-imagine-image-2.0","image":"openai-codex/gpt-image-2.5-sunburst","image-sunburst":"openai-codex/gpt-image-2.5-sunburst","image-flare":"openai-codex/gpt-image-2.5-flare","image2":"openai-codex/gpt-image-2","sonnet5":"anthropic/claude-sonnet-5","opus5":"anthropic/claude-opus-5","haiku45":"anthropic/claude-haiku-4-5","sol6":"openai-codex/gpt-6-sol","sol56":"openai-codex/gpt-5.6-sol","luna56":"openai-codex/gpt-5.6-luna","grok46":"xai/grok-4.6","opus":"anthropic/claude-opus-5-5","sonnet":"anthropic/claude-sonnet-5-5","fable":"anthropic/claude-fable-5-1","haiku":"anthropic/claude-haiku-5-5","gpt":"openai-codex/gpt-6.1-sol","sol":"openai-codex/gpt-6.1-sol","luna":"openai-codex/gpt-6-luna","astra":"openai-codex/gpt-6-astra","terra":"openai-codex/gpt-5.6-terra","grok":"xai/grok-4.7"};
|
|
1688
1688
|
for (const [alias, ref] of Object.entries(JOHNNESS_MASTER_ALIASES)) DEFAULT_MODEL_ALIASES[alias] = ref;
|
|
1689
1689
|
/* JOHNNESS_MODELS_MASTER:END */
|
|
1690
1690
|
const DEFAULT_MODEL_COST = {
|
|
@@ -1615,7 +1615,7 @@ Object.assign(DEFAULT_MODEL_ALIASES, {
|
|
|
1615
1615
|
grok46: "xai/grok-4.6"
|
|
1616
1616
|
});
|
|
1617
1617
|
/* JOHNNESS_MODELS_MASTER:BEGIN aliases (generated from models/models.json by scripts/models-sync.mjs; edit the master, not this block) */
|
|
1618
|
-
const JOHNNESS_MASTER_ALIASES = {"deepseek":"deepseek/deepseek-flash","deepseek-pro":"deepseek/deepseek-v4-pro","gemini-lite":"google/gemini-3.5-flash-lite","muse":"meta/muse-spark-1.3","muse-spark":"meta/muse-spark-1.3","opus46":"anthropic/claude-opus-4-6","sonnet46":"anthropic/claude-sonnet-4-6","gpt-mini":"openai/gpt-5-mini","gemini":"google/gemini-3.1-pro-preview","gemini-flash":"google/gemini-3.8-flash","gemini-flash-lite":"google/gemini-2.5-flash-lite","flash":"google/gemini-3.8-flash","banana":"google/gemini-nano-banana-2.1","nano-banana":"google/gemini-nano-banana-2.1","nano-banana-pro":"google/gemini-3-pro-image","nano-banana-pro-preview":"google/gemini-3-pro-image-preview","nano-banana-lite":"google/gemini-3.1-flash-lite-image","grok-image":"xai/grok-imagine-image-2.0","image":"openai-codex/gpt-image-2.5-sunburst","image-sunburst":"openai-codex/gpt-image-2.5-sunburst","image-flare":"openai-codex/gpt-image-2.5-flare","image2":"openai-codex/gpt-image-2","sonnet5":"anthropic/claude-sonnet-5","opus5":"anthropic/claude-opus-5","haiku45":"anthropic/claude-haiku-4-5","sol6":"openai-codex/gpt-6-sol","sol56":"openai-codex/gpt-5.6-sol","luna56":"openai-codex/gpt-5.6-luna","grok46":"xai/grok-4.6","opus":"anthropic/claude-opus-5-5","sonnet":"anthropic/claude-sonnet-5-5","fable":"anthropic/claude-fable-5-1","haiku":"anthropic/claude-haiku-5-5","gpt":"openai-codex/gpt-6.1-sol","sol":"openai-codex/gpt-6.1-sol","luna":"openai-codex/gpt-6-luna","astra":"openai-codex/gpt-6-astra","terra":"openai-codex/gpt-5.6-terra","grok":"xai/grok-4.7"};
|
|
1618
|
+
const JOHNNESS_MASTER_ALIASES = {"deepseek":"deepseek/deepseek-flash","deepseek-pro":"deepseek/deepseek-v4-pro","gemini-lite":"google/gemini-3.5-flash-lite","muse":"meta/muse-spark-1.3","muse-spark":"meta/muse-spark-1.3","opus46":"anthropic/claude-opus-4-6","sonnet46":"anthropic/claude-sonnet-4-6","gpt-mini":"openai/gpt-5-mini","gemini":"google/gemini-4-argon","gemini31":"google/gemini-3.1-pro-preview","gemini-flash":"google/gemini-3.8-flash","gemini-flash-lite":"google/gemini-2.5-flash-lite","flash":"google/gemini-3.8-flash","banana":"google/gemini-nano-banana-2.1","nano-banana":"google/gemini-nano-banana-2.1","nano-banana-pro":"google/gemini-3-pro-image","nano-banana-pro-preview":"google/gemini-3-pro-image-preview","nano-banana-lite":"google/gemini-3.1-flash-lite-image","grok-image":"xai/grok-imagine-image-2.0","image":"openai-codex/gpt-image-2.5-sunburst","image-sunburst":"openai-codex/gpt-image-2.5-sunburst","image-flare":"openai-codex/gpt-image-2.5-flare","image2":"openai-codex/gpt-image-2","sonnet5":"anthropic/claude-sonnet-5","opus5":"anthropic/claude-opus-5","haiku45":"anthropic/claude-haiku-4-5","sol6":"openai-codex/gpt-6-sol","sol56":"openai-codex/gpt-5.6-sol","luna56":"openai-codex/gpt-5.6-luna","grok46":"xai/grok-4.6","opus":"anthropic/claude-opus-5-5","sonnet":"anthropic/claude-sonnet-5-5","fable":"anthropic/claude-fable-5-1","haiku":"anthropic/claude-haiku-5-5","gpt":"openai-codex/gpt-6.1-sol","sol":"openai-codex/gpt-6.1-sol","luna":"openai-codex/gpt-6-luna","astra":"openai-codex/gpt-6-astra","terra":"openai-codex/gpt-5.6-terra","grok":"xai/grok-4.7"};
|
|
1619
1619
|
for (const [alias, ref] of Object.entries(JOHNNESS_MASTER_ALIASES)) DEFAULT_MODEL_ALIASES[alias] = ref;
|
|
1620
1620
|
/* JOHNNESS_MODELS_MASTER:END */
|
|
1621
1621
|
const DEFAULT_MODEL_COST = {
|
|
@@ -7102,7 +7102,7 @@ Object.assign(DEFAULT_MODEL_ALIASES, {
|
|
|
7102
7102
|
grok46: "xai/grok-4.6"
|
|
7103
7103
|
});
|
|
7104
7104
|
/* JOHNNESS_MODELS_MASTER:BEGIN aliases (generated from models/models.json by scripts/models-sync.mjs; edit the master, not this block) */
|
|
7105
|
-
const JOHNNESS_MASTER_ALIASES = {"deepseek":"deepseek/deepseek-flash","deepseek-pro":"deepseek/deepseek-v4-pro","gemini-lite":"google/gemini-3.5-flash-lite","muse":"meta/muse-spark-1.3","muse-spark":"meta/muse-spark-1.3","opus46":"anthropic/claude-opus-4-6","sonnet46":"anthropic/claude-sonnet-4-6","gpt-mini":"openai/gpt-5-mini","gemini":"google/gemini-3.1-pro-preview","gemini-flash":"google/gemini-3.8-flash","gemini-flash-lite":"google/gemini-2.5-flash-lite","flash":"google/gemini-3.8-flash","banana":"google/gemini-nano-banana-2.1","nano-banana":"google/gemini-nano-banana-2.1","nano-banana-pro":"google/gemini-3-pro-image","nano-banana-pro-preview":"google/gemini-3-pro-image-preview","nano-banana-lite":"google/gemini-3.1-flash-lite-image","grok-image":"xai/grok-imagine-image-2.0","image":"openai-codex/gpt-image-2.5-sunburst","image-sunburst":"openai-codex/gpt-image-2.5-sunburst","image-flare":"openai-codex/gpt-image-2.5-flare","image2":"openai-codex/gpt-image-2","sonnet5":"anthropic/claude-sonnet-5","opus5":"anthropic/claude-opus-5","haiku45":"anthropic/claude-haiku-4-5","sol6":"openai-codex/gpt-6-sol","sol56":"openai-codex/gpt-5.6-sol","luna56":"openai-codex/gpt-5.6-luna","grok46":"xai/grok-4.6","opus":"anthropic/claude-opus-5-5","sonnet":"anthropic/claude-sonnet-5-5","fable":"anthropic/claude-fable-5-1","haiku":"anthropic/claude-haiku-5-5","gpt":"openai-codex/gpt-6.1-sol","sol":"openai-codex/gpt-6.1-sol","luna":"openai-codex/gpt-6-luna","astra":"openai-codex/gpt-6-astra","terra":"openai-codex/gpt-5.6-terra","grok":"xai/grok-4.7"};
|
|
7105
|
+
const JOHNNESS_MASTER_ALIASES = {"deepseek":"deepseek/deepseek-flash","deepseek-pro":"deepseek/deepseek-v4-pro","gemini-lite":"google/gemini-3.5-flash-lite","muse":"meta/muse-spark-1.3","muse-spark":"meta/muse-spark-1.3","opus46":"anthropic/claude-opus-4-6","sonnet46":"anthropic/claude-sonnet-4-6","gpt-mini":"openai/gpt-5-mini","gemini":"google/gemini-4-argon","gemini31":"google/gemini-3.1-pro-preview","gemini-flash":"google/gemini-3.8-flash","gemini-flash-lite":"google/gemini-2.5-flash-lite","flash":"google/gemini-3.8-flash","banana":"google/gemini-nano-banana-2.1","nano-banana":"google/gemini-nano-banana-2.1","nano-banana-pro":"google/gemini-3-pro-image","nano-banana-pro-preview":"google/gemini-3-pro-image-preview","nano-banana-lite":"google/gemini-3.1-flash-lite-image","grok-image":"xai/grok-imagine-image-2.0","image":"openai-codex/gpt-image-2.5-sunburst","image-sunburst":"openai-codex/gpt-image-2.5-sunburst","image-flare":"openai-codex/gpt-image-2.5-flare","image2":"openai-codex/gpt-image-2","sonnet5":"anthropic/claude-sonnet-5","opus5":"anthropic/claude-opus-5","haiku45":"anthropic/claude-haiku-4-5","sol6":"openai-codex/gpt-6-sol","sol56":"openai-codex/gpt-5.6-sol","luna56":"openai-codex/gpt-5.6-luna","grok46":"xai/grok-4.6","opus":"anthropic/claude-opus-5-5","sonnet":"anthropic/claude-sonnet-5-5","fable":"anthropic/claude-fable-5-1","haiku":"anthropic/claude-haiku-5-5","gpt":"openai-codex/gpt-6.1-sol","sol":"openai-codex/gpt-6.1-sol","luna":"openai-codex/gpt-6-luna","astra":"openai-codex/gpt-6-astra","terra":"openai-codex/gpt-5.6-terra","grok":"xai/grok-4.7"};
|
|
7106
7106
|
for (const [alias, ref] of Object.entries(JOHNNESS_MASTER_ALIASES)) DEFAULT_MODEL_ALIASES[alias] = ref;
|
|
7107
7107
|
/* JOHNNESS_MODELS_MASTER:END */
|
|
7108
7108
|
const DEFAULT_MODEL_COST = {
|
|
@@ -8103,7 +8103,7 @@ Object.assign(DEFAULT_MODEL_ALIASES, {
|
|
|
8103
8103
|
grok46: "xai/grok-4.6"
|
|
8104
8104
|
});
|
|
8105
8105
|
/* JOHNNESS_MODELS_MASTER:BEGIN aliases (generated from models/models.json by scripts/models-sync.mjs; edit the master, not this block) */
|
|
8106
|
-
const JOHNNESS_MASTER_ALIASES = {"deepseek":"deepseek/deepseek-flash","deepseek-pro":"deepseek/deepseek-v4-pro","gemini-lite":"google/gemini-3.5-flash-lite","muse":"meta/muse-spark-1.3","muse-spark":"meta/muse-spark-1.3","opus46":"anthropic/claude-opus-4-6","sonnet46":"anthropic/claude-sonnet-4-6","gpt-mini":"openai/gpt-5-mini","gemini":"google/gemini-3.1-pro-preview","gemini-flash":"google/gemini-3.8-flash","gemini-flash-lite":"google/gemini-2.5-flash-lite","flash":"google/gemini-3.8-flash","banana":"google/gemini-nano-banana-2.1","nano-banana":"google/gemini-nano-banana-2.1","nano-banana-pro":"google/gemini-3-pro-image","nano-banana-pro-preview":"google/gemini-3-pro-image-preview","nano-banana-lite":"google/gemini-3.1-flash-lite-image","grok-image":"xai/grok-imagine-image-2.0","image":"openai-codex/gpt-image-2.5-sunburst","image-sunburst":"openai-codex/gpt-image-2.5-sunburst","image-flare":"openai-codex/gpt-image-2.5-flare","image2":"openai-codex/gpt-image-2","sonnet5":"anthropic/claude-sonnet-5","opus5":"anthropic/claude-opus-5","haiku45":"anthropic/claude-haiku-4-5","sol6":"openai-codex/gpt-6-sol","sol56":"openai-codex/gpt-5.6-sol","luna56":"openai-codex/gpt-5.6-luna","grok46":"xai/grok-4.6","opus":"anthropic/claude-opus-5-5","sonnet":"anthropic/claude-sonnet-5-5","fable":"anthropic/claude-fable-5-1","haiku":"anthropic/claude-haiku-5-5","gpt":"openai-codex/gpt-6.1-sol","sol":"openai-codex/gpt-6.1-sol","luna":"openai-codex/gpt-6-luna","astra":"openai-codex/gpt-6-astra","terra":"openai-codex/gpt-5.6-terra","grok":"xai/grok-4.7"};
|
|
8106
|
+
const JOHNNESS_MASTER_ALIASES = {"deepseek":"deepseek/deepseek-flash","deepseek-pro":"deepseek/deepseek-v4-pro","gemini-lite":"google/gemini-3.5-flash-lite","muse":"meta/muse-spark-1.3","muse-spark":"meta/muse-spark-1.3","opus46":"anthropic/claude-opus-4-6","sonnet46":"anthropic/claude-sonnet-4-6","gpt-mini":"openai/gpt-5-mini","gemini":"google/gemini-4-argon","gemini31":"google/gemini-3.1-pro-preview","gemini-flash":"google/gemini-3.8-flash","gemini-flash-lite":"google/gemini-2.5-flash-lite","flash":"google/gemini-3.8-flash","banana":"google/gemini-nano-banana-2.1","nano-banana":"google/gemini-nano-banana-2.1","nano-banana-pro":"google/gemini-3-pro-image","nano-banana-pro-preview":"google/gemini-3-pro-image-preview","nano-banana-lite":"google/gemini-3.1-flash-lite-image","grok-image":"xai/grok-imagine-image-2.0","image":"openai-codex/gpt-image-2.5-sunburst","image-sunburst":"openai-codex/gpt-image-2.5-sunburst","image-flare":"openai-codex/gpt-image-2.5-flare","image2":"openai-codex/gpt-image-2","sonnet5":"anthropic/claude-sonnet-5","opus5":"anthropic/claude-opus-5","haiku45":"anthropic/claude-haiku-4-5","sol6":"openai-codex/gpt-6-sol","sol56":"openai-codex/gpt-5.6-sol","luna56":"openai-codex/gpt-5.6-luna","grok46":"xai/grok-4.6","opus":"anthropic/claude-opus-5-5","sonnet":"anthropic/claude-sonnet-5-5","fable":"anthropic/claude-fable-5-1","haiku":"anthropic/claude-haiku-5-5","gpt":"openai-codex/gpt-6.1-sol","sol":"openai-codex/gpt-6.1-sol","luna":"openai-codex/gpt-6-luna","astra":"openai-codex/gpt-6-astra","terra":"openai-codex/gpt-5.6-terra","grok":"xai/grok-4.7"};
|
|
8107
8107
|
for (const [alias, ref] of Object.entries(JOHNNESS_MASTER_ALIASES)) DEFAULT_MODEL_ALIASES[alias] = ref;
|
|
8108
8108
|
/* JOHNNESS_MODELS_MASTER:END */
|
|
8109
8109
|
const DEFAULT_MODEL_COST = {
|
|
@@ -5232,7 +5232,7 @@ Object.assign(DEFAULT_MODEL_ALIASES, {
|
|
|
5232
5232
|
grok46: "xai/grok-4.6"
|
|
5233
5233
|
});
|
|
5234
5234
|
/* JOHNNESS_MODELS_MASTER:BEGIN aliases (generated from models/models.json by scripts/models-sync.mjs; edit the master, not this block) */
|
|
5235
|
-
const JOHNNESS_MASTER_ALIASES = {"deepseek":"deepseek/deepseek-flash","deepseek-pro":"deepseek/deepseek-v4-pro","gemini-lite":"google/gemini-3.5-flash-lite","muse":"meta/muse-spark-1.3","muse-spark":"meta/muse-spark-1.3","opus46":"anthropic/claude-opus-4-6","sonnet46":"anthropic/claude-sonnet-4-6","gpt-mini":"openai/gpt-5-mini","gemini":"google/gemini-3.1-pro-preview","gemini-flash":"google/gemini-3.8-flash","gemini-flash-lite":"google/gemini-2.5-flash-lite","flash":"google/gemini-3.8-flash","banana":"google/gemini-nano-banana-2.1","nano-banana":"google/gemini-nano-banana-2.1","nano-banana-pro":"google/gemini-3-pro-image","nano-banana-pro-preview":"google/gemini-3-pro-image-preview","nano-banana-lite":"google/gemini-3.1-flash-lite-image","grok-image":"xai/grok-imagine-image-2.0","image":"openai-codex/gpt-image-2.5-sunburst","image-sunburst":"openai-codex/gpt-image-2.5-sunburst","image-flare":"openai-codex/gpt-image-2.5-flare","image2":"openai-codex/gpt-image-2","sonnet5":"anthropic/claude-sonnet-5","opus5":"anthropic/claude-opus-5","haiku45":"anthropic/claude-haiku-4-5","sol6":"openai-codex/gpt-6-sol","sol56":"openai-codex/gpt-5.6-sol","luna56":"openai-codex/gpt-5.6-luna","grok46":"xai/grok-4.6","opus":"anthropic/claude-opus-5-5","sonnet":"anthropic/claude-sonnet-5-5","fable":"anthropic/claude-fable-5-1","haiku":"anthropic/claude-haiku-5-5","gpt":"openai-codex/gpt-6.1-sol","sol":"openai-codex/gpt-6.1-sol","luna":"openai-codex/gpt-6-luna","astra":"openai-codex/gpt-6-astra","terra":"openai-codex/gpt-5.6-terra","grok":"xai/grok-4.7"};
|
|
5235
|
+
const JOHNNESS_MASTER_ALIASES = {"deepseek":"deepseek/deepseek-flash","deepseek-pro":"deepseek/deepseek-v4-pro","gemini-lite":"google/gemini-3.5-flash-lite","muse":"meta/muse-spark-1.3","muse-spark":"meta/muse-spark-1.3","opus46":"anthropic/claude-opus-4-6","sonnet46":"anthropic/claude-sonnet-4-6","gpt-mini":"openai/gpt-5-mini","gemini":"google/gemini-4-argon","gemini31":"google/gemini-3.1-pro-preview","gemini-flash":"google/gemini-3.8-flash","gemini-flash-lite":"google/gemini-2.5-flash-lite","flash":"google/gemini-3.8-flash","banana":"google/gemini-nano-banana-2.1","nano-banana":"google/gemini-nano-banana-2.1","nano-banana-pro":"google/gemini-3-pro-image","nano-banana-pro-preview":"google/gemini-3-pro-image-preview","nano-banana-lite":"google/gemini-3.1-flash-lite-image","grok-image":"xai/grok-imagine-image-2.0","image":"openai-codex/gpt-image-2.5-sunburst","image-sunburst":"openai-codex/gpt-image-2.5-sunburst","image-flare":"openai-codex/gpt-image-2.5-flare","image2":"openai-codex/gpt-image-2","sonnet5":"anthropic/claude-sonnet-5","opus5":"anthropic/claude-opus-5","haiku45":"anthropic/claude-haiku-4-5","sol6":"openai-codex/gpt-6-sol","sol56":"openai-codex/gpt-5.6-sol","luna56":"openai-codex/gpt-5.6-luna","grok46":"xai/grok-4.6","opus":"anthropic/claude-opus-5-5","sonnet":"anthropic/claude-sonnet-5-5","fable":"anthropic/claude-fable-5-1","haiku":"anthropic/claude-haiku-5-5","gpt":"openai-codex/gpt-6.1-sol","sol":"openai-codex/gpt-6.1-sol","luna":"openai-codex/gpt-6-luna","astra":"openai-codex/gpt-6-astra","terra":"openai-codex/gpt-5.6-terra","grok":"xai/grok-4.7"};
|
|
5236
5236
|
for (const [alias, ref] of Object.entries(JOHNNESS_MASTER_ALIASES)) DEFAULT_MODEL_ALIASES[alias] = ref;
|
|
5237
5237
|
/* JOHNNESS_MODELS_MASTER:END */
|
|
5238
5238
|
const DEFAULT_MODEL_COST = {
|
|
@@ -6023,7 +6023,7 @@ Object.assign(DEFAULT_MODEL_ALIASES, {
|
|
|
6023
6023
|
grok46: "xai/grok-4.6"
|
|
6024
6024
|
});
|
|
6025
6025
|
/* JOHNNESS_MODELS_MASTER:BEGIN aliases (generated from models/models.json by scripts/models-sync.mjs; edit the master, not this block) */
|
|
6026
|
-
const JOHNNESS_MASTER_ALIASES = {"deepseek":"deepseek/deepseek-flash","deepseek-pro":"deepseek/deepseek-v4-pro","gemini-lite":"google/gemini-3.5-flash-lite","muse":"meta/muse-spark-1.3","muse-spark":"meta/muse-spark-1.3","opus46":"anthropic/claude-opus-4-6","sonnet46":"anthropic/claude-sonnet-4-6","gpt-mini":"openai/gpt-5-mini","gemini":"google/gemini-3.1-pro-preview","gemini-flash":"google/gemini-3.8-flash","gemini-flash-lite":"google/gemini-2.5-flash-lite","flash":"google/gemini-3.8-flash","banana":"google/gemini-nano-banana-2.1","nano-banana":"google/gemini-nano-banana-2.1","nano-banana-pro":"google/gemini-3-pro-image","nano-banana-pro-preview":"google/gemini-3-pro-image-preview","nano-banana-lite":"google/gemini-3.1-flash-lite-image","grok-image":"xai/grok-imagine-image-2.0","image":"openai-codex/gpt-image-2.5-sunburst","image-sunburst":"openai-codex/gpt-image-2.5-sunburst","image-flare":"openai-codex/gpt-image-2.5-flare","image2":"openai-codex/gpt-image-2","sonnet5":"anthropic/claude-sonnet-5","opus5":"anthropic/claude-opus-5","haiku45":"anthropic/claude-haiku-4-5","sol6":"openai-codex/gpt-6-sol","sol56":"openai-codex/gpt-5.6-sol","luna56":"openai-codex/gpt-5.6-luna","grok46":"xai/grok-4.6","opus":"anthropic/claude-opus-5-5","sonnet":"anthropic/claude-sonnet-5-5","fable":"anthropic/claude-fable-5-1","haiku":"anthropic/claude-haiku-5-5","gpt":"openai-codex/gpt-6.1-sol","sol":"openai-codex/gpt-6.1-sol","luna":"openai-codex/gpt-6-luna","astra":"openai-codex/gpt-6-astra","terra":"openai-codex/gpt-5.6-terra","grok":"xai/grok-4.7"};
|
|
6026
|
+
const JOHNNESS_MASTER_ALIASES = {"deepseek":"deepseek/deepseek-flash","deepseek-pro":"deepseek/deepseek-v4-pro","gemini-lite":"google/gemini-3.5-flash-lite","muse":"meta/muse-spark-1.3","muse-spark":"meta/muse-spark-1.3","opus46":"anthropic/claude-opus-4-6","sonnet46":"anthropic/claude-sonnet-4-6","gpt-mini":"openai/gpt-5-mini","gemini":"google/gemini-4-argon","gemini31":"google/gemini-3.1-pro-preview","gemini-flash":"google/gemini-3.8-flash","gemini-flash-lite":"google/gemini-2.5-flash-lite","flash":"google/gemini-3.8-flash","banana":"google/gemini-nano-banana-2.1","nano-banana":"google/gemini-nano-banana-2.1","nano-banana-pro":"google/gemini-3-pro-image","nano-banana-pro-preview":"google/gemini-3-pro-image-preview","nano-banana-lite":"google/gemini-3.1-flash-lite-image","grok-image":"xai/grok-imagine-image-2.0","image":"openai-codex/gpt-image-2.5-sunburst","image-sunburst":"openai-codex/gpt-image-2.5-sunburst","image-flare":"openai-codex/gpt-image-2.5-flare","image2":"openai-codex/gpt-image-2","sonnet5":"anthropic/claude-sonnet-5","opus5":"anthropic/claude-opus-5","haiku45":"anthropic/claude-haiku-4-5","sol6":"openai-codex/gpt-6-sol","sol56":"openai-codex/gpt-5.6-sol","luna56":"openai-codex/gpt-5.6-luna","grok46":"xai/grok-4.6","opus":"anthropic/claude-opus-5-5","sonnet":"anthropic/claude-sonnet-5-5","fable":"anthropic/claude-fable-5-1","haiku":"anthropic/claude-haiku-5-5","gpt":"openai-codex/gpt-6.1-sol","sol":"openai-codex/gpt-6.1-sol","luna":"openai-codex/gpt-6-luna","astra":"openai-codex/gpt-6-astra","terra":"openai-codex/gpt-5.6-terra","grok":"xai/grok-4.7"};
|
|
6027
6027
|
for (const [alias, ref] of Object.entries(JOHNNESS_MASTER_ALIASES)) DEFAULT_MODEL_ALIASES[alias] = ref;
|
|
6028
6028
|
/* JOHNNESS_MODELS_MASTER:END */
|
|
6029
6029
|
const DEFAULT_MODEL_COST = {
|
|
@@ -4992,7 +4992,7 @@ Object.assign(DEFAULT_MODEL_ALIASES, {
|
|
|
4992
4992
|
grok46: "xai/grok-4.6"
|
|
4993
4993
|
});
|
|
4994
4994
|
/* JOHNNESS_MODELS_MASTER:BEGIN aliases (generated from models/models.json by scripts/models-sync.mjs; edit the master, not this block) */
|
|
4995
|
-
const JOHNNESS_MASTER_ALIASES = {"deepseek":"deepseek/deepseek-flash","deepseek-pro":"deepseek/deepseek-v4-pro","gemini-lite":"google/gemini-3.5-flash-lite","muse":"meta/muse-spark-1.3","muse-spark":"meta/muse-spark-1.3","opus46":"anthropic/claude-opus-4-6","sonnet46":"anthropic/claude-sonnet-4-6","gpt-mini":"openai/gpt-5-mini","gemini":"google/gemini-3.1-pro-preview","gemini-flash":"google/gemini-3.8-flash","gemini-flash-lite":"google/gemini-2.5-flash-lite","flash":"google/gemini-3.8-flash","banana":"google/gemini-nano-banana-2.1","nano-banana":"google/gemini-nano-banana-2.1","nano-banana-pro":"google/gemini-3-pro-image","nano-banana-pro-preview":"google/gemini-3-pro-image-preview","nano-banana-lite":"google/gemini-3.1-flash-lite-image","grok-image":"xai/grok-imagine-image-2.0","image":"openai-codex/gpt-image-2.5-sunburst","image-sunburst":"openai-codex/gpt-image-2.5-sunburst","image-flare":"openai-codex/gpt-image-2.5-flare","image2":"openai-codex/gpt-image-2","sonnet5":"anthropic/claude-sonnet-5","opus5":"anthropic/claude-opus-5","haiku45":"anthropic/claude-haiku-4-5","sol6":"openai-codex/gpt-6-sol","sol56":"openai-codex/gpt-5.6-sol","luna56":"openai-codex/gpt-5.6-luna","grok46":"xai/grok-4.6","opus":"anthropic/claude-opus-5-5","sonnet":"anthropic/claude-sonnet-5-5","fable":"anthropic/claude-fable-5-1","haiku":"anthropic/claude-haiku-5-5","gpt":"openai-codex/gpt-6.1-sol","sol":"openai-codex/gpt-6.1-sol","luna":"openai-codex/gpt-6-luna","astra":"openai-codex/gpt-6-astra","terra":"openai-codex/gpt-5.6-terra","grok":"xai/grok-4.7"};
|
|
4995
|
+
const JOHNNESS_MASTER_ALIASES = {"deepseek":"deepseek/deepseek-flash","deepseek-pro":"deepseek/deepseek-v4-pro","gemini-lite":"google/gemini-3.5-flash-lite","muse":"meta/muse-spark-1.3","muse-spark":"meta/muse-spark-1.3","opus46":"anthropic/claude-opus-4-6","sonnet46":"anthropic/claude-sonnet-4-6","gpt-mini":"openai/gpt-5-mini","gemini":"google/gemini-4-argon","gemini31":"google/gemini-3.1-pro-preview","gemini-flash":"google/gemini-3.8-flash","gemini-flash-lite":"google/gemini-2.5-flash-lite","flash":"google/gemini-3.8-flash","banana":"google/gemini-nano-banana-2.1","nano-banana":"google/gemini-nano-banana-2.1","nano-banana-pro":"google/gemini-3-pro-image","nano-banana-pro-preview":"google/gemini-3-pro-image-preview","nano-banana-lite":"google/gemini-3.1-flash-lite-image","grok-image":"xai/grok-imagine-image-2.0","image":"openai-codex/gpt-image-2.5-sunburst","image-sunburst":"openai-codex/gpt-image-2.5-sunburst","image-flare":"openai-codex/gpt-image-2.5-flare","image2":"openai-codex/gpt-image-2","sonnet5":"anthropic/claude-sonnet-5","opus5":"anthropic/claude-opus-5","haiku45":"anthropic/claude-haiku-4-5","sol6":"openai-codex/gpt-6-sol","sol56":"openai-codex/gpt-5.6-sol","luna56":"openai-codex/gpt-5.6-luna","grok46":"xai/grok-4.6","opus":"anthropic/claude-opus-5-5","sonnet":"anthropic/claude-sonnet-5-5","fable":"anthropic/claude-fable-5-1","haiku":"anthropic/claude-haiku-5-5","gpt":"openai-codex/gpt-6.1-sol","sol":"openai-codex/gpt-6.1-sol","luna":"openai-codex/gpt-6-luna","astra":"openai-codex/gpt-6-astra","terra":"openai-codex/gpt-5.6-terra","grok":"xai/grok-4.7"};
|
|
4996
4996
|
for (const [alias, ref] of Object.entries(JOHNNESS_MASTER_ALIASES)) DEFAULT_MODEL_ALIASES[alias] = ref;
|
|
4997
4997
|
/* JOHNNESS_MODELS_MASTER:END */
|
|
4998
4998
|
const DEFAULT_MODEL_COST = {
|
|
@@ -4996,7 +4996,7 @@ Object.assign(DEFAULT_MODEL_ALIASES, {
|
|
|
4996
4996
|
grok46: "xai/grok-4.6"
|
|
4997
4997
|
});
|
|
4998
4998
|
/* JOHNNESS_MODELS_MASTER:BEGIN aliases (generated from models/models.json by scripts/models-sync.mjs; edit the master, not this block) */
|
|
4999
|
-
const JOHNNESS_MASTER_ALIASES = {"deepseek":"deepseek/deepseek-flash","deepseek-pro":"deepseek/deepseek-v4-pro","gemini-lite":"google/gemini-3.5-flash-lite","muse":"meta/muse-spark-1.3","muse-spark":"meta/muse-spark-1.3","opus46":"anthropic/claude-opus-4-6","sonnet46":"anthropic/claude-sonnet-4-6","gpt-mini":"openai/gpt-5-mini","gemini":"google/gemini-3.1-pro-preview","gemini-flash":"google/gemini-3.8-flash","gemini-flash-lite":"google/gemini-2.5-flash-lite","flash":"google/gemini-3.8-flash","banana":"google/gemini-nano-banana-2.1","nano-banana":"google/gemini-nano-banana-2.1","nano-banana-pro":"google/gemini-3-pro-image","nano-banana-pro-preview":"google/gemini-3-pro-image-preview","nano-banana-lite":"google/gemini-3.1-flash-lite-image","grok-image":"xai/grok-imagine-image-2.0","image":"openai-codex/gpt-image-2.5-sunburst","image-sunburst":"openai-codex/gpt-image-2.5-sunburst","image-flare":"openai-codex/gpt-image-2.5-flare","image2":"openai-codex/gpt-image-2","sonnet5":"anthropic/claude-sonnet-5","opus5":"anthropic/claude-opus-5","haiku45":"anthropic/claude-haiku-4-5","sol6":"openai-codex/gpt-6-sol","sol56":"openai-codex/gpt-5.6-sol","luna56":"openai-codex/gpt-5.6-luna","grok46":"xai/grok-4.6","opus":"anthropic/claude-opus-5-5","sonnet":"anthropic/claude-sonnet-5-5","fable":"anthropic/claude-fable-5-1","haiku":"anthropic/claude-haiku-5-5","gpt":"openai-codex/gpt-6.1-sol","sol":"openai-codex/gpt-6.1-sol","luna":"openai-codex/gpt-6-luna","astra":"openai-codex/gpt-6-astra","terra":"openai-codex/gpt-5.6-terra","grok":"xai/grok-4.7"};
|
|
4999
|
+
const JOHNNESS_MASTER_ALIASES = {"deepseek":"deepseek/deepseek-flash","deepseek-pro":"deepseek/deepseek-v4-pro","gemini-lite":"google/gemini-3.5-flash-lite","muse":"meta/muse-spark-1.3","muse-spark":"meta/muse-spark-1.3","opus46":"anthropic/claude-opus-4-6","sonnet46":"anthropic/claude-sonnet-4-6","gpt-mini":"openai/gpt-5-mini","gemini":"google/gemini-4-argon","gemini31":"google/gemini-3.1-pro-preview","gemini-flash":"google/gemini-3.8-flash","gemini-flash-lite":"google/gemini-2.5-flash-lite","flash":"google/gemini-3.8-flash","banana":"google/gemini-nano-banana-2.1","nano-banana":"google/gemini-nano-banana-2.1","nano-banana-pro":"google/gemini-3-pro-image","nano-banana-pro-preview":"google/gemini-3-pro-image-preview","nano-banana-lite":"google/gemini-3.1-flash-lite-image","grok-image":"xai/grok-imagine-image-2.0","image":"openai-codex/gpt-image-2.5-sunburst","image-sunburst":"openai-codex/gpt-image-2.5-sunburst","image-flare":"openai-codex/gpt-image-2.5-flare","image2":"openai-codex/gpt-image-2","sonnet5":"anthropic/claude-sonnet-5","opus5":"anthropic/claude-opus-5","haiku45":"anthropic/claude-haiku-4-5","sol6":"openai-codex/gpt-6-sol","sol56":"openai-codex/gpt-5.6-sol","luna56":"openai-codex/gpt-5.6-luna","grok46":"xai/grok-4.6","opus":"anthropic/claude-opus-5-5","sonnet":"anthropic/claude-sonnet-5-5","fable":"anthropic/claude-fable-5-1","haiku":"anthropic/claude-haiku-5-5","gpt":"openai-codex/gpt-6.1-sol","sol":"openai-codex/gpt-6.1-sol","luna":"openai-codex/gpt-6-luna","astra":"openai-codex/gpt-6-astra","terra":"openai-codex/gpt-5.6-terra","grok":"xai/grok-4.7"};
|
|
5000
5000
|
for (const [alias, ref] of Object.entries(JOHNNESS_MASTER_ALIASES)) DEFAULT_MODEL_ALIASES[alias] = ref;
|
|
5001
5001
|
/* JOHNNESS_MODELS_MASTER:END */
|
|
5002
5002
|
const DEFAULT_MODEL_COST = {
|
|
@@ -4996,7 +4996,7 @@ Object.assign(DEFAULT_MODEL_ALIASES, {
|
|
|
4996
4996
|
grok46: "xai/grok-4.6"
|
|
4997
4997
|
});
|
|
4998
4998
|
/* JOHNNESS_MODELS_MASTER:BEGIN aliases (generated from models/models.json by scripts/models-sync.mjs; edit the master, not this block) */
|
|
4999
|
-
const JOHNNESS_MASTER_ALIASES = {"deepseek":"deepseek/deepseek-flash","deepseek-pro":"deepseek/deepseek-v4-pro","gemini-lite":"google/gemini-3.5-flash-lite","muse":"meta/muse-spark-1.3","muse-spark":"meta/muse-spark-1.3","opus46":"anthropic/claude-opus-4-6","sonnet46":"anthropic/claude-sonnet-4-6","gpt-mini":"openai/gpt-5-mini","gemini":"google/gemini-3.1-pro-preview","gemini-flash":"google/gemini-3.8-flash","gemini-flash-lite":"google/gemini-2.5-flash-lite","flash":"google/gemini-3.8-flash","banana":"google/gemini-nano-banana-2.1","nano-banana":"google/gemini-nano-banana-2.1","nano-banana-pro":"google/gemini-3-pro-image","nano-banana-pro-preview":"google/gemini-3-pro-image-preview","nano-banana-lite":"google/gemini-3.1-flash-lite-image","grok-image":"xai/grok-imagine-image-2.0","image":"openai-codex/gpt-image-2.5-sunburst","image-sunburst":"openai-codex/gpt-image-2.5-sunburst","image-flare":"openai-codex/gpt-image-2.5-flare","image2":"openai-codex/gpt-image-2","sonnet5":"anthropic/claude-sonnet-5","opus5":"anthropic/claude-opus-5","haiku45":"anthropic/claude-haiku-4-5","sol6":"openai-codex/gpt-6-sol","sol56":"openai-codex/gpt-5.6-sol","luna56":"openai-codex/gpt-5.6-luna","grok46":"xai/grok-4.6","opus":"anthropic/claude-opus-5-5","sonnet":"anthropic/claude-sonnet-5-5","fable":"anthropic/claude-fable-5-1","haiku":"anthropic/claude-haiku-5-5","gpt":"openai-codex/gpt-6.1-sol","sol":"openai-codex/gpt-6.1-sol","luna":"openai-codex/gpt-6-luna","astra":"openai-codex/gpt-6-astra","terra":"openai-codex/gpt-5.6-terra","grok":"xai/grok-4.7"};
|
|
4999
|
+
const JOHNNESS_MASTER_ALIASES = {"deepseek":"deepseek/deepseek-flash","deepseek-pro":"deepseek/deepseek-v4-pro","gemini-lite":"google/gemini-3.5-flash-lite","muse":"meta/muse-spark-1.3","muse-spark":"meta/muse-spark-1.3","opus46":"anthropic/claude-opus-4-6","sonnet46":"anthropic/claude-sonnet-4-6","gpt-mini":"openai/gpt-5-mini","gemini":"google/gemini-4-argon","gemini31":"google/gemini-3.1-pro-preview","gemini-flash":"google/gemini-3.8-flash","gemini-flash-lite":"google/gemini-2.5-flash-lite","flash":"google/gemini-3.8-flash","banana":"google/gemini-nano-banana-2.1","nano-banana":"google/gemini-nano-banana-2.1","nano-banana-pro":"google/gemini-3-pro-image","nano-banana-pro-preview":"google/gemini-3-pro-image-preview","nano-banana-lite":"google/gemini-3.1-flash-lite-image","grok-image":"xai/grok-imagine-image-2.0","image":"openai-codex/gpt-image-2.5-sunburst","image-sunburst":"openai-codex/gpt-image-2.5-sunburst","image-flare":"openai-codex/gpt-image-2.5-flare","image2":"openai-codex/gpt-image-2","sonnet5":"anthropic/claude-sonnet-5","opus5":"anthropic/claude-opus-5","haiku45":"anthropic/claude-haiku-4-5","sol6":"openai-codex/gpt-6-sol","sol56":"openai-codex/gpt-5.6-sol","luna56":"openai-codex/gpt-5.6-luna","grok46":"xai/grok-4.6","opus":"anthropic/claude-opus-5-5","sonnet":"anthropic/claude-sonnet-5-5","fable":"anthropic/claude-fable-5-1","haiku":"anthropic/claude-haiku-5-5","gpt":"openai-codex/gpt-6.1-sol","sol":"openai-codex/gpt-6.1-sol","luna":"openai-codex/gpt-6-luna","astra":"openai-codex/gpt-6-astra","terra":"openai-codex/gpt-5.6-terra","grok":"xai/grok-4.7"};
|
|
5000
5000
|
for (const [alias, ref] of Object.entries(JOHNNESS_MASTER_ALIASES)) DEFAULT_MODEL_ALIASES[alias] = ref;
|
|
5001
5001
|
/* JOHNNESS_MODELS_MASTER:END */
|
|
5002
5002
|
const DEFAULT_MODEL_COST = {
|
|
@@ -4805,7 +4805,7 @@ Object.assign(DEFAULT_MODEL_ALIASES, {
|
|
|
4805
4805
|
grok46: "xai/grok-4.6"
|
|
4806
4806
|
});
|
|
4807
4807
|
/* JOHNNESS_MODELS_MASTER:BEGIN aliases (generated from models/models.json by scripts/models-sync.mjs; edit the master, not this block) */
|
|
4808
|
-
const JOHNNESS_MASTER_ALIASES = {"deepseek":"deepseek/deepseek-flash","deepseek-pro":"deepseek/deepseek-v4-pro","gemini-lite":"google/gemini-3.5-flash-lite","muse":"meta/muse-spark-1.3","muse-spark":"meta/muse-spark-1.3","opus46":"anthropic/claude-opus-4-6","sonnet46":"anthropic/claude-sonnet-4-6","gpt-mini":"openai/gpt-5-mini","gemini":"google/gemini-3.1-pro-preview","gemini-flash":"google/gemini-3.8-flash","gemini-flash-lite":"google/gemini-2.5-flash-lite","flash":"google/gemini-3.8-flash","banana":"google/gemini-nano-banana-2.1","nano-banana":"google/gemini-nano-banana-2.1","nano-banana-pro":"google/gemini-3-pro-image","nano-banana-pro-preview":"google/gemini-3-pro-image-preview","nano-banana-lite":"google/gemini-3.1-flash-lite-image","grok-image":"xai/grok-imagine-image-2.0","image":"openai-codex/gpt-image-2.5-sunburst","image-sunburst":"openai-codex/gpt-image-2.5-sunburst","image-flare":"openai-codex/gpt-image-2.5-flare","image2":"openai-codex/gpt-image-2","sonnet5":"anthropic/claude-sonnet-5","opus5":"anthropic/claude-opus-5","haiku45":"anthropic/claude-haiku-4-5","sol6":"openai-codex/gpt-6-sol","sol56":"openai-codex/gpt-5.6-sol","luna56":"openai-codex/gpt-5.6-luna","grok46":"xai/grok-4.6","opus":"anthropic/claude-opus-5-5","sonnet":"anthropic/claude-sonnet-5-5","fable":"anthropic/claude-fable-5-1","haiku":"anthropic/claude-haiku-5-5","gpt":"openai-codex/gpt-6.1-sol","sol":"openai-codex/gpt-6.1-sol","luna":"openai-codex/gpt-6-luna","astra":"openai-codex/gpt-6-astra","terra":"openai-codex/gpt-5.6-terra","grok":"xai/grok-4.7"};
|
|
4808
|
+
const JOHNNESS_MASTER_ALIASES = {"deepseek":"deepseek/deepseek-flash","deepseek-pro":"deepseek/deepseek-v4-pro","gemini-lite":"google/gemini-3.5-flash-lite","muse":"meta/muse-spark-1.3","muse-spark":"meta/muse-spark-1.3","opus46":"anthropic/claude-opus-4-6","sonnet46":"anthropic/claude-sonnet-4-6","gpt-mini":"openai/gpt-5-mini","gemini":"google/gemini-4-argon","gemini31":"google/gemini-3.1-pro-preview","gemini-flash":"google/gemini-3.8-flash","gemini-flash-lite":"google/gemini-2.5-flash-lite","flash":"google/gemini-3.8-flash","banana":"google/gemini-nano-banana-2.1","nano-banana":"google/gemini-nano-banana-2.1","nano-banana-pro":"google/gemini-3-pro-image","nano-banana-pro-preview":"google/gemini-3-pro-image-preview","nano-banana-lite":"google/gemini-3.1-flash-lite-image","grok-image":"xai/grok-imagine-image-2.0","image":"openai-codex/gpt-image-2.5-sunburst","image-sunburst":"openai-codex/gpt-image-2.5-sunburst","image-flare":"openai-codex/gpt-image-2.5-flare","image2":"openai-codex/gpt-image-2","sonnet5":"anthropic/claude-sonnet-5","opus5":"anthropic/claude-opus-5","haiku45":"anthropic/claude-haiku-4-5","sol6":"openai-codex/gpt-6-sol","sol56":"openai-codex/gpt-5.6-sol","luna56":"openai-codex/gpt-5.6-luna","grok46":"xai/grok-4.6","opus":"anthropic/claude-opus-5-5","sonnet":"anthropic/claude-sonnet-5-5","fable":"anthropic/claude-fable-5-1","haiku":"anthropic/claude-haiku-5-5","gpt":"openai-codex/gpt-6.1-sol","sol":"openai-codex/gpt-6.1-sol","luna":"openai-codex/gpt-6-luna","astra":"openai-codex/gpt-6-astra","terra":"openai-codex/gpt-5.6-terra","grok":"xai/grok-4.7"};
|
|
4809
4809
|
for (const [alias, ref] of Object.entries(JOHNNESS_MASTER_ALIASES)) DEFAULT_MODEL_ALIASES[alias] = ref;
|
|
4810
4810
|
/* JOHNNESS_MODELS_MASTER:END */
|
|
4811
4811
|
const DEFAULT_MODEL_COST = {
|
package/docs/MODELS.md
CHANGED
|
@@ -15,6 +15,7 @@ versioned alias (`aliases`). `scripts/models-sync.mjs` generates every copy in t
|
|
|
15
15
|
| `supportsXhigh()` for every catalog model, `johnnessApplyModelRules()` | pi-ai `models.js` (vendor + installed) |
|
|
16
16
|
| Effort clamping and temperature/top_p dropping on the wire | `openai-responses.js`, `openai-codex-responses.js` (vendor + installed) and family 53's snapshot |
|
|
17
17
|
| Anthropic adaptive thinking, effort, thinking-off and temperature rules (`anthropic rules` block) | `providers/anthropic.js` (vendor + installed) |
|
|
18
|
+
| Google native thinking levels, default effort, sampling/cache rules and ordinary streaming cap (`google rules` / `google simple rules` blocks) | `providers/google.js` (vendor + installed) |
|
|
18
19
|
| `DEFAULT_MODEL_ALIASES` (the shipped alias table) | 14 bundles (`model-selection-*`, `config-*`, `model-auth-*`, `auth-profiles-*`, `daemon-cli`, `discord`) |
|
|
19
20
|
| `XHIGH_MODEL_REFS` (`/think xhigh` gate) | 12 `thinking-*` copies plus the Telegram and Mattermost bundles |
|
|
20
21
|
| Image aliases (every alias whose target has `imageGeneration: true`: `image`, `image2`, `image-flare`, `nano-banana`, `nano-banana-pro`, `nano-banana-lite`, `grok-image`, ...) | `dist/image-generate.js` (the `image_generate` tool's `model` param) |
|
|
@@ -44,6 +45,18 @@ markers. Never edit inside them. The older hand-written literals stay in place b
|
|
|
44
45
|
`low`); `harness.temperature: "drop"` strips temperature/top_p/top_k. Models without these keys
|
|
45
46
|
keep the adapter's historical gates. Probe `enabled`, `disabled` and `temperature` live before
|
|
46
47
|
setting them (Claude Haiku 5.5, 2026-10-08, was the first user).
|
|
48
|
+
- Google native (`google-generative-ai`) entries can opt into `harness.thinking: "level"`,
|
|
49
|
+
`thinkingDefault` and accepted `efforts` (low/medium/high). The real adapter sends
|
|
50
|
+
`thinkingConfig.thinkingLevel`, never a legacy `thinkingBudget`; `temperature: "drop"` omits
|
|
51
|
+
ignored sampling parameters. Thinking off preserves the provider default on these always-thinking
|
|
52
|
+
models. `cache: "implicit-only"` refuses explicit `cachedContent`; no cache creation is performed.
|
|
53
|
+
The ordinary streaming `maxTokens` cap is enforced, with no continuation/background claim.
|
|
54
|
+
Models without those opt-in rules retain exactly their historical behavior. First user: Gemini
|
|
55
|
+
4 Argon (2026.10.14), 65,536 per stream vs native GET's 32,768 direct non-streaming REST limit.
|
|
56
|
+
The 1,048,576-token window is shared by input, thinking and output. The pinned SDK lacks
|
|
57
|
+
automatic continuation, so do not advertise 1M decode. Its introductory Standard rates expire
|
|
58
|
+
Nov 30, 2026; the Dec 1 and Batch/Flex/Priority rates are documented in `harness.notes`, not
|
|
59
|
+
incorrectly folded into a single flat charge. New wire rules must have real adapter regressions.
|
|
47
60
|
- `cost` is flat. When a model's official price is tiered (for example by prompt length), use the
|
|
48
61
|
base tier and write the other tier in `harness.notes` and the CHANGELOG.
|
|
49
62
|
- Image models (`imageGeneration: true`, `chat: false`) are reached through `image_generate`. Point a
|
package/models/models.json
CHANGED
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"about": "Master model file for John's Harness (family 83). Every shipped catalog entry, wire rule and alias lives here; scripts/models-sync.mjs generates every copy in the tree from it. See docs/MODELS.md.",
|
|
3
|
-
"fields": "providers.<provider>.<id>: the pi-ai catalog card (name, api, baseUrl, reasoning, input, cost per MTok, contextWindow = the window the harness uses, maxTokens). harness.xhigh: /think xhigh and wire xhigh allowed. harness.efforts: reasoning efforts the API accepts (others map to the nearest accepted). harness.temperature: drop | drop-unless-effort-none. Anthropic (anthropic-messages) only: harness.thinking adaptive (adaptive thinking + output_config.effort instead of budget_tokens), harness.thinkingOff disabled (thinking.type disabled when /think is off), harness.efforts low..max, harness.temperature drop (also top_p/top_k). harness.nativeContextWindow/source/checked/notes: documentation only. cost is flat; tiered official prices keep the base tier here and the rest in harness.notes.",
|
|
4
|
-
"imageGenerationDefault": {
|
|
3
|
+
"fields": "providers.<provider>.<id>: the pi-ai catalog card (name, api, baseUrl, reasoning, input, cost per MTok, contextWindow = the window the harness uses, maxTokens). harness.xhigh: /think xhigh and wire xhigh allowed. harness.efforts: reasoning efforts the API accepts (others map to the nearest accepted). harness.temperature: drop | drop-unless-effort-none. Anthropic (anthropic-messages) only: harness.thinking adaptive (adaptive thinking + output_config.effort instead of budget_tokens), harness.thinkingOff disabled (thinking.type disabled when /think is off), harness.efforts low..max, harness.temperature drop (also top_p/top_k). harness.nativeContextWindow/source/checked/notes: documentation only. cost is flat; tiered official prices keep the base tier here and the rest in harness.notes. Google native (google-generative-ai): harness.thinking level sends thinkingConfig.thinkingLevel rather than thinkingBudget; thinkingDefault plus efforts governs all /think levels including the non-disableable provider default; cache implicit-only refuses explicit cachedContent. Ordinary per-stream maxTokens only; long decode/continuation is not implemented.",
|
|
4
|
+
"imageGenerationDefault": {
|
|
5
|
+
"primary": "openai-codex/gpt-image-2.5-sunburst",
|
|
6
|
+
"fallbacks": ["openai-codex/gpt-image-2"]
|
|
7
|
+
},
|
|
5
8
|
"latest": {
|
|
6
9
|
"opus": {"provider":"anthropic","match":"^claude-opus-(\\d+)(?:-(\\d{1,2}))?$"},
|
|
7
10
|
"sonnet": {"provider":"anthropic","match":"^claude-sonnet-(\\d+)(?:-(\\d{1,2}))?$"},
|
|
@@ -23,7 +26,8 @@
|
|
|
23
26
|
"opus46": "anthropic/claude-opus-4-6",
|
|
24
27
|
"sonnet46": "anthropic/claude-sonnet-4-6",
|
|
25
28
|
"gpt-mini": "openai/gpt-5-mini",
|
|
26
|
-
"gemini": "google/gemini-
|
|
29
|
+
"gemini": "google/gemini-4-argon",
|
|
30
|
+
"gemini31": "google/gemini-3.1-pro-preview",
|
|
27
31
|
"gemini-flash": "google/gemini-3.8-flash",
|
|
28
32
|
"gemini-flash-lite": "google/gemini-2.5-flash-lite",
|
|
29
33
|
"flash": "google/gemini-3.8-flash",
|
|
@@ -249,6 +253,7 @@
|
|
|
249
253
|
"grok-code-fast-1": {"name":"Grok Code Fast 1","api":"openai-completions","baseUrl":"https://api.individual.githubcopilot.com","headers":{"User-Agent":"GitHubCopilotChat/0.35.0","Editor-Version":"vscode/1.107.0","Editor-Plugin-Version":"copilot-chat/0.35.0","Copilot-Integration-Id":"vscode-chat"},"compat":{"supportsStore":false,"supportsDeveloperRole":false,"supportsReasoningEffort":false},"reasoning":true,"input":["text"],"cost":{"input":0,"output":0,"cacheRead":0,"cacheWrite":0},"contextWindow":128000,"maxTokens":64000}
|
|
250
254
|
},
|
|
251
255
|
"google": {
|
|
256
|
+
"gemini-4-argon": {"name":"Gemini 4 Argon","api":"google-generative-ai","baseUrl":"https://generativelanguage.googleapis.com/v1beta","reasoning":true,"input":["text","image"],"cost":{"input":2,"output":10,"cacheRead":0.1,"cacheWrite":0},"contextWindow":1048576,"maxTokens":65536,"harness":{"xhigh":false,"thinking":"level","thinkingDefault":"medium","efforts":["low","medium","high"],"temperature":"drop","cache":"implicit-only","nativeContextWindow":1048576,"source":"https://ai.google.dev/gemini-api/docs/changelog#10-13-2026 ; https://ai.google.dev/gemini-api/docs/models/gemini-4-argon ; https://ai.google.dev/gemini-api/docs/latest-model ; https://ai.google.dev/gemini-api/docs/generate-content/thinking ; https://ai.google.dev/gemini-api/docs/generate-content/long-decode ; https://ai.google.dev/gemini-api/docs/pricing#gemini-4-argon ; https://deepmind.google/models/model-cards/gemini-4-argon/","checked":"2026-10-14","notes":"GA Oct13; knowledge cutoff March2026. Unified1048576 window shared by input, thinking and output (not additive); API caps output to remaining context. Native GET32768 is direct non-streaming REST limit; official GenerateContent docs support65536 per stream (harness uses generateContentStream). Current SDK1.x has no automatic continuation: >65536 output rejected locally; no long-decode/background/Interactions support claimed. Thinking low/medium(default)/high; cannot disable thinking (/think off preserves medium). minimal/none map low, xhigh/max map high; no native xhigh. thinkingBudget unsupported; temperature/top_p/top_k ignored by API and omitted. Native inputs text/image/video/audio/PDF, text output; harness exposes text/image only. Function calling and structured outputs supported; native grounding/code execution/computer use are not exposed by this adapter. Implicit caching only, >=4096 prompt tokens,95% cache-hit discount; explicit cachedContents unsupported, cacheWrite0 N/A. Paid-only; not Free tier or Google AI Pro. Standard perMTok through Nov30 2026: input2/output10(including thoughts)/cache0.10; starting Dec1:4/20/0.20. Catalog estimates hold introductory Standard rates; update this entry at expiry. Batch and Flex1/5/0.05 ->2/10/0.10; Priority3.60/18/0.18 ->7.20/36/0.36. No long-context premium. Grounding Search/Maps each5000 free monthly requests shared across Gemini3+ then14USD/1000 queries; not included in flat token estimates."}},
|
|
252
257
|
"gemini-3.5-flash-lite": {"name":"Gemini 3.5 Flash-Lite","api":"google-generative-ai","baseUrl":"https://generativelanguage.googleapis.com/v1beta","reasoning":true,"input":["text","image"],"cost":{"input":0.3,"output":2.5,"cacheRead":0.03,"cacheWrite":0},"contextWindow":1048576,"maxTokens":65536},
|
|
253
258
|
"gemini-1.5-flash": {"name":"Gemini 1.5 Flash","api":"google-generative-ai","baseUrl":"https://generativelanguage.googleapis.com/v1beta","reasoning":false,"input":["text","image"],"cost":{"input":0.075,"output":0.3,"cacheRead":0.01875,"cacheWrite":0},"contextWindow":1000000,"maxTokens":8192},
|
|
254
259
|
"gemini-1.5-flash-8b": {"name":"Gemini 1.5 Flash-8B","api":"google-generative-ai","baseUrl":"https://generativelanguage.googleapis.com/v1beta","reasoning":false,"input":["text","image"],"cost":{"input":0.0375,"output":0.15,"cacheRead":0.01,"cacheWrite":0},"contextWindow":1000000,"maxTokens":8192},
|
|
@@ -13843,6 +13843,7 @@ const JOHNNESS_MODELS_MASTER = {
|
|
|
13843
13843
|
"grok-code-fast-1":{"id":"grok-code-fast-1","name":"Grok Code Fast 1","api":"openai-completions","provider":"github-copilot","baseUrl":"https://api.individual.githubcopilot.com","headers":{"User-Agent":"GitHubCopilotChat/0.35.0","Editor-Version":"vscode/1.107.0","Editor-Plugin-Version":"copilot-chat/0.35.0","Copilot-Integration-Id":"vscode-chat"},"compat":{"supportsStore":false,"supportsDeveloperRole":false,"supportsReasoningEffort":false},"reasoning":true,"input":["text"],"cost":{"input":0,"output":0,"cacheRead":0,"cacheWrite":0},"contextWindow":128000,"maxTokens":64000},
|
|
13844
13844
|
},
|
|
13845
13845
|
"google": {
|
|
13846
|
+
"gemini-4-argon":{"id":"gemini-4-argon","name":"Gemini 4 Argon","api":"google-generative-ai","provider":"google","baseUrl":"https://generativelanguage.googleapis.com/v1beta","reasoning":true,"input":["text","image"],"cost":{"input":2,"output":10,"cacheRead":0.1,"cacheWrite":0},"contextWindow":1048576,"maxTokens":65536},
|
|
13846
13847
|
"gemini-3.5-flash-lite":{"id":"gemini-3.5-flash-lite","name":"Gemini 3.5 Flash-Lite","api":"google-generative-ai","provider":"google","baseUrl":"https://generativelanguage.googleapis.com/v1beta","reasoning":true,"input":["text","image"],"cost":{"input":0.3,"output":2.5,"cacheRead":0.03,"cacheWrite":0},"contextWindow":1048576,"maxTokens":65536},
|
|
13847
13848
|
"gemini-1.5-flash":{"id":"gemini-1.5-flash","name":"Gemini 1.5 Flash","api":"google-generative-ai","provider":"google","baseUrl":"https://generativelanguage.googleapis.com/v1beta","reasoning":false,"input":["text","image"],"cost":{"input":0.075,"output":0.3,"cacheRead":0.01875,"cacheWrite":0},"contextWindow":1000000,"maxTokens":8192},
|
|
13848
13849
|
"gemini-1.5-flash-8b":{"id":"gemini-1.5-flash-8b","name":"Gemini 1.5 Flash-8B","api":"google-generative-ai","provider":"google","baseUrl":"https://generativelanguage.googleapis.com/v1beta","reasoning":false,"input":["text","image"],"cost":{"input":0.0375,"output":0.15,"cacheRead":0.01,"cacheWrite":0},"contextWindow":1000000,"maxTokens":8192},
|
|
@@ -14500,6 +14501,6 @@ const JOHNNESS_MODELS_MASTER = {
|
|
|
14500
14501
|
};
|
|
14501
14502
|
for (const provider of Object.keys(MODELS)) delete MODELS[provider];
|
|
14502
14503
|
Object.assign(MODELS, JOHNNESS_MODELS_MASTER);
|
|
14503
|
-
export const JOHNNESS_MODEL_RULES = {"deepseek/deepseek-flash":{"xhigh":true},"deepseek/deepseek-v4-pro":{"xhigh":true},"meta/muse-spark-1.3":{"xhigh":true},"meta/muse-spark-1.2":{"xhigh":true},"anthropic/claude-fable-5-1":{"xhigh":true},"anthropic/claude-sonnet-5-5":{"xhigh":true},"anthropic/claude-opus-5-5":{"xhigh":true},"anthropic/claude-haiku-5-5":{"xhigh":true,"efforts":["low","medium","high","xhigh","max"],"temperature":"drop"},"anthropic/claude-opus-5":{"xhigh":true},"anthropic/claude-sonnet-5":{"xhigh":true},"anthropic/claude-fable-5":{"xhigh":true},"anthropic/claude-opus-4-6":{"xhigh":true},"azure-openai-responses/gpt-5.2":{"xhigh":true},"azure-openai-responses/gpt-5.2-chat-latest":{"xhigh":true},"azure-openai-responses/gpt-5.2-codex":{"xhigh":true},"azure-openai-responses/gpt-5.2-pro":{"xhigh":true},"azure-openai-responses/gpt-5.3-codex":{"xhigh":true},"azure-openai-responses/gpt-5.3-codex-spark":{"xhigh":true},"github-copilot/claude-opus-4.6":{"xhigh":true},"github-copilot/gpt-5.2":{"xhigh":true},"github-copilot/gpt-5.2-codex":{"xhigh":true},"openai/gpt-5.2":{"xhigh":true},"openai/gpt-5.2-chat-latest":{"xhigh":true},"openai/gpt-5.2-codex":{"xhigh":true},"openai/gpt-5.2-pro":{"xhigh":true},"openai/gpt-5.3-codex":{"xhigh":true},"openai/gpt-5.3-codex-spark":{"xhigh":true},"openai/gpt-6-astra":{"xhigh":true,"efforts":["low","medium","high","xhigh","max"],"temperature":"drop"},"openai/gpt-6.1-sol":{"xhigh":true,"efforts":["low","medium","high","xhigh","max"],"temperature":"drop"},"openai/gpt-6-sol":{"xhigh":true,"efforts":["none","low","medium","high","xhigh","max"],"temperature":"drop-unless-effort-none"},"openai/gpt-6-luna":{"xhigh":true,"efforts":["none","low","medium","high","xhigh","max"],"temperature":"drop-unless-effort-none"},"openai/gpt-5.6-sol":{"xhigh":true,"temperature":"drop-unless-effort-none"},"openai/gpt-5.6-terra":{"xhigh":true,"temperature":"drop-unless-effort-none"},"openai/gpt-5.6-luna":{"xhigh":true,"temperature":"drop-unless-effort-none"},"openai-codex/gpt-5.2":{"xhigh":true},"openai-codex/gpt-5.2-codex":{"xhigh":true},"openai-codex/gpt-5.3-codex":{"xhigh":true},"openai-codex/gpt-5.3-codex-spark":{"xhigh":true},"openai-codex/gpt-6.1-sol":{"xhigh":true,"efforts":["low","medium","high","xhigh","max"],"temperature":"drop"},"openai-codex/gpt-6-sol":{"xhigh":true,"efforts":["none","low","medium","high","xhigh","max"],"temperature":"drop-unless-effort-none"},"openai-codex/gpt-6-luna":{"xhigh":true,"efforts":["none","low","medium","high","xhigh","max"],"temperature":"drop-unless-effort-none"},"openai-codex/gpt-6-astra":{"xhigh":true,"efforts":["low","medium","high","xhigh","max"],"temperature":"drop"},"openai-codex/gpt-5.6-sol":{"xhigh":true,"temperature":"drop-unless-effort-none"},"openai-codex/gpt-5.6-terra":{"xhigh":true,"temperature":"drop-unless-effort-none"},"openai-codex/gpt-5.6-luna":{"xhigh":true,"temperature":"drop-unless-effort-none"},"opencode/claude-opus-4-6":{"xhigh":true},"opencode/gpt-5.2":{"xhigh":true},"opencode/gpt-5.2-codex":{"xhigh":true},"opencode/gpt-5.3-codex":{"xhigh":true},"openrouter/openai/gpt-5.2":{"xhigh":true},"openrouter/openai/gpt-5.2-chat":{"xhigh":true},"openrouter/openai/gpt-5.2-codex":{"xhigh":true},"openrouter/openai/gpt-5.2-pro":{"xhigh":true},"openrouter/openai/gpt-5.3-codex":{"xhigh":true},"vercel-ai-gateway/anthropic/claude-opus-4.6":{"xhigh":true},"vercel-ai-gateway/openai/gpt-5.2":{"xhigh":true},"vercel-ai-gateway/openai/gpt-5.2-chat":{"xhigh":true},"vercel-ai-gateway/openai/gpt-5.2-codex":{"xhigh":true},"vercel-ai-gateway/openai/gpt-5.2-pro":{"xhigh":true},"vercel-ai-gateway/openai/gpt-5.3-codex":{"xhigh":true},"xai/grok-4.7":{"xhigh":true},"xai/grok-4.6":{"xhigh":true}};
|
|
14504
|
+
export const JOHNNESS_MODEL_RULES = {"deepseek/deepseek-flash":{"xhigh":true},"deepseek/deepseek-v4-pro":{"xhigh":true},"meta/muse-spark-1.3":{"xhigh":true},"meta/muse-spark-1.2":{"xhigh":true},"anthropic/claude-fable-5-1":{"xhigh":true},"anthropic/claude-sonnet-5-5":{"xhigh":true},"anthropic/claude-opus-5-5":{"xhigh":true},"anthropic/claude-haiku-5-5":{"xhigh":true,"efforts":["low","medium","high","xhigh","max"],"temperature":"drop"},"anthropic/claude-opus-5":{"xhigh":true},"anthropic/claude-sonnet-5":{"xhigh":true},"anthropic/claude-fable-5":{"xhigh":true},"anthropic/claude-opus-4-6":{"xhigh":true},"azure-openai-responses/gpt-5.2":{"xhigh":true},"azure-openai-responses/gpt-5.2-chat-latest":{"xhigh":true},"azure-openai-responses/gpt-5.2-codex":{"xhigh":true},"azure-openai-responses/gpt-5.2-pro":{"xhigh":true},"azure-openai-responses/gpt-5.3-codex":{"xhigh":true},"azure-openai-responses/gpt-5.3-codex-spark":{"xhigh":true},"github-copilot/claude-opus-4.6":{"xhigh":true},"github-copilot/gpt-5.2":{"xhigh":true},"github-copilot/gpt-5.2-codex":{"xhigh":true},"google/gemini-4-argon":{"efforts":["low","medium","high"],"temperature":"drop"},"openai/gpt-5.2":{"xhigh":true},"openai/gpt-5.2-chat-latest":{"xhigh":true},"openai/gpt-5.2-codex":{"xhigh":true},"openai/gpt-5.2-pro":{"xhigh":true},"openai/gpt-5.3-codex":{"xhigh":true},"openai/gpt-5.3-codex-spark":{"xhigh":true},"openai/gpt-6-astra":{"xhigh":true,"efforts":["low","medium","high","xhigh","max"],"temperature":"drop"},"openai/gpt-6.1-sol":{"xhigh":true,"efforts":["low","medium","high","xhigh","max"],"temperature":"drop"},"openai/gpt-6-sol":{"xhigh":true,"efforts":["none","low","medium","high","xhigh","max"],"temperature":"drop-unless-effort-none"},"openai/gpt-6-luna":{"xhigh":true,"efforts":["none","low","medium","high","xhigh","max"],"temperature":"drop-unless-effort-none"},"openai/gpt-5.6-sol":{"xhigh":true,"temperature":"drop-unless-effort-none"},"openai/gpt-5.6-terra":{"xhigh":true,"temperature":"drop-unless-effort-none"},"openai/gpt-5.6-luna":{"xhigh":true,"temperature":"drop-unless-effort-none"},"openai-codex/gpt-5.2":{"xhigh":true},"openai-codex/gpt-5.2-codex":{"xhigh":true},"openai-codex/gpt-5.3-codex":{"xhigh":true},"openai-codex/gpt-5.3-codex-spark":{"xhigh":true},"openai-codex/gpt-6.1-sol":{"xhigh":true,"efforts":["low","medium","high","xhigh","max"],"temperature":"drop"},"openai-codex/gpt-6-sol":{"xhigh":true,"efforts":["none","low","medium","high","xhigh","max"],"temperature":"drop-unless-effort-none"},"openai-codex/gpt-6-luna":{"xhigh":true,"efforts":["none","low","medium","high","xhigh","max"],"temperature":"drop-unless-effort-none"},"openai-codex/gpt-6-astra":{"xhigh":true,"efforts":["low","medium","high","xhigh","max"],"temperature":"drop"},"openai-codex/gpt-5.6-sol":{"xhigh":true,"temperature":"drop-unless-effort-none"},"openai-codex/gpt-5.6-terra":{"xhigh":true,"temperature":"drop-unless-effort-none"},"openai-codex/gpt-5.6-luna":{"xhigh":true,"temperature":"drop-unless-effort-none"},"opencode/claude-opus-4-6":{"xhigh":true},"opencode/gpt-5.2":{"xhigh":true},"opencode/gpt-5.2-codex":{"xhigh":true},"opencode/gpt-5.3-codex":{"xhigh":true},"openrouter/openai/gpt-5.2":{"xhigh":true},"openrouter/openai/gpt-5.2-chat":{"xhigh":true},"openrouter/openai/gpt-5.2-codex":{"xhigh":true},"openrouter/openai/gpt-5.2-pro":{"xhigh":true},"openrouter/openai/gpt-5.3-codex":{"xhigh":true},"vercel-ai-gateway/anthropic/claude-opus-4.6":{"xhigh":true},"vercel-ai-gateway/openai/gpt-5.2":{"xhigh":true},"vercel-ai-gateway/openai/gpt-5.2-chat":{"xhigh":true},"vercel-ai-gateway/openai/gpt-5.2-codex":{"xhigh":true},"vercel-ai-gateway/openai/gpt-5.2-pro":{"xhigh":true},"vercel-ai-gateway/openai/gpt-5.3-codex":{"xhigh":true},"xai/grok-4.7":{"xhigh":true},"xai/grok-4.6":{"xhigh":true}};
|
|
14504
14505
|
/* JOHNNESS_MODELS_MASTER:END */
|
|
14505
14506
|
//# sourceMappingURL=models.generated.js.map
|
|
@@ -5,6 +5,39 @@ import { AssistantMessageEventStream } from "../utils/event-stream.js";
|
|
|
5
5
|
import { sanitizeSurrogates } from "../utils/sanitize-unicode.js";
|
|
6
6
|
import { convertMessages, convertTools, isThinkingPart, mapStopReason, mapToolChoice, retainThoughtSignature, } from "./google-shared.js";
|
|
7
7
|
import { buildBaseOptions, clampReasoning } from "./simple-options.js";
|
|
8
|
+
/* JOHNNESS_MODELS_MASTER:BEGIN google rules (generated from models/models.json by scripts/models-sync.mjs; edit the master, not this block) */
|
|
9
|
+
const JOHNNESS_GOOGLE_RULES = Object.freeze({"google/gemini-4-argon":{"efforts":["low","medium","high"],"temperature":"drop","thinking":"level","thinkingDefault":"medium","cache":"implicit-only"}});
|
|
10
|
+
import { johnnessNearestEffort } from "../models.js";
|
|
11
|
+
const johnnessGoogleBuildParams = buildParams;
|
|
12
|
+
buildParams = function(model, context, options) {
|
|
13
|
+
const rule = JOHNNESS_GOOGLE_RULES[model.provider + "/" + model.id];
|
|
14
|
+
if (!rule) return johnnessGoogleBuildParams(model, context, options);
|
|
15
|
+
const params = johnnessGoogleBuildParams(model, context, options);
|
|
16
|
+
if (rule.temperature === "drop") {
|
|
17
|
+
delete params.config.temperature;
|
|
18
|
+
delete params.config.topP;
|
|
19
|
+
delete params.config.topK;
|
|
20
|
+
}
|
|
21
|
+
if (rule.cache === "implicit-only" && options?.cachedContent !== undefined) {
|
|
22
|
+
throw new Error("This model supports implicit caching only; cachedContent is unsupported.");
|
|
23
|
+
}
|
|
24
|
+
if (rule.thinking === "level") {
|
|
25
|
+
if (options?.thinking?.budgetTokens !== undefined) throw new Error("This model uses thinkingLevel, not thinkingBudget.");
|
|
26
|
+
const requested = options?.thinking?.enabled === false ? undefined : options?.thinking?.level;
|
|
27
|
+
if (requested !== undefined && !["none","minimal","low","medium","high","xhigh","max"].includes(String(requested).toLowerCase())) throw new Error("Unsupported thinking level: " + requested);
|
|
28
|
+
const effort = requested === undefined ? rule.thinkingDefault : johnnessNearestEffort(rule.efforts, String(requested).toLowerCase());
|
|
29
|
+
if (!rule.efforts.includes(effort)) throw new Error("Unsupported thinking level: " + requested);
|
|
30
|
+
params.config.thinkingConfig = { includeThoughts: true, thinkingLevel: effort.toUpperCase() };
|
|
31
|
+
// A single streaming hop only. Never advertise continuation/background support.
|
|
32
|
+
const cap = options?.maxTokens ?? model.maxTokens;
|
|
33
|
+
if (!Number.isInteger(cap) || cap <= 0 || cap > model.maxTokens) {
|
|
34
|
+
throw new Error("This transport supports at most " + model.maxTokens + " output tokens per stream; long decode/continuation is not implemented.");
|
|
35
|
+
}
|
|
36
|
+
params.config.maxOutputTokens = cap;
|
|
37
|
+
}
|
|
38
|
+
return params;
|
|
39
|
+
};
|
|
40
|
+
/* JOHNNESS_MODELS_MASTER:END */
|
|
8
41
|
// Counter for generating unique tool call IDs
|
|
9
42
|
let toolCallCounter = 0;
|
|
10
43
|
export const streamGoogle = (model, context, options) => {
|
|
@@ -213,6 +246,18 @@ export const streamSimpleGoogle = (model, context, options) => {
|
|
|
213
246
|
throw new Error(`No API key for provider: ${model.provider}`);
|
|
214
247
|
}
|
|
215
248
|
const base = buildBaseOptions(model, options, apiKey);
|
|
249
|
+
/* JOHNNESS_MODELS_MASTER:BEGIN google simple rules (generated from models/models.json by scripts/models-sync.mjs; edit the master, not this block) */
|
|
250
|
+
const rule = JOHNNESS_GOOGLE_RULES[model.provider + "/" + model.id];
|
|
251
|
+
if (rule?.thinking === "level") {
|
|
252
|
+
if (options?.reasoning !== undefined && !["none","minimal","low","medium","high","xhigh","max"].includes(options.reasoning)) throw new Error("Unsupported reasoning effort: " + options.reasoning);
|
|
253
|
+
const effort = options?.reasoning === undefined ? rule.thinkingDefault : johnnessNearestEffort(rule.efforts, options.reasoning);
|
|
254
|
+
return streamGoogle(model, context, {
|
|
255
|
+
...base,
|
|
256
|
+
maxTokens: options?.maxTokens ?? model.maxTokens,
|
|
257
|
+
thinking: { enabled: true, level: effort.toUpperCase() },
|
|
258
|
+
});
|
|
259
|
+
}
|
|
260
|
+
/* JOHNNESS_MODELS_MASTER:END */
|
|
216
261
|
if (!options?.reasoning) {
|
|
217
262
|
return streamGoogle(model, context, { ...base, thinking: { enabled: false } });
|
|
218
263
|
}
|
package/package.json
CHANGED
package/scripts/models-sync.mjs
CHANGED
|
@@ -123,8 +123,15 @@ export function validateMaster(master) {
|
|
|
123
123
|
if (h.efforts !== undefined && (!Array.isArray(h.efforts) || h.efforts.length === 0 || h.efforts.some((e) => !EFFORTS.includes(e)))) problems.push(`${ref}: harness.efforts must list ${EFFORTS.join("|")}`);
|
|
124
124
|
if (h.temperature !== undefined && !TEMPERATURE_RULES.includes(h.temperature)) problems.push(`${ref}: harness.temperature must be ${TEMPERATURE_RULES.join(" or ")}`);
|
|
125
125
|
if (h.xhigh === true && h.efforts && !h.efforts.includes("xhigh")) problems.push(`${ref}: harness.xhigh true but efforts omit xhigh`);
|
|
126
|
-
if (h.thinking
|
|
126
|
+
if (h.thinking === "level") {
|
|
127
|
+
if (entry.api !== "google-generative-ai") problems.push(`${ref}: harness.thinking level applies to google-generative-ai models only`);
|
|
128
|
+
if (!Array.isArray(h.efforts) || !h.efforts.length || !h.efforts.includes(h.thinkingDefault)) problems.push(`${ref}: thinking level requires efforts and a supported thinkingDefault`);
|
|
129
|
+
if (Array.isArray(h.efforts) && h.efforts.some(e => !["low", "medium", "high"].includes(e))) problems.push(`${ref}: Google thinking level efforts must list low|medium|high`);
|
|
130
|
+
if (h.temperature !== undefined && h.temperature !== "drop") problems.push(`${ref}: Google harness.temperature must be drop`);
|
|
131
|
+
} else if (h.thinking !== undefined && entry.api !== ANTHROPIC_API) problems.push(`${ref}: harness.thinking applies to anthropic-messages models only (adaptive)`);
|
|
127
132
|
else if (h.thinking !== undefined && h.thinking !== "adaptive") problems.push(`${ref}: harness.thinking must be adaptive (omit it for the adapter's historical thinking mode)`);
|
|
133
|
+
if (h.thinkingDefault !== undefined && h.thinking !== "level") problems.push(`${ref}: harness.thinkingDefault requires thinking level`);
|
|
134
|
+
if (h.cache !== undefined && (h.cache !== "implicit-only" || entry.api !== "google-generative-ai")) problems.push(`${ref}: harness.cache must be implicit-only on google-generative-ai`);
|
|
128
135
|
if (h.thinkingOff !== undefined && entry.api !== ANTHROPIC_API) problems.push(`${ref}: harness.thinkingOff applies to anthropic-messages models only`);
|
|
129
136
|
else if (h.thinkingOff !== undefined && h.thinkingOff !== "disabled") problems.push(`${ref}: harness.thinkingOff must be disabled (omit it to leave the provider default when thinking is off)`);
|
|
130
137
|
if (entry.api === ANTHROPIC_API) {
|
|
@@ -252,6 +259,21 @@ export function anthropicRulesOf(master) {
|
|
|
252
259
|
}
|
|
253
260
|
return rules;
|
|
254
261
|
}
|
|
262
|
+
// Google native rules are opt-in; unruled models keep the historical adapter behavior.
|
|
263
|
+
export function googleRulesOf(master) {
|
|
264
|
+
const rules = {};
|
|
265
|
+
for (const [provider, entries] of Object.entries(master.providers)) {
|
|
266
|
+
for (const [id, entry] of Object.entries(entries)) {
|
|
267
|
+
if (entry.api !== "google-generative-ai") continue;
|
|
268
|
+
const rule = {};
|
|
269
|
+
for (const key of ["efforts", "temperature", "thinking", "thinkingDefault", "cache"]) {
|
|
270
|
+
if (entry.harness?.[key] !== undefined) rule[key] = entry.harness[key];
|
|
271
|
+
}
|
|
272
|
+
if (Object.keys(rule).length) rules[`${provider}/${id}`] = rule;
|
|
273
|
+
}
|
|
274
|
+
}
|
|
275
|
+
return rules;
|
|
276
|
+
}
|
|
255
277
|
// Shipped aliases whose target is an image generation model: the image_generate tool's `model`
|
|
256
278
|
// param accepts them too, so `/model nano-banana` and `image_generate model: nano-banana` agree.
|
|
257
279
|
export function imageAliasesOf(master) {
|
|
@@ -374,6 +396,53 @@ function anthropicBlock(master) {
|
|
|
374
396
|
"};",
|
|
375
397
|
].join("\n") + "\n" + TAIL();
|
|
376
398
|
}
|
|
399
|
+
function googleBlock(master) {
|
|
400
|
+
return HEAD("google rules") + `const JOHNNESS_GOOGLE_RULES = Object.freeze(${JSON.stringify(googleRulesOf(master))});
|
|
401
|
+
import { johnnessNearestEffort } from "../models.js";
|
|
402
|
+
const johnnessGoogleBuildParams = buildParams;
|
|
403
|
+
buildParams = function(model, context, options) {
|
|
404
|
+
const rule = JOHNNESS_GOOGLE_RULES[model.provider + "/" + model.id];
|
|
405
|
+
if (!rule) return johnnessGoogleBuildParams(model, context, options);
|
|
406
|
+
const params = johnnessGoogleBuildParams(model, context, options);
|
|
407
|
+
if (rule.temperature === "drop") {
|
|
408
|
+
delete params.config.temperature;
|
|
409
|
+
delete params.config.topP;
|
|
410
|
+
delete params.config.topK;
|
|
411
|
+
}
|
|
412
|
+
if (rule.cache === "implicit-only" && options?.cachedContent !== undefined) {
|
|
413
|
+
throw new Error("This model supports implicit caching only; cachedContent is unsupported.");
|
|
414
|
+
}
|
|
415
|
+
if (rule.thinking === "level") {
|
|
416
|
+
if (options?.thinking?.budgetTokens !== undefined) throw new Error("This model uses thinkingLevel, not thinkingBudget.");
|
|
417
|
+
const requested = options?.thinking?.enabled === false ? undefined : options?.thinking?.level;
|
|
418
|
+
if (requested !== undefined && !${JSON.stringify(EFFORTS)}.includes(String(requested).toLowerCase())) throw new Error("Unsupported thinking level: " + requested);
|
|
419
|
+
const effort = requested === undefined ? rule.thinkingDefault : johnnessNearestEffort(rule.efforts, String(requested).toLowerCase());
|
|
420
|
+
if (!rule.efforts.includes(effort)) throw new Error("Unsupported thinking level: " + requested);
|
|
421
|
+
params.config.thinkingConfig = { includeThoughts: true, thinkingLevel: effort.toUpperCase() };
|
|
422
|
+
// A single streaming hop only. Never advertise continuation/background support.
|
|
423
|
+
const cap = options?.maxTokens ?? model.maxTokens;
|
|
424
|
+
if (!Number.isInteger(cap) || cap <= 0 || cap > model.maxTokens) {
|
|
425
|
+
throw new Error("This transport supports at most " + model.maxTokens + " output tokens per stream; long decode/continuation is not implemented.");
|
|
426
|
+
}
|
|
427
|
+
params.config.maxOutputTokens = cap;
|
|
428
|
+
}
|
|
429
|
+
return params;
|
|
430
|
+
};
|
|
431
|
+
` + TAIL();
|
|
432
|
+
}
|
|
433
|
+
function googleSimpleBlock() {
|
|
434
|
+
return HEAD("google simple rules") + ` const rule = JOHNNESS_GOOGLE_RULES[model.provider + "/" + model.id];
|
|
435
|
+
if (rule?.thinking === "level") {
|
|
436
|
+
if (options?.reasoning !== undefined && !${JSON.stringify(EFFORTS)}.includes(options.reasoning)) throw new Error("Unsupported reasoning effort: " + options.reasoning);
|
|
437
|
+
const effort = options?.reasoning === undefined ? rule.thinkingDefault : johnnessNearestEffort(rule.efforts, options.reasoning);
|
|
438
|
+
return streamGoogle(model, context, {
|
|
439
|
+
...base,
|
|
440
|
+
maxTokens: options?.maxTokens ?? model.maxTokens,
|
|
441
|
+
thinking: { enabled: true, level: effort.toUpperCase() },
|
|
442
|
+
});
|
|
443
|
+
}
|
|
444
|
+
` + TAIL();
|
|
445
|
+
}
|
|
377
446
|
function aliasBlock(master) {
|
|
378
447
|
// A plain assignment loop (not Object.assign): older verifier checks count the literal blocks.
|
|
379
448
|
return HEAD("aliases") + `const JOHNNESS_MASTER_ALIASES = ${JSON.stringify(resolvedAliases(master))};\n`
|
|
@@ -428,6 +497,10 @@ export function targets(master) {
|
|
|
428
497
|
out.push({ rel: `${base}/models.js`, edits: [insertAfter('import { MODELS } from "./models.generated.js";\n', RULES_BLOCK)] });
|
|
429
498
|
out.push({ rel: `${base}/providers/openai-codex-responses.js`, edits: [insertAfter('import { supportsXhigh } from "../models.js";\n', adapterBlock("buildRequestBody"))] });
|
|
430
499
|
out.push({ rel: `${base}/providers/anthropic.js`, edits: [insertAfter(ANTHROPIC_IMPORT, anthropicBlock(master))] });
|
|
500
|
+
out.push({ rel: `${base}/providers/google.js`, edits: [
|
|
501
|
+
insertAfter('import { buildBaseOptions, clampReasoning } from "./simple-options.js";\n', googleBlock(master)),
|
|
502
|
+
insertAfter(' const base = buildBaseOptions(model, options, apiKey);\n', googleSimpleBlock()),
|
|
503
|
+
] });
|
|
431
504
|
}
|
|
432
505
|
for (const rel of [`${PI_VENDOR}/providers/openai-responses.js`, `${PI_INSTALLED}/providers/openai-responses.js`, SNAPSHOT]) {
|
|
433
506
|
out.push({ rel, edits: [insertAfter('import { supportsXhigh } from "../models.js";\n', adapterBlock("buildParams"))] });
|
|
@@ -13843,6 +13843,7 @@ const JOHNNESS_MODELS_MASTER = {
|
|
|
13843
13843
|
"grok-code-fast-1":{"id":"grok-code-fast-1","name":"Grok Code Fast 1","api":"openai-completions","provider":"github-copilot","baseUrl":"https://api.individual.githubcopilot.com","headers":{"User-Agent":"GitHubCopilotChat/0.35.0","Editor-Version":"vscode/1.107.0","Editor-Plugin-Version":"copilot-chat/0.35.0","Copilot-Integration-Id":"vscode-chat"},"compat":{"supportsStore":false,"supportsDeveloperRole":false,"supportsReasoningEffort":false},"reasoning":true,"input":["text"],"cost":{"input":0,"output":0,"cacheRead":0,"cacheWrite":0},"contextWindow":128000,"maxTokens":64000},
|
|
13844
13844
|
},
|
|
13845
13845
|
"google": {
|
|
13846
|
+
"gemini-4-argon":{"id":"gemini-4-argon","name":"Gemini 4 Argon","api":"google-generative-ai","provider":"google","baseUrl":"https://generativelanguage.googleapis.com/v1beta","reasoning":true,"input":["text","image"],"cost":{"input":2,"output":10,"cacheRead":0.1,"cacheWrite":0},"contextWindow":1048576,"maxTokens":65536},
|
|
13846
13847
|
"gemini-3.5-flash-lite":{"id":"gemini-3.5-flash-lite","name":"Gemini 3.5 Flash-Lite","api":"google-generative-ai","provider":"google","baseUrl":"https://generativelanguage.googleapis.com/v1beta","reasoning":true,"input":["text","image"],"cost":{"input":0.3,"output":2.5,"cacheRead":0.03,"cacheWrite":0},"contextWindow":1048576,"maxTokens":65536},
|
|
13847
13848
|
"gemini-1.5-flash":{"id":"gemini-1.5-flash","name":"Gemini 1.5 Flash","api":"google-generative-ai","provider":"google","baseUrl":"https://generativelanguage.googleapis.com/v1beta","reasoning":false,"input":["text","image"],"cost":{"input":0.075,"output":0.3,"cacheRead":0.01875,"cacheWrite":0},"contextWindow":1000000,"maxTokens":8192},
|
|
13848
13849
|
"gemini-1.5-flash-8b":{"id":"gemini-1.5-flash-8b","name":"Gemini 1.5 Flash-8B","api":"google-generative-ai","provider":"google","baseUrl":"https://generativelanguage.googleapis.com/v1beta","reasoning":false,"input":["text","image"],"cost":{"input":0.0375,"output":0.15,"cacheRead":0.01,"cacheWrite":0},"contextWindow":1000000,"maxTokens":8192},
|
|
@@ -14500,6 +14501,6 @@ const JOHNNESS_MODELS_MASTER = {
|
|
|
14500
14501
|
};
|
|
14501
14502
|
for (const provider of Object.keys(MODELS)) delete MODELS[provider];
|
|
14502
14503
|
Object.assign(MODELS, JOHNNESS_MODELS_MASTER);
|
|
14503
|
-
export const JOHNNESS_MODEL_RULES = {"deepseek/deepseek-flash":{"xhigh":true},"deepseek/deepseek-v4-pro":{"xhigh":true},"meta/muse-spark-1.3":{"xhigh":true},"meta/muse-spark-1.2":{"xhigh":true},"anthropic/claude-fable-5-1":{"xhigh":true},"anthropic/claude-sonnet-5-5":{"xhigh":true},"anthropic/claude-opus-5-5":{"xhigh":true},"anthropic/claude-haiku-5-5":{"xhigh":true,"efforts":["low","medium","high","xhigh","max"],"temperature":"drop"},"anthropic/claude-opus-5":{"xhigh":true},"anthropic/claude-sonnet-5":{"xhigh":true},"anthropic/claude-fable-5":{"xhigh":true},"anthropic/claude-opus-4-6":{"xhigh":true},"azure-openai-responses/gpt-5.2":{"xhigh":true},"azure-openai-responses/gpt-5.2-chat-latest":{"xhigh":true},"azure-openai-responses/gpt-5.2-codex":{"xhigh":true},"azure-openai-responses/gpt-5.2-pro":{"xhigh":true},"azure-openai-responses/gpt-5.3-codex":{"xhigh":true},"azure-openai-responses/gpt-5.3-codex-spark":{"xhigh":true},"github-copilot/claude-opus-4.6":{"xhigh":true},"github-copilot/gpt-5.2":{"xhigh":true},"github-copilot/gpt-5.2-codex":{"xhigh":true},"openai/gpt-5.2":{"xhigh":true},"openai/gpt-5.2-chat-latest":{"xhigh":true},"openai/gpt-5.2-codex":{"xhigh":true},"openai/gpt-5.2-pro":{"xhigh":true},"openai/gpt-5.3-codex":{"xhigh":true},"openai/gpt-5.3-codex-spark":{"xhigh":true},"openai/gpt-6-astra":{"xhigh":true,"efforts":["low","medium","high","xhigh","max"],"temperature":"drop"},"openai/gpt-6.1-sol":{"xhigh":true,"efforts":["low","medium","high","xhigh","max"],"temperature":"drop"},"openai/gpt-6-sol":{"xhigh":true,"efforts":["none","low","medium","high","xhigh","max"],"temperature":"drop-unless-effort-none"},"openai/gpt-6-luna":{"xhigh":true,"efforts":["none","low","medium","high","xhigh","max"],"temperature":"drop-unless-effort-none"},"openai/gpt-5.6-sol":{"xhigh":true,"temperature":"drop-unless-effort-none"},"openai/gpt-5.6-terra":{"xhigh":true,"temperature":"drop-unless-effort-none"},"openai/gpt-5.6-luna":{"xhigh":true,"temperature":"drop-unless-effort-none"},"openai-codex/gpt-5.2":{"xhigh":true},"openai-codex/gpt-5.2-codex":{"xhigh":true},"openai-codex/gpt-5.3-codex":{"xhigh":true},"openai-codex/gpt-5.3-codex-spark":{"xhigh":true},"openai-codex/gpt-6.1-sol":{"xhigh":true,"efforts":["low","medium","high","xhigh","max"],"temperature":"drop"},"openai-codex/gpt-6-sol":{"xhigh":true,"efforts":["none","low","medium","high","xhigh","max"],"temperature":"drop-unless-effort-none"},"openai-codex/gpt-6-luna":{"xhigh":true,"efforts":["none","low","medium","high","xhigh","max"],"temperature":"drop-unless-effort-none"},"openai-codex/gpt-6-astra":{"xhigh":true,"efforts":["low","medium","high","xhigh","max"],"temperature":"drop"},"openai-codex/gpt-5.6-sol":{"xhigh":true,"temperature":"drop-unless-effort-none"},"openai-codex/gpt-5.6-terra":{"xhigh":true,"temperature":"drop-unless-effort-none"},"openai-codex/gpt-5.6-luna":{"xhigh":true,"temperature":"drop-unless-effort-none"},"opencode/claude-opus-4-6":{"xhigh":true},"opencode/gpt-5.2":{"xhigh":true},"opencode/gpt-5.2-codex":{"xhigh":true},"opencode/gpt-5.3-codex":{"xhigh":true},"openrouter/openai/gpt-5.2":{"xhigh":true},"openrouter/openai/gpt-5.2-chat":{"xhigh":true},"openrouter/openai/gpt-5.2-codex":{"xhigh":true},"openrouter/openai/gpt-5.2-pro":{"xhigh":true},"openrouter/openai/gpt-5.3-codex":{"xhigh":true},"vercel-ai-gateway/anthropic/claude-opus-4.6":{"xhigh":true},"vercel-ai-gateway/openai/gpt-5.2":{"xhigh":true},"vercel-ai-gateway/openai/gpt-5.2-chat":{"xhigh":true},"vercel-ai-gateway/openai/gpt-5.2-codex":{"xhigh":true},"vercel-ai-gateway/openai/gpt-5.2-pro":{"xhigh":true},"vercel-ai-gateway/openai/gpt-5.3-codex":{"xhigh":true},"xai/grok-4.7":{"xhigh":true},"xai/grok-4.6":{"xhigh":true}};
|
|
14504
|
+
export const JOHNNESS_MODEL_RULES = {"deepseek/deepseek-flash":{"xhigh":true},"deepseek/deepseek-v4-pro":{"xhigh":true},"meta/muse-spark-1.3":{"xhigh":true},"meta/muse-spark-1.2":{"xhigh":true},"anthropic/claude-fable-5-1":{"xhigh":true},"anthropic/claude-sonnet-5-5":{"xhigh":true},"anthropic/claude-opus-5-5":{"xhigh":true},"anthropic/claude-haiku-5-5":{"xhigh":true,"efforts":["low","medium","high","xhigh","max"],"temperature":"drop"},"anthropic/claude-opus-5":{"xhigh":true},"anthropic/claude-sonnet-5":{"xhigh":true},"anthropic/claude-fable-5":{"xhigh":true},"anthropic/claude-opus-4-6":{"xhigh":true},"azure-openai-responses/gpt-5.2":{"xhigh":true},"azure-openai-responses/gpt-5.2-chat-latest":{"xhigh":true},"azure-openai-responses/gpt-5.2-codex":{"xhigh":true},"azure-openai-responses/gpt-5.2-pro":{"xhigh":true},"azure-openai-responses/gpt-5.3-codex":{"xhigh":true},"azure-openai-responses/gpt-5.3-codex-spark":{"xhigh":true},"github-copilot/claude-opus-4.6":{"xhigh":true},"github-copilot/gpt-5.2":{"xhigh":true},"github-copilot/gpt-5.2-codex":{"xhigh":true},"google/gemini-4-argon":{"efforts":["low","medium","high"],"temperature":"drop"},"openai/gpt-5.2":{"xhigh":true},"openai/gpt-5.2-chat-latest":{"xhigh":true},"openai/gpt-5.2-codex":{"xhigh":true},"openai/gpt-5.2-pro":{"xhigh":true},"openai/gpt-5.3-codex":{"xhigh":true},"openai/gpt-5.3-codex-spark":{"xhigh":true},"openai/gpt-6-astra":{"xhigh":true,"efforts":["low","medium","high","xhigh","max"],"temperature":"drop"},"openai/gpt-6.1-sol":{"xhigh":true,"efforts":["low","medium","high","xhigh","max"],"temperature":"drop"},"openai/gpt-6-sol":{"xhigh":true,"efforts":["none","low","medium","high","xhigh","max"],"temperature":"drop-unless-effort-none"},"openai/gpt-6-luna":{"xhigh":true,"efforts":["none","low","medium","high","xhigh","max"],"temperature":"drop-unless-effort-none"},"openai/gpt-5.6-sol":{"xhigh":true,"temperature":"drop-unless-effort-none"},"openai/gpt-5.6-terra":{"xhigh":true,"temperature":"drop-unless-effort-none"},"openai/gpt-5.6-luna":{"xhigh":true,"temperature":"drop-unless-effort-none"},"openai-codex/gpt-5.2":{"xhigh":true},"openai-codex/gpt-5.2-codex":{"xhigh":true},"openai-codex/gpt-5.3-codex":{"xhigh":true},"openai-codex/gpt-5.3-codex-spark":{"xhigh":true},"openai-codex/gpt-6.1-sol":{"xhigh":true,"efforts":["low","medium","high","xhigh","max"],"temperature":"drop"},"openai-codex/gpt-6-sol":{"xhigh":true,"efforts":["none","low","medium","high","xhigh","max"],"temperature":"drop-unless-effort-none"},"openai-codex/gpt-6-luna":{"xhigh":true,"efforts":["none","low","medium","high","xhigh","max"],"temperature":"drop-unless-effort-none"},"openai-codex/gpt-6-astra":{"xhigh":true,"efforts":["low","medium","high","xhigh","max"],"temperature":"drop"},"openai-codex/gpt-5.6-sol":{"xhigh":true,"temperature":"drop-unless-effort-none"},"openai-codex/gpt-5.6-terra":{"xhigh":true,"temperature":"drop-unless-effort-none"},"openai-codex/gpt-5.6-luna":{"xhigh":true,"temperature":"drop-unless-effort-none"},"opencode/claude-opus-4-6":{"xhigh":true},"opencode/gpt-5.2":{"xhigh":true},"opencode/gpt-5.2-codex":{"xhigh":true},"opencode/gpt-5.3-codex":{"xhigh":true},"openrouter/openai/gpt-5.2":{"xhigh":true},"openrouter/openai/gpt-5.2-chat":{"xhigh":true},"openrouter/openai/gpt-5.2-codex":{"xhigh":true},"openrouter/openai/gpt-5.2-pro":{"xhigh":true},"openrouter/openai/gpt-5.3-codex":{"xhigh":true},"vercel-ai-gateway/anthropic/claude-opus-4.6":{"xhigh":true},"vercel-ai-gateway/openai/gpt-5.2":{"xhigh":true},"vercel-ai-gateway/openai/gpt-5.2-chat":{"xhigh":true},"vercel-ai-gateway/openai/gpt-5.2-codex":{"xhigh":true},"vercel-ai-gateway/openai/gpt-5.2-pro":{"xhigh":true},"vercel-ai-gateway/openai/gpt-5.3-codex":{"xhigh":true},"xai/grok-4.7":{"xhigh":true},"xai/grok-4.6":{"xhigh":true}};
|
|
14504
14505
|
/* JOHNNESS_MODELS_MASTER:END */
|
|
14505
14506
|
//# sourceMappingURL=models.generated.js.map
|
|
@@ -5,6 +5,39 @@ import { AssistantMessageEventStream } from "../utils/event-stream.js";
|
|
|
5
5
|
import { sanitizeSurrogates } from "../utils/sanitize-unicode.js";
|
|
6
6
|
import { convertMessages, convertTools, isThinkingPart, mapStopReason, mapToolChoice, retainThoughtSignature, } from "./google-shared.js";
|
|
7
7
|
import { buildBaseOptions, clampReasoning } from "./simple-options.js";
|
|
8
|
+
/* JOHNNESS_MODELS_MASTER:BEGIN google rules (generated from models/models.json by scripts/models-sync.mjs; edit the master, not this block) */
|
|
9
|
+
const JOHNNESS_GOOGLE_RULES = Object.freeze({"google/gemini-4-argon":{"efforts":["low","medium","high"],"temperature":"drop","thinking":"level","thinkingDefault":"medium","cache":"implicit-only"}});
|
|
10
|
+
import { johnnessNearestEffort } from "../models.js";
|
|
11
|
+
const johnnessGoogleBuildParams = buildParams;
|
|
12
|
+
buildParams = function(model, context, options) {
|
|
13
|
+
const rule = JOHNNESS_GOOGLE_RULES[model.provider + "/" + model.id];
|
|
14
|
+
if (!rule) return johnnessGoogleBuildParams(model, context, options);
|
|
15
|
+
const params = johnnessGoogleBuildParams(model, context, options);
|
|
16
|
+
if (rule.temperature === "drop") {
|
|
17
|
+
delete params.config.temperature;
|
|
18
|
+
delete params.config.topP;
|
|
19
|
+
delete params.config.topK;
|
|
20
|
+
}
|
|
21
|
+
if (rule.cache === "implicit-only" && options?.cachedContent !== undefined) {
|
|
22
|
+
throw new Error("This model supports implicit caching only; cachedContent is unsupported.");
|
|
23
|
+
}
|
|
24
|
+
if (rule.thinking === "level") {
|
|
25
|
+
if (options?.thinking?.budgetTokens !== undefined) throw new Error("This model uses thinkingLevel, not thinkingBudget.");
|
|
26
|
+
const requested = options?.thinking?.enabled === false ? undefined : options?.thinking?.level;
|
|
27
|
+
if (requested !== undefined && !["none","minimal","low","medium","high","xhigh","max"].includes(String(requested).toLowerCase())) throw new Error("Unsupported thinking level: " + requested);
|
|
28
|
+
const effort = requested === undefined ? rule.thinkingDefault : johnnessNearestEffort(rule.efforts, String(requested).toLowerCase());
|
|
29
|
+
if (!rule.efforts.includes(effort)) throw new Error("Unsupported thinking level: " + requested);
|
|
30
|
+
params.config.thinkingConfig = { includeThoughts: true, thinkingLevel: effort.toUpperCase() };
|
|
31
|
+
// A single streaming hop only. Never advertise continuation/background support.
|
|
32
|
+
const cap = options?.maxTokens ?? model.maxTokens;
|
|
33
|
+
if (!Number.isInteger(cap) || cap <= 0 || cap > model.maxTokens) {
|
|
34
|
+
throw new Error("This transport supports at most " + model.maxTokens + " output tokens per stream; long decode/continuation is not implemented.");
|
|
35
|
+
}
|
|
36
|
+
params.config.maxOutputTokens = cap;
|
|
37
|
+
}
|
|
38
|
+
return params;
|
|
39
|
+
};
|
|
40
|
+
/* JOHNNESS_MODELS_MASTER:END */
|
|
8
41
|
// Counter for generating unique tool call IDs
|
|
9
42
|
let toolCallCounter = 0;
|
|
10
43
|
export const streamGoogle = (model, context, options) => {
|
|
@@ -213,6 +246,18 @@ export const streamSimpleGoogle = (model, context, options) => {
|
|
|
213
246
|
throw new Error(`No API key for provider: ${model.provider}`);
|
|
214
247
|
}
|
|
215
248
|
const base = buildBaseOptions(model, options, apiKey);
|
|
249
|
+
/* JOHNNESS_MODELS_MASTER:BEGIN google simple rules (generated from models/models.json by scripts/models-sync.mjs; edit the master, not this block) */
|
|
250
|
+
const rule = JOHNNESS_GOOGLE_RULES[model.provider + "/" + model.id];
|
|
251
|
+
if (rule?.thinking === "level") {
|
|
252
|
+
if (options?.reasoning !== undefined && !["none","minimal","low","medium","high","xhigh","max"].includes(options.reasoning)) throw new Error("Unsupported reasoning effort: " + options.reasoning);
|
|
253
|
+
const effort = options?.reasoning === undefined ? rule.thinkingDefault : johnnessNearestEffort(rule.efforts, options.reasoning);
|
|
254
|
+
return streamGoogle(model, context, {
|
|
255
|
+
...base,
|
|
256
|
+
maxTokens: options?.maxTokens ?? model.maxTokens,
|
|
257
|
+
thinking: { enabled: true, level: effort.toUpperCase() },
|
|
258
|
+
});
|
|
259
|
+
}
|
|
260
|
+
/* JOHNNESS_MODELS_MASTER:END */
|
|
216
261
|
if (!options?.reasoning) {
|
|
217
262
|
return streamGoogle(model, context, { ...base, thinking: { enabled: false } });
|
|
218
263
|
}
|