@jaypie/llm 1.3.18 → 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.
@@ -119,7 +119,7 @@ declare const COST: Record<string, LlmModelCost>;
119
119
  declare const PROVIDER: {
120
120
  readonly BEDROCK: {
121
121
  readonly DEFAULT: string;
122
- /** @deprecated Size tiers are retired in 2.0. Use PROVIDER.BEDROCK.DEFAULT, or pick a specific model from MODEL.NOVA_*. */
122
+ /** @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_*. */
123
123
  readonly MODEL: {
124
124
  readonly DEFAULT: string;
125
125
  readonly LARGE: string;
@@ -135,7 +135,7 @@ declare const PROVIDER: {
135
135
  readonly MAX_TOKENS: {
136
136
  readonly DEFAULT: 16384;
137
137
  };
138
- /** @deprecated Size tiers are retired in 2.0. Use PROVIDER.ANTHROPIC.DEFAULT, or pick a specific model from MODEL.*. */
138
+ /** @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.*. */
139
139
  readonly MODEL: {
140
140
  readonly DEFAULT: "claude-sonnet-4-6";
141
141
  readonly LARGE: "claude-opus-4-8";
@@ -167,7 +167,7 @@ declare const PROVIDER: {
167
167
  /** @deprecated Use PROVIDER.GOOGLE — "Google" is the provider; Gemini is the model family */
168
168
  readonly GEMINI: {
169
169
  readonly DEFAULT: string;
170
- /** @deprecated Size tiers are retired in 2.0. Use PROVIDER.GOOGLE.DEFAULT, or pick a specific model from MODEL.*. */
170
+ /** @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.*. */
171
171
  readonly MODEL: {
172
172
  readonly DEFAULT: "gemini-3.1-pro-preview";
173
173
  readonly LARGE: "gemini-3.1-pro-preview";
@@ -183,7 +183,7 @@ declare const PROVIDER: {
183
183
  };
184
184
  readonly GOOGLE: {
185
185
  readonly DEFAULT: string;
186
- /** @deprecated Size tiers are retired in 2.0. Use PROVIDER.GOOGLE.DEFAULT, or pick a specific model from MODEL.*. */
186
+ /** @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.*. */
187
187
  readonly MODEL: {
188
188
  readonly DEFAULT: "gemini-3.1-pro-preview";
189
189
  readonly LARGE: "gemini-3.1-pro-preview";
@@ -199,7 +199,7 @@ declare const PROVIDER: {
199
199
  };
200
200
  readonly OPENAI: {
201
201
  readonly DEFAULT: string;
202
- /** @deprecated Size tiers are retired in 2.0. Use PROVIDER.OPENAI.DEFAULT, or pick a specific model from MODEL.*. */
202
+ /** @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.*. */
203
203
  readonly MODEL: {
204
204
  readonly DEFAULT: "gpt-5.4";
205
205
  readonly LARGE: "gpt-5.5";
@@ -211,7 +211,7 @@ declare const PROVIDER: {
211
211
  };
212
212
  readonly OPENROUTER: {
213
213
  readonly DEFAULT: string;
214
- /** @deprecated Size tiers are retired in 2.0. Use PROVIDER.OPENROUTER.DEFAULT, or pick a specific route from MODEL.OPENROUTER.*. */
214
+ /** @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.*. */
215
215
  readonly MODEL: {
216
216
  readonly DEFAULT: "anthropic/claude-sonnet-4-6";
217
217
  readonly LARGE: "anthropic/claude-opus-4-8";
@@ -231,7 +231,7 @@ declare const PROVIDER: {
231
231
  readonly API_KEY: "XAI_API_KEY";
232
232
  readonly BASE_URL: "https://api.x.ai/v1";
233
233
  readonly DEFAULT: string;
234
- /** @deprecated Size tiers are retired in 2.0. Use PROVIDER.XAI.DEFAULT, or pick a specific model from MODEL.*. */
234
+ /** @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.*. */
235
235
  readonly MODEL: {
236
236
  readonly DEFAULT: "grok-latest";
237
237
  readonly LARGE: "grok-latest";
@@ -244,7 +244,7 @@ declare const PROVIDER: {
244
244
  };
245
245
  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;
246
246
  declare const DEFAULT: {
247
- /** @deprecated Size tiers are retired in 2.0. Use DEFAULT.PROVIDER.DEFAULT, or pick a specific model from MODEL.*. */
247
+ /** @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.*. */
248
248
  readonly MODEL: {
249
249
  readonly BASE: "gpt-5.4";
250
250
  readonly LARGE: "gpt-5.5";
@@ -253,7 +253,7 @@ declare const DEFAULT: {
253
253
  };
254
254
  readonly PROVIDER: {
255
255
  readonly DEFAULT: string;
256
- /** @deprecated Size tiers are retired in 2.0. Use PROVIDER.OPENAI.DEFAULT, or pick a specific model from MODEL.*. */
256
+ /** @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.*. */
257
257
  readonly MODEL: {
258
258
  readonly DEFAULT: "gpt-5.4";
259
259
  readonly LARGE: "gpt-5.5";
@@ -270,7 +270,7 @@ declare const DEFAULT: {
270
270
  */
271
271
  declare const ALL: {
272
272
  readonly BASE: readonly ["claude-sonnet-4-6", "gemini-3.1-pro-preview", "gpt-5.4", "grok-latest"];
273
- 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.5-flash" | "gemini-3.1-flash-lite" | "gpt-5.4" | "grok-4-1-fast-reasoning" | "grok-4-1-fast-non-reasoning")[];
273
+ 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-sonnet-4-6" | "claude-opus-4-8" | "gemini-3.5-flash" | "gemini-3.1-flash-lite" | "gpt-5.4" | "grok-4-1-fast-reasoning" | "grok-4-1-fast-non-reasoning")[];
274
274
  readonly LARGE: readonly ["claude-opus-4-8", "gemini-3.1-pro-preview", "gpt-5.5", "grok-latest"];
275
275
  readonly SMALL: readonly ["claude-sonnet-4-6", "gemini-3.5-flash", "gpt-5.4-mini", "grok-4-1-fast-reasoning"];
276
276
  readonly TINY: readonly ["claude-haiku-4-5", "gemini-3.1-flash-lite", "gpt-5.4-nano", "grok-4-1-fast-non-reasoning"];
@@ -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"];
@@ -119,7 +119,7 @@ declare const COST: Record<string, LlmModelCost>;
119
119
  declare const PROVIDER: {
120
120
  readonly BEDROCK: {
121
121
  readonly DEFAULT: string;
122
- /** @deprecated Size tiers are retired in 2.0. Use PROVIDER.BEDROCK.DEFAULT, or pick a specific model from MODEL.NOVA_*. */
122
+ /** @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_*. */
123
123
  readonly MODEL: {
124
124
  readonly DEFAULT: string;
125
125
  readonly LARGE: string;
@@ -135,7 +135,7 @@ declare const PROVIDER: {
135
135
  readonly MAX_TOKENS: {
136
136
  readonly DEFAULT: 16384;
137
137
  };
138
- /** @deprecated Size tiers are retired in 2.0. Use PROVIDER.ANTHROPIC.DEFAULT, or pick a specific model from MODEL.*. */
138
+ /** @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.*. */
139
139
  readonly MODEL: {
140
140
  readonly DEFAULT: "claude-sonnet-4-6";
141
141
  readonly LARGE: "claude-opus-4-8";
@@ -167,7 +167,7 @@ declare const PROVIDER: {
167
167
  /** @deprecated Use PROVIDER.GOOGLE — "Google" is the provider; Gemini is the model family */
168
168
  readonly GEMINI: {
169
169
  readonly DEFAULT: string;
170
- /** @deprecated Size tiers are retired in 2.0. Use PROVIDER.GOOGLE.DEFAULT, or pick a specific model from MODEL.*. */
170
+ /** @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.*. */
171
171
  readonly MODEL: {
172
172
  readonly DEFAULT: "gemini-3.1-pro-preview";
173
173
  readonly LARGE: "gemini-3.1-pro-preview";
@@ -183,7 +183,7 @@ declare const PROVIDER: {
183
183
  };
184
184
  readonly GOOGLE: {
185
185
  readonly DEFAULT: string;
186
- /** @deprecated Size tiers are retired in 2.0. Use PROVIDER.GOOGLE.DEFAULT, or pick a specific model from MODEL.*. */
186
+ /** @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.*. */
187
187
  readonly MODEL: {
188
188
  readonly DEFAULT: "gemini-3.1-pro-preview";
189
189
  readonly LARGE: "gemini-3.1-pro-preview";
@@ -199,7 +199,7 @@ declare const PROVIDER: {
199
199
  };
200
200
  readonly OPENAI: {
201
201
  readonly DEFAULT: string;
202
- /** @deprecated Size tiers are retired in 2.0. Use PROVIDER.OPENAI.DEFAULT, or pick a specific model from MODEL.*. */
202
+ /** @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.*. */
203
203
  readonly MODEL: {
204
204
  readonly DEFAULT: "gpt-5.4";
205
205
  readonly LARGE: "gpt-5.5";
@@ -211,7 +211,7 @@ declare const PROVIDER: {
211
211
  };
212
212
  readonly OPENROUTER: {
213
213
  readonly DEFAULT: string;
214
- /** @deprecated Size tiers are retired in 2.0. Use PROVIDER.OPENROUTER.DEFAULT, or pick a specific route from MODEL.OPENROUTER.*. */
214
+ /** @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.*. */
215
215
  readonly MODEL: {
216
216
  readonly DEFAULT: "anthropic/claude-sonnet-4-6";
217
217
  readonly LARGE: "anthropic/claude-opus-4-8";
@@ -231,7 +231,7 @@ declare const PROVIDER: {
231
231
  readonly API_KEY: "XAI_API_KEY";
232
232
  readonly BASE_URL: "https://api.x.ai/v1";
233
233
  readonly DEFAULT: string;
234
- /** @deprecated Size tiers are retired in 2.0. Use PROVIDER.XAI.DEFAULT, or pick a specific model from MODEL.*. */
234
+ /** @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.*. */
235
235
  readonly MODEL: {
236
236
  readonly DEFAULT: "grok-latest";
237
237
  readonly LARGE: "grok-latest";
@@ -244,7 +244,7 @@ declare const PROVIDER: {
244
244
  };
245
245
  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;
246
246
  declare const DEFAULT: {
247
- /** @deprecated Size tiers are retired in 2.0. Use DEFAULT.PROVIDER.DEFAULT, or pick a specific model from MODEL.*. */
247
+ /** @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.*. */
248
248
  readonly MODEL: {
249
249
  readonly BASE: "gpt-5.4";
250
250
  readonly LARGE: "gpt-5.5";
@@ -253,7 +253,7 @@ declare const DEFAULT: {
253
253
  };
254
254
  readonly PROVIDER: {
255
255
  readonly DEFAULT: string;
256
- /** @deprecated Size tiers are retired in 2.0. Use PROVIDER.OPENAI.DEFAULT, or pick a specific model from MODEL.*. */
256
+ /** @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.*. */
257
257
  readonly MODEL: {
258
258
  readonly DEFAULT: "gpt-5.4";
259
259
  readonly LARGE: "gpt-5.5";
@@ -270,7 +270,7 @@ declare const DEFAULT: {
270
270
  */
271
271
  declare const ALL: {
272
272
  readonly BASE: readonly ["claude-sonnet-4-6", "gemini-3.1-pro-preview", "gpt-5.4", "grok-latest"];
273
- 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.5-flash" | "gemini-3.1-flash-lite" | "gpt-5.4" | "grok-4-1-fast-reasoning" | "grok-4-1-fast-non-reasoning")[];
273
+ 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-sonnet-4-6" | "claude-opus-4-8" | "gemini-3.5-flash" | "gemini-3.1-flash-lite" | "gpt-5.4" | "grok-4-1-fast-reasoning" | "grok-4-1-fast-non-reasoning")[];
274
274
  readonly LARGE: readonly ["claude-opus-4-8", "gemini-3.1-pro-preview", "gpt-5.5", "grok-latest"];
275
275
  readonly SMALL: readonly ["claude-sonnet-4-6", "gemini-3.5-flash", "gpt-5.4-mini", "grok-4-1-fast-reasoning"];
276
276
  readonly TINY: readonly ["claude-haiku-4-5", "gemini-3.1-flash-lite", "gpt-5.4-nano", "grok-4-1-fast-non-reasoning"];
package/dist/esm/index.js CHANGED
@@ -35,7 +35,7 @@ const MODEL = {
35
35
  NOVA_PRO: "amazon.nova-pro-v1:0",
36
36
  // Anthropic
37
37
  FABLE: "claude-fable-5",
38
- OPUS: "claude-opus-4-8",
38
+ OPUS: "claude-opus-5",
39
39
  SONNET: "claude-sonnet-5",
40
40
  HAIKU: "claude-haiku-4-5",
41
41
  MYTHOS: "claude-mythos-5",
@@ -182,6 +182,12 @@ const COST = {
182
182
  input: 5.0,
183
183
  output: 25.0,
184
184
  },
185
+ "claude-opus-5": {
186
+ cachedInputRead: 0.5,
187
+ cachedInputWrite: { "1h": 10.0, "5m": 6.25 },
188
+ input: 5.0,
189
+ output: 25.0,
190
+ },
185
191
  "claude-sonnet-4-20250514": {
186
192
  cachedInputRead: 0.3,
187
193
  cachedInputWrite: { "1h": 6.0, "5m": 3.75 },
@@ -286,7 +292,7 @@ const COST = {
286
292
  const GOOGLE_PROVIDER = {
287
293
  // https://ai.google.dev/gemini-api/docs/models
288
294
  DEFAULT: MODEL.GEMINI_FLASH,
289
- /** @deprecated Size tiers are retired in 2.0. Use PROVIDER.GOOGLE.DEFAULT, or pick a specific model from MODEL.*. */
295
+ /** @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.*. */
290
296
  MODEL: {
291
297
  DEFAULT: "gemini-3.1-pro-preview",
292
298
  LARGE: "gemini-3.1-pro-preview",
@@ -305,7 +311,7 @@ const PROVIDER = {
305
311
  BEDROCK: {
306
312
  // nova-pro is the Amazon-native model that reliably does tools+structured.
307
313
  DEFAULT: MODEL.NOVA_PRO,
308
- /** @deprecated Size tiers are retired in 2.0. Use PROVIDER.BEDROCK.DEFAULT, or pick a specific model from MODEL.NOVA_*. */
314
+ /** @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_*. */
309
315
  MODEL: {
310
316
  DEFAULT: MODEL.NOVA_LITE,
311
317
  LARGE: MODEL.NOVA_PRO,
@@ -338,7 +344,7 @@ const PROVIDER = {
338
344
  // (see util/maxOutputTokens.ts)
339
345
  DEFAULT: 16384,
340
346
  },
341
- /** @deprecated Size tiers are retired in 2.0. Use PROVIDER.ANTHROPIC.DEFAULT, or pick a specific model from MODEL.*. */
347
+ /** @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.*. */
342
348
  MODEL: {
343
349
  DEFAULT: "claude-sonnet-4-6",
344
350
  LARGE: "claude-opus-4-8",
@@ -382,7 +388,7 @@ const PROVIDER = {
382
388
  OPENAI: {
383
389
  // https://platform.openai.com/docs/models
384
390
  DEFAULT: MODEL.SOL,
385
- /** @deprecated Size tiers are retired in 2.0. Use PROVIDER.OPENAI.DEFAULT, or pick a specific model from MODEL.*. */
391
+ /** @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.*. */
386
392
  MODEL: {
387
393
  DEFAULT: "gpt-5.4",
388
394
  LARGE: "gpt-5.5",
@@ -394,7 +400,7 @@ const PROVIDER = {
394
400
  },
395
401
  OPENROUTER: {
396
402
  DEFAULT: MODEL.OPENROUTER.SONNET,
397
- /** @deprecated Size tiers are retired in 2.0. Use PROVIDER.OPENROUTER.DEFAULT, or pick a specific route from MODEL.OPENROUTER.*. */
403
+ /** @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.*. */
398
404
  MODEL: {
399
405
  DEFAULT: "anthropic/claude-sonnet-4-6",
400
406
  LARGE: "anthropic/claude-opus-4-8",
@@ -415,7 +421,7 @@ const PROVIDER = {
415
421
  API_KEY: "XAI_API_KEY",
416
422
  BASE_URL: "https://api.x.ai/v1",
417
423
  DEFAULT: MODEL.GROK,
418
- /** @deprecated Size tiers are retired in 2.0. Use PROVIDER.XAI.DEFAULT, or pick a specific model from MODEL.*. */
424
+ /** @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.*. */
419
425
  MODEL: {
420
426
  DEFAULT: "grok-latest",
421
427
  LARGE: "grok-latest",
@@ -428,7 +434,7 @@ const PROVIDER = {
428
434
  };
429
435
  // Last: Defaults
430
436
  const DEFAULT = {
431
- /** @deprecated Size tiers are retired in 2.0. Use DEFAULT.PROVIDER.DEFAULT, or pick a specific model from MODEL.*. */
437
+ /** @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.*. */
432
438
  MODEL: {
433
439
  BASE: PROVIDER.OPENAI.MODEL.DEFAULT,
434
440
  LARGE: PROVIDER.OPENAI.MODEL.LARGE,
@@ -10653,7 +10659,14 @@ const getLogger$3 = () => log$2.lib({ lib: JAYPIE.LIB.LLM });
10653
10659
  // Client initialization
10654
10660
  async function initializeClient$3({ apiKey, } = {}) {
10655
10661
  const logger = getLogger$3();
10656
- const resolvedApiKey = apiKey || (await getEnvSecret("GEMINI_API_KEY"));
10662
+ let resolvedApiKey = apiKey || (await getEnvSecret("GOOGLE_API_KEY"));
10663
+ if (!resolvedApiKey) {
10664
+ const geminiApiKey = await getEnvSecret("GEMINI_API_KEY");
10665
+ if (geminiApiKey) {
10666
+ logger.warn("GEMINI_API_KEY is a deprecated fallback; set GOOGLE_API_KEY instead");
10667
+ resolvedApiKey = geminiApiKey;
10668
+ }
10669
+ }
10657
10670
  if (!resolvedApiKey) {
10658
10671
  throw new ConfigurationError("The application could not resolve the requested keys");
10659
10672
  }