@jaypie/llm 1.3.19 → 1.3.20

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.
@@ -114,7 +114,7 @@ export declare const COST: Record<string, LlmModelCost>;
114
114
  export declare const PROVIDER: {
115
115
  readonly BEDROCK: {
116
116
  readonly DEFAULT: string;
117
- /** @deprecated Size tiers are retired in 2.0. Use PROVIDER.BEDROCK.DEFAULT, or pick a specific model from MODEL.NOVA_*. */
117
+ /** @deprecated Size tiers are retired in 2.0 and these values are frozen; repointing a tier at a newer model only prolongs its use. Use PROVIDER.BEDROCK.DEFAULT, or pick a specific model from MODEL.NOVA_*. */
118
118
  readonly MODEL: {
119
119
  readonly DEFAULT: string;
120
120
  readonly LARGE: string;
@@ -130,7 +130,7 @@ export declare const PROVIDER: {
130
130
  readonly MAX_TOKENS: {
131
131
  readonly DEFAULT: 16384;
132
132
  };
133
- /** @deprecated Size tiers are retired in 2.0. Use PROVIDER.ANTHROPIC.DEFAULT, or pick a specific model from MODEL.*. */
133
+ /** @deprecated Size tiers are retired in 2.0 and these values are frozen; repointing a tier at a newer model only prolongs its use. Use PROVIDER.ANTHROPIC.DEFAULT, or pick a specific model from MODEL.*. */
134
134
  readonly MODEL: {
135
135
  readonly DEFAULT: "claude-sonnet-4-6";
136
136
  readonly LARGE: "claude-opus-4-8";
@@ -162,7 +162,7 @@ export declare const PROVIDER: {
162
162
  /** @deprecated Use PROVIDER.GOOGLE — "Google" is the provider; Gemini is the model family */
163
163
  readonly GEMINI: {
164
164
  readonly DEFAULT: string;
165
- /** @deprecated Size tiers are retired in 2.0. Use PROVIDER.GOOGLE.DEFAULT, or pick a specific model from MODEL.*. */
165
+ /** @deprecated Size tiers are retired in 2.0 and these values are frozen; repointing a tier at a newer model only prolongs its use. Use PROVIDER.GOOGLE.DEFAULT, or pick a specific model from MODEL.*. */
166
166
  readonly MODEL: {
167
167
  readonly DEFAULT: "gemini-3.1-pro-preview";
168
168
  readonly LARGE: "gemini-3.1-pro-preview";
@@ -178,7 +178,7 @@ export declare const PROVIDER: {
178
178
  };
179
179
  readonly GOOGLE: {
180
180
  readonly DEFAULT: string;
181
- /** @deprecated Size tiers are retired in 2.0. Use PROVIDER.GOOGLE.DEFAULT, or pick a specific model from MODEL.*. */
181
+ /** @deprecated Size tiers are retired in 2.0 and these values are frozen; repointing a tier at a newer model only prolongs its use. Use PROVIDER.GOOGLE.DEFAULT, or pick a specific model from MODEL.*. */
182
182
  readonly MODEL: {
183
183
  readonly DEFAULT: "gemini-3.1-pro-preview";
184
184
  readonly LARGE: "gemini-3.1-pro-preview";
@@ -194,7 +194,7 @@ export declare const PROVIDER: {
194
194
  };
195
195
  readonly OPENAI: {
196
196
  readonly DEFAULT: string;
197
- /** @deprecated Size tiers are retired in 2.0. Use PROVIDER.OPENAI.DEFAULT, or pick a specific model from MODEL.*. */
197
+ /** @deprecated Size tiers are retired in 2.0 and these values are frozen; repointing a tier at a newer model only prolongs its use. Use PROVIDER.OPENAI.DEFAULT, or pick a specific model from MODEL.*. */
198
198
  readonly MODEL: {
199
199
  readonly DEFAULT: "gpt-5.4";
200
200
  readonly LARGE: "gpt-5.5";
@@ -206,7 +206,7 @@ export declare const PROVIDER: {
206
206
  };
207
207
  readonly OPENROUTER: {
208
208
  readonly DEFAULT: string;
209
- /** @deprecated Size tiers are retired in 2.0. Use PROVIDER.OPENROUTER.DEFAULT, or pick a specific route from MODEL.OPENROUTER.*. */
209
+ /** @deprecated Size tiers are retired in 2.0 and these values are frozen; repointing a tier at a newer model only prolongs its use. Use PROVIDER.OPENROUTER.DEFAULT, or pick a specific route from MODEL.OPENROUTER.*. */
210
210
  readonly MODEL: {
211
211
  readonly DEFAULT: "anthropic/claude-sonnet-4-6";
212
212
  readonly LARGE: "anthropic/claude-opus-4-8";
@@ -226,7 +226,7 @@ export declare const PROVIDER: {
226
226
  readonly API_KEY: "XAI_API_KEY";
227
227
  readonly BASE_URL: "https://api.x.ai/v1";
228
228
  readonly DEFAULT: string;
229
- /** @deprecated Size tiers are retired in 2.0. Use PROVIDER.XAI.DEFAULT, or pick a specific model from MODEL.*. */
229
+ /** @deprecated Size tiers are retired in 2.0 and these values are frozen; repointing a tier at a newer model only prolongs its use. Use PROVIDER.XAI.DEFAULT, or pick a specific model from MODEL.*. */
230
230
  readonly MODEL: {
231
231
  readonly DEFAULT: "grok-latest";
232
232
  readonly LARGE: "grok-latest";
@@ -239,7 +239,7 @@ export declare const PROVIDER: {
239
239
  };
240
240
  export type LlmProviderName = typeof PROVIDER.ANTHROPIC.NAME | typeof PROVIDER.BEDROCK.NAME | typeof PROVIDER.FIREWORKS.NAME | typeof PROVIDER.GOOGLE.NAME | typeof PROVIDER.OPENAI.NAME | typeof PROVIDER.OPENROUTER.NAME | typeof PROVIDER.XAI.NAME;
241
241
  export declare const DEFAULT: {
242
- /** @deprecated Size tiers are retired in 2.0. Use DEFAULT.PROVIDER.DEFAULT, or pick a specific model from MODEL.*. */
242
+ /** @deprecated Size tiers are retired in 2.0 and these values are frozen; repointing a tier at a newer model only prolongs its use. Use DEFAULT.PROVIDER.DEFAULT, or pick a specific model from MODEL.*. */
243
243
  readonly MODEL: {
244
244
  readonly BASE: "gpt-5.4";
245
245
  readonly LARGE: "gpt-5.5";
@@ -248,7 +248,7 @@ export declare const DEFAULT: {
248
248
  };
249
249
  readonly PROVIDER: {
250
250
  readonly DEFAULT: string;
251
- /** @deprecated Size tiers are retired in 2.0. Use PROVIDER.OPENAI.DEFAULT, or pick a specific model from MODEL.*. */
251
+ /** @deprecated Size tiers are retired in 2.0 and these values are frozen; repointing a tier at a newer model only prolongs its use. Use PROVIDER.OPENAI.DEFAULT, or pick a specific model from MODEL.*. */
252
252
  readonly MODEL: {
253
253
  readonly DEFAULT: "gpt-5.4";
254
254
  readonly LARGE: "gpt-5.5";
@@ -265,7 +265,7 @@ export declare const DEFAULT: {
265
265
  */
266
266
  export declare const ALL: {
267
267
  readonly BASE: readonly ["claude-sonnet-4-6", "gemini-3.1-pro-preview", "gpt-5.4", "grok-latest"];
268
- readonly COMBINED: readonly ("claude-opus-4-8" | "claude-haiku-4-5" | "gemini-3.1-pro-preview" | "gpt-5.5" | "gpt-5.4-mini" | "gpt-5.4-nano" | "grok-latest" | "claude-sonnet-4-6" | "gemini-3.1-flash-lite" | "gemini-3.5-flash" | "gpt-5.4" | "grok-4-1-fast-non-reasoning" | "grok-4-1-fast-reasoning")[];
268
+ readonly COMBINED: readonly ("claude-haiku-4-5" | "gemini-3.1-pro-preview" | "gpt-5.5" | "gpt-5.4-mini" | "gpt-5.4-nano" | "grok-latest" | "claude-opus-4-8" | "claude-sonnet-4-6" | "gemini-3.1-flash-lite" | "gemini-3.5-flash" | "gpt-5.4" | "grok-4-1-fast-non-reasoning" | "grok-4-1-fast-reasoning")[];
269
269
  readonly LARGE: readonly ["claude-opus-4-8", "gemini-3.1-pro-preview", "gpt-5.5", "grok-latest"];
270
270
  readonly SMALL: readonly ["claude-sonnet-4-6", "gemini-3.5-flash", "gpt-5.4-mini", "grok-4-1-fast-reasoning"];
271
271
  readonly TINY: readonly ["claude-haiku-4-5", "gemini-3.1-flash-lite", "gpt-5.4-nano", "grok-4-1-fast-non-reasoning"];
@@ -38,7 +38,7 @@ const MODEL = {
38
38
  NOVA_PRO: "amazon.nova-pro-v1:0",
39
39
  // Anthropic
40
40
  FABLE: "claude-fable-5",
41
- OPUS: "claude-opus-4-8",
41
+ OPUS: "claude-opus-5",
42
42
  SONNET: "claude-sonnet-5",
43
43
  HAIKU: "claude-haiku-4-5",
44
44
  MYTHOS: "claude-mythos-5",
@@ -185,6 +185,12 @@ const COST = {
185
185
  input: 5.0,
186
186
  output: 25.0,
187
187
  },
188
+ "claude-opus-5": {
189
+ cachedInputRead: 0.5,
190
+ cachedInputWrite: { "1h": 10.0, "5m": 6.25 },
191
+ input: 5.0,
192
+ output: 25.0,
193
+ },
188
194
  "claude-sonnet-4-20250514": {
189
195
  cachedInputRead: 0.3,
190
196
  cachedInputWrite: { "1h": 6.0, "5m": 3.75 },
@@ -289,7 +295,7 @@ const COST = {
289
295
  const GOOGLE_PROVIDER = {
290
296
  // https://ai.google.dev/gemini-api/docs/models
291
297
  DEFAULT: MODEL.GEMINI_FLASH,
292
- /** @deprecated Size tiers are retired in 2.0. Use PROVIDER.GOOGLE.DEFAULT, or pick a specific model from MODEL.*. */
298
+ /** @deprecated Size tiers are retired in 2.0 and these values are frozen; repointing a tier at a newer model only prolongs its use. Use PROVIDER.GOOGLE.DEFAULT, or pick a specific model from MODEL.*. */
293
299
  MODEL: {
294
300
  DEFAULT: "gemini-3.1-pro-preview",
295
301
  LARGE: "gemini-3.1-pro-preview",
@@ -308,7 +314,7 @@ const PROVIDER = {
308
314
  BEDROCK: {
309
315
  // nova-pro is the Amazon-native model that reliably does tools+structured.
310
316
  DEFAULT: MODEL.NOVA_PRO,
311
- /** @deprecated Size tiers are retired in 2.0. Use PROVIDER.BEDROCK.DEFAULT, or pick a specific model from MODEL.NOVA_*. */
317
+ /** @deprecated Size tiers are retired in 2.0 and these values are frozen; repointing a tier at a newer model only prolongs its use. Use PROVIDER.BEDROCK.DEFAULT, or pick a specific model from MODEL.NOVA_*. */
312
318
  MODEL: {
313
319
  DEFAULT: MODEL.NOVA_LITE,
314
320
  LARGE: MODEL.NOVA_PRO,
@@ -341,7 +347,7 @@ const PROVIDER = {
341
347
  // (see util/maxOutputTokens.ts)
342
348
  DEFAULT: 16384,
343
349
  },
344
- /** @deprecated Size tiers are retired in 2.0. Use PROVIDER.ANTHROPIC.DEFAULT, or pick a specific model from MODEL.*. */
350
+ /** @deprecated Size tiers are retired in 2.0 and these values are frozen; repointing a tier at a newer model only prolongs its use. Use PROVIDER.ANTHROPIC.DEFAULT, or pick a specific model from MODEL.*. */
345
351
  MODEL: {
346
352
  DEFAULT: "claude-sonnet-4-6",
347
353
  LARGE: "claude-opus-4-8",
@@ -385,7 +391,7 @@ const PROVIDER = {
385
391
  OPENAI: {
386
392
  // https://platform.openai.com/docs/models
387
393
  DEFAULT: MODEL.SOL,
388
- /** @deprecated Size tiers are retired in 2.0. Use PROVIDER.OPENAI.DEFAULT, or pick a specific model from MODEL.*. */
394
+ /** @deprecated Size tiers are retired in 2.0 and these values are frozen; repointing a tier at a newer model only prolongs its use. Use PROVIDER.OPENAI.DEFAULT, or pick a specific model from MODEL.*. */
389
395
  MODEL: {
390
396
  DEFAULT: "gpt-5.4",
391
397
  LARGE: "gpt-5.5",
@@ -397,7 +403,7 @@ const PROVIDER = {
397
403
  },
398
404
  OPENROUTER: {
399
405
  DEFAULT: MODEL.OPENROUTER.SONNET,
400
- /** @deprecated Size tiers are retired in 2.0. Use PROVIDER.OPENROUTER.DEFAULT, or pick a specific route from MODEL.OPENROUTER.*. */
406
+ /** @deprecated Size tiers are retired in 2.0 and these values are frozen; repointing a tier at a newer model only prolongs its use. Use PROVIDER.OPENROUTER.DEFAULT, or pick a specific route from MODEL.OPENROUTER.*. */
401
407
  MODEL: {
402
408
  DEFAULT: "anthropic/claude-sonnet-4-6",
403
409
  LARGE: "anthropic/claude-opus-4-8",
@@ -418,7 +424,7 @@ const PROVIDER = {
418
424
  API_KEY: "XAI_API_KEY",
419
425
  BASE_URL: "https://api.x.ai/v1",
420
426
  DEFAULT: MODEL.GROK,
421
- /** @deprecated Size tiers are retired in 2.0. Use PROVIDER.XAI.DEFAULT, or pick a specific model from MODEL.*. */
427
+ /** @deprecated Size tiers are retired in 2.0 and these values are frozen; repointing a tier at a newer model only prolongs its use. Use PROVIDER.XAI.DEFAULT, or pick a specific model from MODEL.*. */
422
428
  MODEL: {
423
429
  DEFAULT: "grok-latest",
424
430
  LARGE: "grok-latest",
@@ -431,7 +437,7 @@ const PROVIDER = {
431
437
  };
432
438
  // Last: Defaults
433
439
  const DEFAULT = {
434
- /** @deprecated Size tiers are retired in 2.0. Use DEFAULT.PROVIDER.DEFAULT, or pick a specific model from MODEL.*. */
440
+ /** @deprecated Size tiers are retired in 2.0 and these values are frozen; repointing a tier at a newer model only prolongs its use. Use DEFAULT.PROVIDER.DEFAULT, or pick a specific model from MODEL.*. */
435
441
  MODEL: {
436
442
  BASE: PROVIDER.OPENAI.MODEL.DEFAULT,
437
443
  LARGE: PROVIDER.OPENAI.MODEL.LARGE,