@jaypie/llm 1.3.0 → 1.3.1
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 +9 -0
- package/dist/cjs/constants.d.ts +82 -30
- package/dist/cjs/index.cjs +3081 -578
- package/dist/cjs/index.cjs.map +1 -1
- package/dist/cjs/index.d.ts +5 -1
- package/dist/cjs/observability/llmobs.d.ts +72 -0
- package/dist/cjs/operate/OperateLoop.d.ts +7 -0
- package/dist/cjs/operate/StreamLoop.d.ts +3 -0
- package/dist/cjs/operate/adapters/AnthropicAdapter.d.ts +36 -5
- package/dist/cjs/operate/adapters/BedrockAdapter.d.ts +78 -0
- package/dist/cjs/operate/adapters/{GeminiAdapter.d.ts → GoogleAdapter.d.ts} +19 -9
- package/dist/cjs/operate/adapters/OpenAiAdapter.d.ts +13 -3
- package/dist/cjs/operate/adapters/OpenRouterAdapter.d.ts +55 -8
- package/dist/cjs/operate/adapters/ProviderAdapter.interface.d.ts +5 -3
- package/dist/cjs/operate/adapters/XaiAdapter.d.ts +14 -0
- package/dist/cjs/operate/adapters/index.d.ts +3 -1
- package/dist/cjs/operate/index.d.ts +1 -1
- package/dist/cjs/operate/retry/RetryExecutor.d.ts +6 -3
- package/dist/cjs/operate/retry/createStaleRejectionGuard.d.ts +19 -0
- package/dist/cjs/operate/retry/index.d.ts +1 -0
- package/dist/cjs/operate/retry/isTransientNetworkError.d.ts +18 -0
- package/dist/cjs/operate/types.d.ts +2 -0
- package/dist/cjs/providers/anthropic/utils.d.ts +1 -1
- package/dist/cjs/providers/bedrock/BedrockProvider.class.d.ts +21 -0
- package/dist/cjs/providers/bedrock/index.d.ts +1 -0
- package/dist/cjs/providers/bedrock/utils.d.ts +6 -0
- package/dist/cjs/providers/{gemini/GeminiProvider.class.d.ts → google/GoogleProvider.class.d.ts} +1 -1
- package/dist/cjs/providers/google/index.d.ts +3 -0
- package/dist/{esm/providers/gemini → cjs/providers/google}/types.d.ts +1 -0
- package/dist/cjs/providers/{gemini → google}/utils.d.ts +1 -1
- package/dist/cjs/providers/openai/utils.d.ts +1 -1
- package/dist/cjs/providers/openrouter/utils.d.ts +1 -1
- package/dist/{esm/providers/gemini/GeminiProvider.class.d.ts → cjs/providers/xai/XaiProvider.class.d.ts} +1 -1
- package/dist/cjs/providers/xai/index.d.ts +1 -0
- package/dist/cjs/providers/xai/utils.d.ts +5 -0
- package/dist/cjs/types/LlmProvider.interface.d.ts +1 -1
- package/dist/cjs/types/LlmStreamChunk.interface.d.ts +2 -0
- package/dist/cjs/util/fillFormatArrays.d.ts +17 -0
- package/dist/cjs/util/index.d.ts +2 -0
- package/dist/cjs/util/jsonSchemaToOpenApi3.d.ts +10 -0
- package/dist/cjs/util/logger.d.ts +1 -2
- package/dist/cjs/util/maxTurnsFromOptions.d.ts +1 -1
- package/dist/esm/constants.d.ts +82 -30
- package/dist/esm/index.d.ts +5 -1
- package/dist/esm/index.js +3077 -578
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/observability/llmobs.d.ts +72 -0
- package/dist/esm/operate/OperateLoop.d.ts +7 -0
- package/dist/esm/operate/StreamLoop.d.ts +3 -0
- package/dist/esm/operate/adapters/AnthropicAdapter.d.ts +36 -5
- package/dist/esm/operate/adapters/BedrockAdapter.d.ts +78 -0
- package/dist/esm/operate/adapters/{GeminiAdapter.d.ts → GoogleAdapter.d.ts} +19 -9
- package/dist/esm/operate/adapters/OpenAiAdapter.d.ts +13 -3
- package/dist/esm/operate/adapters/OpenRouterAdapter.d.ts +55 -8
- package/dist/esm/operate/adapters/ProviderAdapter.interface.d.ts +5 -3
- package/dist/esm/operate/adapters/XaiAdapter.d.ts +14 -0
- package/dist/esm/operate/adapters/index.d.ts +3 -1
- package/dist/esm/operate/index.d.ts +1 -1
- package/dist/esm/operate/retry/RetryExecutor.d.ts +6 -3
- package/dist/esm/operate/retry/createStaleRejectionGuard.d.ts +19 -0
- package/dist/esm/operate/retry/index.d.ts +1 -0
- package/dist/esm/operate/retry/isTransientNetworkError.d.ts +18 -0
- package/dist/esm/operate/types.d.ts +2 -0
- package/dist/esm/providers/anthropic/utils.d.ts +1 -1
- package/dist/esm/providers/bedrock/BedrockProvider.class.d.ts +21 -0
- package/dist/esm/providers/bedrock/index.d.ts +1 -0
- package/dist/esm/providers/bedrock/utils.d.ts +6 -0
- package/dist/esm/providers/google/GoogleProvider.class.d.ts +21 -0
- package/dist/esm/providers/google/index.d.ts +3 -0
- package/dist/{cjs/providers/gemini → esm/providers/google}/types.d.ts +1 -0
- package/dist/esm/providers/{gemini → google}/utils.d.ts +1 -1
- package/dist/esm/providers/openai/utils.d.ts +1 -1
- package/dist/esm/providers/openrouter/utils.d.ts +1 -1
- package/dist/esm/providers/xai/XaiProvider.class.d.ts +21 -0
- package/dist/esm/providers/xai/index.d.ts +1 -0
- package/dist/esm/providers/xai/utils.d.ts +5 -0
- package/dist/esm/types/LlmProvider.interface.d.ts +1 -1
- package/dist/esm/types/LlmStreamChunk.interface.d.ts +2 -0
- package/dist/esm/util/fillFormatArrays.d.ts +17 -0
- package/dist/esm/util/index.d.ts +2 -0
- package/dist/esm/util/jsonSchemaToOpenApi3.d.ts +10 -0
- package/dist/esm/util/logger.d.ts +1 -2
- package/dist/esm/util/maxTurnsFromOptions.d.ts +1 -1
- package/package.json +8 -1
- package/dist/cjs/providers/gemini/index.d.ts +0 -3
- package/dist/esm/providers/gemini/index.d.ts +0 -3
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { GoogleGenAI } from "@google/genai";
|
|
2
2
|
import { LlmMessageOptions } from "../../types/LlmProvider.interface.js";
|
|
3
3
|
export declare function loadSdk(): Promise<typeof import("@google/genai")>;
|
|
4
|
-
export declare const getLogger: () =>
|
|
4
|
+
export declare const getLogger: () => import("@jaypie/logger/dist/esm/JaypieLogger.js").default;
|
|
5
5
|
export declare function initializeClient({ apiKey, }?: {
|
|
6
6
|
apiKey?: string;
|
|
7
7
|
}): Promise<GoogleGenAI>;
|
|
@@ -2,7 +2,7 @@ import { JsonObject, NaturalSchema } from "@jaypie/types";
|
|
|
2
2
|
import { OpenAI } from "openai";
|
|
3
3
|
import { z } from "zod/v4";
|
|
4
4
|
import { LlmMessageOptions } from "../../types/LlmProvider.interface.js";
|
|
5
|
-
export declare const getLogger: () =>
|
|
5
|
+
export declare const getLogger: () => import("@jaypie/logger/dist/esm/JaypieLogger.js").default;
|
|
6
6
|
export declare function initializeClient({ apiKey, }?: {
|
|
7
7
|
apiKey?: string;
|
|
8
8
|
}): Promise<OpenAI>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { OpenRouter } from "@openrouter/sdk";
|
|
2
2
|
import { LlmMessageOptions } from "../../types/LlmProvider.interface.js";
|
|
3
3
|
export declare function loadSdk(): Promise<typeof import("@openrouter/sdk")>;
|
|
4
|
-
export declare const getLogger: () =>
|
|
4
|
+
export declare const getLogger: () => import("@jaypie/logger/dist/esm/JaypieLogger.js").default;
|
|
5
5
|
export declare function initializeClient({ apiKey, }?: {
|
|
6
6
|
apiKey?: string;
|
|
7
7
|
}): Promise<OpenRouter>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { JsonObject } from "@jaypie/types";
|
|
2
2
|
import { LlmHistory, LlmInputMessage, LlmMessageOptions, LlmOperateOptions, LlmOperateResponse, LlmProvider } from "../../types/LlmProvider.interface.js";
|
|
3
3
|
import { LlmStreamChunk } from "../../types/LlmStreamChunk.interface.js";
|
|
4
|
-
export declare class
|
|
4
|
+
export declare class XaiProvider implements LlmProvider {
|
|
5
5
|
private model;
|
|
6
6
|
private _client?;
|
|
7
7
|
private _operateLoop?;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { XaiProvider } from "./XaiProvider.class.js";
|
|
@@ -149,7 +149,7 @@ export type LlmHistory = LlmHistoryItem[];
|
|
|
149
149
|
* Used when the primary provider fails with an unrecoverable error.
|
|
150
150
|
*/
|
|
151
151
|
export interface LlmFallbackConfig {
|
|
152
|
-
/** Provider name (e.g., "openai", "anthropic", "
|
|
152
|
+
/** Provider name (e.g., "openai", "anthropic", "google") */
|
|
153
153
|
provider: string;
|
|
154
154
|
/** Model to use with this provider (optional, uses provider default if not specified) */
|
|
155
155
|
model?: string;
|
|
@@ -16,6 +16,8 @@ export interface LlmStreamChunkToolCall {
|
|
|
16
16
|
id: string;
|
|
17
17
|
name: string;
|
|
18
18
|
arguments: string;
|
|
19
|
+
/** Provider-specific metadata preserved through tool-call roundtrip */
|
|
20
|
+
metadata?: Record<string, unknown>;
|
|
19
21
|
};
|
|
20
22
|
}
|
|
21
23
|
export interface LlmStreamChunkToolResult {
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { z } from "zod/v4";
|
|
2
|
+
import { JsonObject, NaturalSchema } from "@jaypie/types";
|
|
3
|
+
type Format = JsonObject | NaturalSchema | z.ZodType;
|
|
4
|
+
/**
|
|
5
|
+
* Ensure every array field declared in `format` is present in `content` as an
|
|
6
|
+
* array. A declared `format` is a schema contract: an empty list should surface
|
|
7
|
+
* as `[]`, not be dropped from the response. Some providers/models omit empty
|
|
8
|
+
* array fields entirely, leaving consumers to read `.length` on `undefined`.
|
|
9
|
+
*
|
|
10
|
+
* Only mutates a (cloned) structured object; strings and non-objects pass
|
|
11
|
+
* through untouched.
|
|
12
|
+
*/
|
|
13
|
+
export declare function fillFormatArrays({ content, format, }: {
|
|
14
|
+
content: JsonObject;
|
|
15
|
+
format: Format;
|
|
16
|
+
}): JsonObject;
|
|
17
|
+
export {};
|
package/dist/cjs/util/index.d.ts
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
export * from "./determineModelProvider.js";
|
|
2
2
|
export * from "./extractReasoning.js";
|
|
3
|
+
export * from "./fillFormatArrays.js";
|
|
3
4
|
export * from "./formatOperateInput.js";
|
|
4
5
|
export * from "./formatOperateMessage.js";
|
|
6
|
+
export * from "./jsonSchemaToOpenApi3.js";
|
|
5
7
|
export * from "./logger.js";
|
|
6
8
|
export * from "./maxTurnsFromOptions.js";
|
|
7
9
|
export * from "./naturalZodSchema.js";
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { JsonObject } from "@jaypie/types";
|
|
2
|
+
/**
|
|
3
|
+
* Converts a JSON Schema (Draft 2020-12) object to the OpenAPI 3.0 schema subset
|
|
4
|
+
* that Gemini's `responseSchema` accepts. This constrains generation (not just validation)
|
|
5
|
+
* and avoids the `items`-keyword leakage bug in `responseJsonSchema`.
|
|
6
|
+
*
|
|
7
|
+
* Strips: $schema, additionalProperties, $defs, $ref (inlines where possible), const
|
|
8
|
+
* Preserves: type, properties, required, items, enum, description, nullable
|
|
9
|
+
*/
|
|
10
|
+
export declare function jsonSchemaToOpenApi3(schema: JsonObject): JsonObject;
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
export declare const getLogger: () =>
|
|
2
|
-
export declare const log: any;
|
|
1
|
+
export declare const getLogger: () => import("@jaypie/logger/dist/esm/JaypieLogger").default;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { LlmOperateOptions } from "../types/LlmProvider.interface.js";
|
|
2
2
|
export declare const MAX_TURNS_ABSOLUTE_LIMIT = 72;
|
|
3
|
-
export declare const MAX_TURNS_DEFAULT_LIMIT =
|
|
3
|
+
export declare const MAX_TURNS_DEFAULT_LIMIT = 24;
|
|
4
4
|
/**
|
|
5
5
|
* Determines the maximum number of turns based on the provided options
|
|
6
6
|
*
|
package/dist/esm/constants.d.ts
CHANGED
|
@@ -1,12 +1,37 @@
|
|
|
1
|
+
export declare const MODEL: {
|
|
2
|
+
OPUS: string;
|
|
3
|
+
SONNET: string;
|
|
4
|
+
HAIKU: string;
|
|
5
|
+
FABLE: string;
|
|
6
|
+
MYTHOS: string;
|
|
7
|
+
GEMINI_FLASH: string;
|
|
8
|
+
GEMINI_FLASH_LITE: string;
|
|
9
|
+
GEMINI_PRO: string;
|
|
10
|
+
GPT: string;
|
|
11
|
+
GPT_MINI: string;
|
|
12
|
+
GPT_NANO: string;
|
|
13
|
+
GROK: string;
|
|
14
|
+
};
|
|
1
15
|
export declare const PROVIDER: {
|
|
16
|
+
readonly BEDROCK: {
|
|
17
|
+
readonly MODEL: {
|
|
18
|
+
readonly DEFAULT: "amazon.nova-lite-v1:0";
|
|
19
|
+
readonly LARGE: "amazon.nova-pro-v1:0";
|
|
20
|
+
readonly SMALL: "amazon.nova-lite-v1:0";
|
|
21
|
+
readonly TINY: "amazon.nova-micro-v1:0";
|
|
22
|
+
};
|
|
23
|
+
readonly MODEL_MATCH_WORDS: readonly ["amazon.nova", "amazon.titan", "anthropic.claude", "cohere.command", "meta.llama", "mistral.mistral", "ai21."];
|
|
24
|
+
readonly NAME: "bedrock";
|
|
25
|
+
readonly REGION: "AWS_REGION";
|
|
26
|
+
};
|
|
2
27
|
readonly ANTHROPIC: {
|
|
3
28
|
readonly MAX_TOKENS: {
|
|
4
29
|
readonly DEFAULT: 4096;
|
|
5
30
|
};
|
|
6
31
|
readonly MODEL: {
|
|
7
|
-
readonly DEFAULT: "claude-sonnet-4-
|
|
8
|
-
readonly LARGE: "claude-opus-4-
|
|
9
|
-
readonly SMALL: "claude-sonnet-4-
|
|
32
|
+
readonly DEFAULT: "claude-sonnet-4-6";
|
|
33
|
+
readonly LARGE: "claude-opus-4-8";
|
|
34
|
+
readonly SMALL: "claude-sonnet-4-6";
|
|
10
35
|
readonly TINY: "claude-haiku-4-5";
|
|
11
36
|
};
|
|
12
37
|
readonly MODEL_MATCH_WORDS: readonly ["anthropic", "claude", "haiku", "opus", "sonnet"];
|
|
@@ -24,15 +49,30 @@ export declare const PROVIDER: {
|
|
|
24
49
|
readonly SCHEMA_VERSION: "v2";
|
|
25
50
|
};
|
|
26
51
|
};
|
|
52
|
+
/** @deprecated Use PROVIDER.GOOGLE — "Google" is the provider; Gemini is the model family */
|
|
27
53
|
readonly GEMINI: {
|
|
28
54
|
readonly MODEL: {
|
|
29
|
-
readonly DEFAULT: "gemini-3-pro-preview";
|
|
30
|
-
readonly LARGE: "gemini-3-pro-preview";
|
|
31
|
-
readonly SMALL: "gemini-3-flash
|
|
32
|
-
readonly TINY: "gemini-3-flash-
|
|
55
|
+
readonly DEFAULT: "gemini-3.1-pro-preview";
|
|
56
|
+
readonly LARGE: "gemini-3.1-pro-preview";
|
|
57
|
+
readonly SMALL: "gemini-3.5-flash";
|
|
58
|
+
readonly TINY: "gemini-3.1-flash-lite";
|
|
33
59
|
};
|
|
34
60
|
readonly MODEL_MATCH_WORDS: readonly ["gemini", "google"];
|
|
35
|
-
readonly NAME: "
|
|
61
|
+
readonly NAME: "google";
|
|
62
|
+
readonly ROLE: {
|
|
63
|
+
readonly MODEL: "model";
|
|
64
|
+
readonly USER: "user";
|
|
65
|
+
};
|
|
66
|
+
};
|
|
67
|
+
readonly GOOGLE: {
|
|
68
|
+
readonly MODEL: {
|
|
69
|
+
readonly DEFAULT: "gemini-3.1-pro-preview";
|
|
70
|
+
readonly LARGE: "gemini-3.1-pro-preview";
|
|
71
|
+
readonly SMALL: "gemini-3.5-flash";
|
|
72
|
+
readonly TINY: "gemini-3.1-flash-lite";
|
|
73
|
+
};
|
|
74
|
+
readonly MODEL_MATCH_WORDS: readonly ["gemini", "google"];
|
|
75
|
+
readonly NAME: "google";
|
|
36
76
|
readonly ROLE: {
|
|
37
77
|
readonly MODEL: "model";
|
|
38
78
|
readonly USER: "user";
|
|
@@ -40,20 +80,20 @@ export declare const PROVIDER: {
|
|
|
40
80
|
};
|
|
41
81
|
readonly OPENAI: {
|
|
42
82
|
readonly MODEL: {
|
|
43
|
-
readonly DEFAULT: "gpt-5.
|
|
44
|
-
readonly LARGE: "gpt-5.
|
|
45
|
-
readonly SMALL: "gpt-5-mini";
|
|
46
|
-
readonly TINY: "gpt-5-nano";
|
|
83
|
+
readonly DEFAULT: "gpt-5.4";
|
|
84
|
+
readonly LARGE: "gpt-5.5";
|
|
85
|
+
readonly SMALL: "gpt-5.4-mini";
|
|
86
|
+
readonly TINY: "gpt-5.4-nano";
|
|
47
87
|
};
|
|
48
88
|
readonly MODEL_MATCH_WORDS: readonly ["openai", "gpt", RegExp];
|
|
49
89
|
readonly NAME: "openai";
|
|
50
90
|
};
|
|
51
91
|
readonly OPENROUTER: {
|
|
52
92
|
readonly MODEL: {
|
|
53
|
-
readonly DEFAULT: "
|
|
54
|
-
readonly LARGE: "
|
|
55
|
-
readonly SMALL: "
|
|
56
|
-
readonly TINY: "
|
|
93
|
+
readonly DEFAULT: "anthropic/claude-sonnet-4-6";
|
|
94
|
+
readonly LARGE: "anthropic/claude-opus-4-8";
|
|
95
|
+
readonly SMALL: "anthropic/claude-sonnet-4-6";
|
|
96
|
+
readonly TINY: "anthropic/claude-haiku-4-5";
|
|
57
97
|
};
|
|
58
98
|
readonly MODEL_MATCH_WORDS: readonly ["openrouter"];
|
|
59
99
|
readonly NAME: "openrouter";
|
|
@@ -64,30 +104,42 @@ export declare const PROVIDER: {
|
|
|
64
104
|
readonly USER: "user";
|
|
65
105
|
};
|
|
66
106
|
};
|
|
107
|
+
readonly XAI: {
|
|
108
|
+
readonly API_KEY: "XAI_API_KEY";
|
|
109
|
+
readonly BASE_URL: "https://api.x.ai/v1";
|
|
110
|
+
readonly MODEL: {
|
|
111
|
+
readonly DEFAULT: "grok-latest";
|
|
112
|
+
readonly LARGE: "grok-4.3-latest";
|
|
113
|
+
readonly SMALL: "grok-4-1-fast-reasoning";
|
|
114
|
+
readonly TINY: "grok-4-1-fast-non-reasoning";
|
|
115
|
+
};
|
|
116
|
+
readonly MODEL_MATCH_WORDS: readonly ["grok", "xai"];
|
|
117
|
+
readonly NAME: "xai";
|
|
118
|
+
};
|
|
67
119
|
};
|
|
68
|
-
export type LlmProviderName = typeof PROVIDER.ANTHROPIC.NAME | typeof PROVIDER.
|
|
120
|
+
export type LlmProviderName = typeof PROVIDER.ANTHROPIC.NAME | typeof PROVIDER.BEDROCK.NAME | typeof PROVIDER.GOOGLE.NAME | typeof PROVIDER.OPENAI.NAME | typeof PROVIDER.OPENROUTER.NAME | typeof PROVIDER.XAI.NAME;
|
|
69
121
|
export declare const DEFAULT: {
|
|
70
122
|
readonly MODEL: {
|
|
71
|
-
readonly BASE: "gpt-5.
|
|
72
|
-
readonly LARGE: "gpt-5.
|
|
73
|
-
readonly SMALL: "gpt-5-mini";
|
|
74
|
-
readonly TINY: "gpt-5-nano";
|
|
123
|
+
readonly BASE: "gpt-5.4";
|
|
124
|
+
readonly LARGE: "gpt-5.5";
|
|
125
|
+
readonly SMALL: "gpt-5.4-mini";
|
|
126
|
+
readonly TINY: "gpt-5.4-nano";
|
|
75
127
|
};
|
|
76
128
|
readonly PROVIDER: {
|
|
77
129
|
readonly MODEL: {
|
|
78
|
-
readonly DEFAULT: "gpt-5.
|
|
79
|
-
readonly LARGE: "gpt-5.
|
|
80
|
-
readonly SMALL: "gpt-5-mini";
|
|
81
|
-
readonly TINY: "gpt-5-nano";
|
|
130
|
+
readonly DEFAULT: "gpt-5.4";
|
|
131
|
+
readonly LARGE: "gpt-5.5";
|
|
132
|
+
readonly SMALL: "gpt-5.4-mini";
|
|
133
|
+
readonly TINY: "gpt-5.4-nano";
|
|
82
134
|
};
|
|
83
135
|
readonly MODEL_MATCH_WORDS: readonly ["openai", "gpt", RegExp];
|
|
84
136
|
readonly NAME: "openai";
|
|
85
137
|
};
|
|
86
138
|
};
|
|
87
139
|
export declare const ALL: {
|
|
88
|
-
readonly BASE: readonly ["claude-sonnet-4-
|
|
89
|
-
readonly COMBINED: readonly
|
|
90
|
-
readonly LARGE: readonly ["claude-opus-4-
|
|
91
|
-
readonly SMALL: readonly ["claude-sonnet-4-
|
|
92
|
-
readonly TINY: readonly ["claude-haiku-4-5", "gemini-3-flash-
|
|
140
|
+
readonly BASE: readonly ["claude-sonnet-4-6", "gemini-3.1-pro-preview", "gpt-5.4", "grok-latest"];
|
|
141
|
+
readonly COMBINED: readonly ("claude-sonnet-4-6" | "claude-opus-4-8" | "claude-haiku-4-5" | "gemini-3.1-pro-preview" | "gemini-3.5-flash" | "gemini-3.1-flash-lite" | "gpt-5.4" | "gpt-5.5" | "gpt-5.4-mini" | "gpt-5.4-nano" | "grok-latest" | "grok-4.3-latest" | "grok-4-1-fast-reasoning" | "grok-4-1-fast-non-reasoning")[];
|
|
142
|
+
readonly LARGE: readonly ["claude-opus-4-8", "gemini-3.1-pro-preview", "gpt-5.5", "grok-4.3-latest"];
|
|
143
|
+
readonly SMALL: readonly ["claude-sonnet-4-6", "gemini-3.5-flash", "gpt-5.4-mini", "grok-4-1-fast-reasoning"];
|
|
144
|
+
readonly TINY: readonly ["claude-haiku-4-5", "gemini-3.1-flash-lite", "gpt-5.4-nano", "grok-4-1-fast-non-reasoning"];
|
|
93
145
|
};
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -8,5 +8,9 @@ export type { LlmStreamChunk, LlmStreamChunkDone, LlmStreamChunkError, LlmStream
|
|
|
8
8
|
export { LlmStreamChunkType } from "./types/LlmStreamChunk.interface.js";
|
|
9
9
|
export { JaypieToolkit, toolkit, Toolkit, tools } from "./tools/index.js";
|
|
10
10
|
export { extractReasoning } from "./util/extractReasoning.js";
|
|
11
|
-
export {
|
|
11
|
+
export { BedrockProvider } from "./providers/bedrock/index.js";
|
|
12
|
+
/** @deprecated Use GoogleProvider — "Google" is the provider; Gemini is the model family */
|
|
13
|
+
export { GoogleProvider as GeminiProvider } from "./providers/google/index.js";
|
|
14
|
+
export { GoogleProvider } from "./providers/google/index.js";
|
|
12
15
|
export { OpenRouterProvider } from "./providers/openrouter/index.js";
|
|
16
|
+
export { XaiProvider } from "./providers/xai/index.js";
|