@jaypie/llm 1.2.36 → 1.2.38
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 +49 -9
- package/dist/cjs/index.cjs +834 -82
- package/dist/cjs/index.cjs.map +1 -1
- package/dist/cjs/index.d.ts +4 -1
- package/dist/cjs/operate/adapters/BedrockAdapter.d.ts +78 -0
- package/dist/cjs/operate/adapters/{GeminiAdapter.d.ts → GoogleAdapter.d.ts} +4 -4
- package/dist/cjs/operate/adapters/index.d.ts +2 -1
- package/dist/cjs/operate/index.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/cjs/types/LlmProvider.interface.d.ts +1 -1
- package/dist/esm/constants.d.ts +49 -9
- package/dist/esm/index.d.ts +4 -1
- package/dist/esm/index.js +832 -82
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/operate/adapters/BedrockAdapter.d.ts +78 -0
- package/dist/esm/operate/adapters/{GeminiAdapter.d.ts → GoogleAdapter.d.ts} +4 -4
- package/dist/esm/operate/adapters/index.d.ts +2 -1
- package/dist/esm/operate/index.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/{gemini/GeminiProvider.class.d.ts → google/GoogleProvider.class.d.ts} +1 -1
- package/dist/esm/providers/google/index.d.ts +3 -0
- package/dist/esm/types/LlmProvider.interface.d.ts +1 -1
- package/package.json +7 -1
- package/dist/cjs/providers/gemini/index.d.ts +0 -3
- package/dist/esm/providers/gemini/index.d.ts +0 -3
- /package/dist/cjs/providers/{gemini → google}/types.d.ts +0 -0
- /package/dist/cjs/providers/{gemini → google}/utils.d.ts +0 -0
- /package/dist/esm/providers/{gemini → google}/types.d.ts +0 -0
- /package/dist/esm/providers/{gemini → google}/utils.d.ts +0 -0
package/README.md
ADDED
package/dist/cjs/constants.d.ts
CHANGED
|
@@ -1,11 +1,36 @@
|
|
|
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
32
|
readonly DEFAULT: "claude-sonnet-4-6";
|
|
8
|
-
readonly LARGE: "claude-opus-4-
|
|
33
|
+
readonly LARGE: "claude-opus-4-8";
|
|
9
34
|
readonly SMALL: "claude-sonnet-4-6";
|
|
10
35
|
readonly TINY: "claude-haiku-4-5";
|
|
11
36
|
};
|
|
@@ -24,12 +49,27 @@ 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
55
|
readonly DEFAULT: "gemini-3.1-pro-preview";
|
|
30
56
|
readonly LARGE: "gemini-3.1-pro-preview";
|
|
31
|
-
readonly SMALL: "gemini-3.
|
|
32
|
-
readonly TINY: "gemini-3.1-flash-lite
|
|
57
|
+
readonly SMALL: "gemini-3.5-flash";
|
|
58
|
+
readonly TINY: "gemini-3.1-flash-lite";
|
|
59
|
+
};
|
|
60
|
+
readonly MODEL_MATCH_WORDS: readonly ["gemini", "google"];
|
|
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";
|
|
33
73
|
};
|
|
34
74
|
readonly MODEL_MATCH_WORDS: readonly ["gemini", "google"];
|
|
35
75
|
readonly NAME: "google";
|
|
@@ -51,7 +91,7 @@ export declare const PROVIDER: {
|
|
|
51
91
|
readonly OPENROUTER: {
|
|
52
92
|
readonly MODEL: {
|
|
53
93
|
readonly DEFAULT: "anthropic/claude-sonnet-4-6";
|
|
54
|
-
readonly LARGE: "anthropic/claude-opus-4-
|
|
94
|
+
readonly LARGE: "anthropic/claude-opus-4-8";
|
|
55
95
|
readonly SMALL: "anthropic/claude-sonnet-4-6";
|
|
56
96
|
readonly TINY: "anthropic/claude-haiku-4-5";
|
|
57
97
|
};
|
|
@@ -77,7 +117,7 @@ export declare const PROVIDER: {
|
|
|
77
117
|
readonly NAME: "xai";
|
|
78
118
|
};
|
|
79
119
|
};
|
|
80
|
-
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;
|
|
81
121
|
export declare const DEFAULT: {
|
|
82
122
|
readonly MODEL: {
|
|
83
123
|
readonly BASE: "gpt-5.4";
|
|
@@ -98,8 +138,8 @@ export declare const DEFAULT: {
|
|
|
98
138
|
};
|
|
99
139
|
export declare const ALL: {
|
|
100
140
|
readonly BASE: readonly ["claude-sonnet-4-6", "gemini-3.1-pro-preview", "gpt-5.4", "grok-latest"];
|
|
101
|
-
readonly COMBINED: readonly ("claude-sonnet-4-6" | "claude-opus-4-
|
|
102
|
-
readonly LARGE: readonly ["claude-opus-4-
|
|
103
|
-
readonly SMALL: readonly ["claude-sonnet-4-6", "gemini-3.
|
|
104
|
-
readonly TINY: readonly ["claude-haiku-4-5", "gemini-3.1-flash-lite
|
|
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"];
|
|
105
145
|
};
|