@molecule/api-resource-ai-models 1.9.1 → 1.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +13 -3
- package/dist/models.d.ts +12 -2
- package/dist/models.d.ts.map +1 -1
- package/dist/models.js +64 -4
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -3,7 +3,7 @@ AUTO-GENERATED — DO NOT EDIT THIS FILE.
|
|
|
3
3
|
Generated by `mlcl sync-docs` from the package's src/index.ts JSDoc + mlcl/registry.json.
|
|
4
4
|
Edits here are overwritten on the next commit (molecule's pre-commit hook regenerates).
|
|
5
5
|
To change this document, edit the module-level JSDoc in src/index.ts.
|
|
6
|
-
Generated: 2026-09-
|
|
6
|
+
Generated: 2026-09-29T13:34:01.085Z
|
|
7
7
|
-->
|
|
8
8
|
|
|
9
9
|
# @molecule/api-resource-ai-models
|
|
@@ -845,8 +845,8 @@ Sources (verified 2026-07-28; OpenAI re-verified 2026-07-31 after the
|
|
|
845
845
|
modeled; Z.ai $0.01 per use, but its search never runs on a Synthase-shaped
|
|
846
846
|
request, so GLM entries carry no webSearchToolType.
|
|
847
847
|
- Anthropic: https://platform.claude.com/docs/en/about-claude/models/overview
|
|
848
|
-
- /docs/en/build-with-claude/effort (fable-5-1 / opus-5-5 / sonnet-5
|
|
849
|
-
current as of 2026-09-
|
|
848
|
+
- /docs/en/build-with-claude/effort (fable-5-1 / opus-5-5 / sonnet-5-5
|
|
849
|
+
current as of 2026-09-29 — see the dated notes below; historically fable-5 / opus-5 / sonnet-5 current;
|
|
850
850
|
opus-4-8 superseded by opus-5 at identical pricing but still served — it is
|
|
851
851
|
the recommended refusal-fallback model; effort ladder on all three current
|
|
852
852
|
models is low|medium|high|xhigh|max; budget_tokens 400s on 4.7+)
|
|
@@ -887,6 +887,16 @@ Sources (verified 2026-07-28; OpenAI re-verified 2026-07-31 after the
|
|
|
887
887
|
(disabled/budget_tokens 400), tool_choice any/tool 400, computer_20251124
|
|
888
888
|
400 — Synthase sends none of those. Every other Anthropic price on the
|
|
889
889
|
pricing page is unchanged.)
|
|
890
|
+
(verified 2026-09-29 — ADDED claude-sonnet-5-5, released 2026-09-28 and
|
|
891
|
+
listed as "Active (latest)" on /docs/en/models/sonnet-5-5/overview; the
|
|
892
|
+
overview page now lists claude-sonnet-5 under "Legacy models (still
|
|
893
|
+
available)" → superseded, with sonnet-4-6 repointed one hop. Pricing
|
|
894
|
+
page: $2/$10, 5m cache write $2.50, cache hits $0.20 (standard 0.1×).
|
|
895
|
+
1M ctx / 128K out, text + image input, reliable knowledge cutoff Jun
|
|
896
|
+
2026. Effort page: all five levels, default high. Model/what's-new
|
|
897
|
+
pages: non-default temperature 400, tool_choice any/tool 400,
|
|
898
|
+
thinking "disabled" replaced by "between_tools" — Synthase sends none of
|
|
899
|
+
those. Every other Anthropic price on the pricing page is unchanged.)
|
|
890
900
|
- OpenAI: https://developers.openai.com/api/docs/pricing (GPT-5.6 family GA
|
|
891
901
|
2026-07-09; REPRICED 2026-07-30: -luna cut 80% to $0.20/$1.20, -terra cut
|
|
892
902
|
20% to $2/$12, -sol unchanged $5/$30; cache read 0.1× input; gpt-5.5/
|
package/dist/models.d.ts
CHANGED
|
@@ -61,8 +61,8 @@ import type { ModelDefinition } from './types.js';
|
|
|
61
61
|
* modeled; Z.ai $0.01 per use, but its search never runs on a Synthase-shaped
|
|
62
62
|
* request, so GLM entries carry no webSearchToolType.
|
|
63
63
|
* - Anthropic: https://platform.claude.com/docs/en/about-claude/models/overview
|
|
64
|
-
* + /docs/en/build-with-claude/effort (fable-5-1 / opus-5-5 / sonnet-5
|
|
65
|
-
* current as of 2026-09-
|
|
64
|
+
* + /docs/en/build-with-claude/effort (fable-5-1 / opus-5-5 / sonnet-5-5
|
|
65
|
+
* current as of 2026-09-29 — see the dated notes below; historically fable-5 / opus-5 / sonnet-5 current;
|
|
66
66
|
* opus-4-8 superseded by opus-5 at identical pricing but still served — it is
|
|
67
67
|
* the recommended refusal-fallback model; effort ladder on all three current
|
|
68
68
|
* models is low|medium|high|xhigh|max; budget_tokens 400s on 4.7+)
|
|
@@ -103,6 +103,16 @@ import type { ModelDefinition } from './types.js';
|
|
|
103
103
|
* (disabled/budget_tokens 400), tool_choice any/tool 400, computer_20251124
|
|
104
104
|
* 400 — Synthase sends none of those. Every other Anthropic price on the
|
|
105
105
|
* pricing page is unchanged.)
|
|
106
|
+
* (verified 2026-09-29 — ADDED claude-sonnet-5-5, released 2026-09-28 and
|
|
107
|
+
* listed as "Active (latest)" on /docs/en/models/sonnet-5-5/overview; the
|
|
108
|
+
* overview page now lists claude-sonnet-5 under "Legacy models (still
|
|
109
|
+
* available)" → superseded, with sonnet-4-6 repointed one hop. Pricing
|
|
110
|
+
* page: $2/$10, 5m cache write $2.50, cache hits $0.20 (standard 0.1×).
|
|
111
|
+
* 1M ctx / 128K out, text + image input, reliable knowledge cutoff Jun
|
|
112
|
+
* 2026. Effort page: all five levels, default high. Model/what's-new
|
|
113
|
+
* pages: non-default temperature 400, tool_choice any/tool 400,
|
|
114
|
+
* thinking "disabled" replaced by "between_tools" — Synthase sends none of
|
|
115
|
+
* those. Every other Anthropic price on the pricing page is unchanged.)
|
|
106
116
|
* - OpenAI: https://developers.openai.com/api/docs/pricing (GPT-5.6 family GA
|
|
107
117
|
* 2026-07-09; REPRICED 2026-07-30: -luna cut 80% to $0.20/$1.20, -terra cut
|
|
108
118
|
* 20% to $2/$12, -sol unchanged $5/$30; cache read 0.1× input; gpt-5.5/
|
package/dist/models.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"models.d.ts","sourceRoot":"","sources":["../src/models.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,YAAY,CAAA;AAwDjD
|
|
1
|
+
{"version":3,"file":"models.d.ts","sourceRoot":"","sources":["../src/models.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,YAAY,CAAA;AAwDjD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqRG;AACH,eAAO,MAAM,MAAM,EAAE,SAAS,eAAe,EA6pEnC,CAAA"}
|
package/dist/models.js
CHANGED
|
@@ -110,8 +110,8 @@ const CHINA_PUBLIC_HOLIDAYS = [
|
|
|
110
110
|
* modeled; Z.ai $0.01 per use, but its search never runs on a Synthase-shaped
|
|
111
111
|
* request, so GLM entries carry no webSearchToolType.
|
|
112
112
|
* - Anthropic: https://platform.claude.com/docs/en/about-claude/models/overview
|
|
113
|
-
* + /docs/en/build-with-claude/effort (fable-5-1 / opus-5-5 / sonnet-5
|
|
114
|
-
* current as of 2026-09-
|
|
113
|
+
* + /docs/en/build-with-claude/effort (fable-5-1 / opus-5-5 / sonnet-5-5
|
|
114
|
+
* current as of 2026-09-29 — see the dated notes below; historically fable-5 / opus-5 / sonnet-5 current;
|
|
115
115
|
* opus-4-8 superseded by opus-5 at identical pricing but still served — it is
|
|
116
116
|
* the recommended refusal-fallback model; effort ladder on all three current
|
|
117
117
|
* models is low|medium|high|xhigh|max; budget_tokens 400s on 4.7+)
|
|
@@ -152,6 +152,16 @@ const CHINA_PUBLIC_HOLIDAYS = [
|
|
|
152
152
|
* (disabled/budget_tokens 400), tool_choice any/tool 400, computer_20251124
|
|
153
153
|
* 400 — Synthase sends none of those. Every other Anthropic price on the
|
|
154
154
|
* pricing page is unchanged.)
|
|
155
|
+
* (verified 2026-09-29 — ADDED claude-sonnet-5-5, released 2026-09-28 and
|
|
156
|
+
* listed as "Active (latest)" on /docs/en/models/sonnet-5-5/overview; the
|
|
157
|
+
* overview page now lists claude-sonnet-5 under "Legacy models (still
|
|
158
|
+
* available)" → superseded, with sonnet-4-6 repointed one hop. Pricing
|
|
159
|
+
* page: $2/$10, 5m cache write $2.50, cache hits $0.20 (standard 0.1×).
|
|
160
|
+
* 1M ctx / 128K out, text + image input, reliable knowledge cutoff Jun
|
|
161
|
+
* 2026. Effort page: all five levels, default high. Model/what's-new
|
|
162
|
+
* pages: non-default temperature 400, tool_choice any/tool 400,
|
|
163
|
+
* thinking "disabled" replaced by "between_tools" — Synthase sends none of
|
|
164
|
+
* those. Every other Anthropic price on the pricing page is unchanged.)
|
|
155
165
|
* - OpenAI: https://developers.openai.com/api/docs/pricing (GPT-5.6 family GA
|
|
156
166
|
* 2026-07-09; REPRICED 2026-07-30: -luna cut 80% to $0.20/$1.20, -terra cut
|
|
157
167
|
* 20% to $2/$12, -sol unchanged $5/$30; cache read 0.1× input; gpt-5.5/
|
|
@@ -567,6 +577,50 @@ export const MODELS = [
|
|
|
567
577
|
deprecatedAt: '2026-07-28',
|
|
568
578
|
supersededBy: 'claude-opus-5-5',
|
|
569
579
|
},
|
|
580
|
+
{
|
|
581
|
+
id: 'claude-sonnet-5-5',
|
|
582
|
+
provider: 'anthropic',
|
|
583
|
+
// Setting temperature/top_p/top_k to a non-default value → 400 (model
|
|
584
|
+
// page "Good to know", verified 2026-09-29); callers omit it
|
|
585
|
+
// (request-shape.ts temperatureParam).
|
|
586
|
+
rejectsTemperature: true,
|
|
587
|
+
label: 'Claude Sonnet 5.5',
|
|
588
|
+
description: 'Fast & capable — the best mix of speed and intelligence at Sonnet cost',
|
|
589
|
+
// Forced tool use (tool_choice any/tool) → 400, a breaking change from
|
|
590
|
+
// sonnet-5 (what's-new page, verified 2026-09-29). Discovery and
|
|
591
|
+
// starting-point selection send `auto` for it instead (request-shape.ts).
|
|
592
|
+
rejectsForcedToolChoice: true,
|
|
593
|
+
contextWindow: 1_000_000,
|
|
594
|
+
maxOutputTokens: 128_000,
|
|
595
|
+
supportsThinking: true,
|
|
596
|
+
thinkingBudgetTokens: 16_000,
|
|
597
|
+
thinkingConfigurable: true,
|
|
598
|
+
supportedEffortLevels: ['low', 'medium', 'high', 'xhigh', 'max'],
|
|
599
|
+
defaultEffortLevel: 'high',
|
|
600
|
+
// Adaptive thinking on by default; all five levels, API default high, and
|
|
601
|
+
// the levels are recalibrated vs sonnet-5 (effort page, verified
|
|
602
|
+
// 2026-09-29). thinking {type:"disabled"} is replaced by "between_tools"
|
|
603
|
+
// — the bond never sends either. Text between tool calls now arrives in
|
|
604
|
+
// thinking blocks, which the bond streams as `thinking` events.
|
|
605
|
+
// 512-token prompt-cache minimum.
|
|
606
|
+
supportsVision: true,
|
|
607
|
+
supportsPromptCaching: true,
|
|
608
|
+
supportsTools: true,
|
|
609
|
+
webSearchToolType: 'web_search_20260209',
|
|
610
|
+
webSearchPricePer1k: 10,
|
|
611
|
+
// Same server-tool versions as the rest of the 4.6+ Anthropic fleet. Not
|
|
612
|
+
// currently sent by Synthase beyond webSearchToolType.
|
|
613
|
+
codeExecutionToolType: 'code_execution_20260521',
|
|
614
|
+
webFetchToolType: 'web_fetch_20260209',
|
|
615
|
+
inputPricePerMTok: 2,
|
|
616
|
+
outputPricePerMTok: 10,
|
|
617
|
+
// Standard Anthropic ratios (pricing page: $0.20 cache hits, $2.50 5m
|
|
618
|
+
// cache write, verified 2026-09-29).
|
|
619
|
+
cacheReadPricePerMTok: 0.2,
|
|
620
|
+
cacheWritePricePerMTok: 2.5,
|
|
621
|
+
// Reliable knowledge cutoff Jun 2026 (model page "Specifications").
|
|
622
|
+
knowledgeCutoff: '2026-06-01',
|
|
623
|
+
},
|
|
570
624
|
{
|
|
571
625
|
id: 'claude-sonnet-5',
|
|
572
626
|
provider: 'anthropic',
|
|
@@ -605,6 +659,11 @@ export const MODELS = [
|
|
|
605
659
|
cacheReadPricePerMTok: 0.2,
|
|
606
660
|
cacheWritePricePerMTok: 2.5,
|
|
607
661
|
knowledgeCutoff: '2026-01-01',
|
|
662
|
+
// Superseded by claude-sonnet-5-5 (released 2026-09-28, same Sonnet tier,
|
|
663
|
+
// same $2/$10); Anthropic now lists sonnet-5 under "Legacy models (still
|
|
664
|
+
// available)". Still served and priceable, just not OFFERED.
|
|
665
|
+
deprecatedAt: '2026-09-28',
|
|
666
|
+
supersededBy: 'claude-sonnet-5-5',
|
|
608
667
|
},
|
|
609
668
|
{
|
|
610
669
|
id: 'claude-opus-4-7',
|
|
@@ -718,9 +777,10 @@ export const MODELS = [
|
|
|
718
777
|
cacheReadPricePerMTok: 0.3,
|
|
719
778
|
cacheWritePricePerMTok: 3.75,
|
|
720
779
|
knowledgeCutoff: '2025-08-01',
|
|
721
|
-
// Superseded by
|
|
780
|
+
// Superseded by the current Sonnet (sonnet-5-5, one hop) — kept
|
|
781
|
+
// priceable, not offered.
|
|
722
782
|
deprecatedAt: '2026-07-07',
|
|
723
|
-
supersededBy: 'claude-sonnet-5',
|
|
783
|
+
supersededBy: 'claude-sonnet-5-5',
|
|
724
784
|
},
|
|
725
785
|
{
|
|
726
786
|
id: 'claude-haiku-4-5-20251001',
|
package/package.json
CHANGED