@jaypie/llm 1.1.21 → 1.1.23
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/dist/constants.d.ts +38 -4
- package/dist/index.d.ts +2 -2
- package/dist/index.js +429 -108
- package/dist/index.js.map +1 -1
- package/dist/providers/anthropic/AnthropicProvider.class.d.ts +15 -0
- package/dist/providers/anthropic/operate.d.ts +16 -0
- package/dist/providers/anthropic/utils.d.ts +7 -3
- package/dist/providers/openai/utils.d.ts +1 -1
- package/dist/tools/index.d.ts +1 -1
- package/dist/util/naturalZodSchema.d.ts +1 -1
- package/package.json +6 -5
- package/dist/providers/AnthropicProvider.class.d.ts +0 -20
package/dist/constants.d.ts
CHANGED
|
@@ -1,10 +1,24 @@
|
|
|
1
1
|
export declare const PROVIDER: {
|
|
2
2
|
readonly ANTHROPIC: {
|
|
3
3
|
readonly MODEL: {
|
|
4
|
+
readonly DEFAULT: "claude-sonnet-4-0";
|
|
5
|
+
readonly SMALL: "claude-3-5-haiku-latest";
|
|
6
|
+
readonly TINY: "claude-3-5-haiku-latest";
|
|
7
|
+
readonly LARGE: "claude-opus-4-0";
|
|
8
|
+
readonly JUMBO: "claude-opus-4-0";
|
|
9
|
+
readonly CLAUDE_OPUS_4: "claude-opus-4-0";
|
|
10
|
+
readonly CLAUDE_SONNET_4: "claude-sonnet-4-0";
|
|
4
11
|
readonly CLAUDE_3_HAIKU: "claude-3-5-haiku-latest";
|
|
5
12
|
readonly CLAUDE_3_OPUS: "claude-3-opus-latest";
|
|
6
|
-
readonly CLAUDE_3_SONNET: "claude-3-
|
|
7
|
-
readonly
|
|
13
|
+
readonly CLAUDE_3_SONNET: "claude-3-7-sonnet-latest";
|
|
14
|
+
readonly CLAUDE_OPUS_4_0: "claude-opus-4-0";
|
|
15
|
+
readonly CLAUDE_SONNET_4_0: "claude-sonnet-4-0";
|
|
16
|
+
readonly CLAUDE_3_7_SONNET: "claude-3-7-sonnet-latest\t";
|
|
17
|
+
readonly CLAUDE_3_5_SONNET: "claude-3-5-sonnet-latest";
|
|
18
|
+
readonly CLAUDE_3_5_HAIKU: "claude-3-5-haiku-latest";
|
|
19
|
+
readonly CLAUDE_HAIKU_3: "claude-3-5-haiku-latest";
|
|
20
|
+
readonly CLAUDE_OPUS_3: "claude-3-opus-latest";
|
|
21
|
+
readonly CLAUDE_SONNET_3: "claude-3-7-sonnet-latest";
|
|
8
22
|
};
|
|
9
23
|
readonly NAME: "anthropic";
|
|
10
24
|
readonly PROMPT: {
|
|
@@ -25,7 +39,14 @@ export declare const PROVIDER: {
|
|
|
25
39
|
};
|
|
26
40
|
readonly OPENAI: {
|
|
27
41
|
readonly MODEL: {
|
|
28
|
-
readonly DEFAULT: "gpt-
|
|
42
|
+
readonly DEFAULT: "gpt-4.1";
|
|
43
|
+
readonly SMALL: "gpt-4.1-mini";
|
|
44
|
+
readonly LARGE: "o3";
|
|
45
|
+
readonly TINY: "gpt-4.1-nano";
|
|
46
|
+
readonly JUMBO: "o3-pro";
|
|
47
|
+
readonly GPT_4_1: "gpt-4.1";
|
|
48
|
+
readonly GPT_4_1_MINI: "gpt-4.1-mini";
|
|
49
|
+
readonly GPT_4_1_NANO: "gpt-4.1-nano";
|
|
29
50
|
readonly GPT_4: "gpt-4";
|
|
30
51
|
readonly GPT_4_O_MINI: "gpt-4o-mini";
|
|
31
52
|
readonly GPT_4_O: "gpt-4o";
|
|
@@ -35,6 +56,9 @@ export declare const PROVIDER: {
|
|
|
35
56
|
readonly O1_PRO: "o1-pro";
|
|
36
57
|
readonly O3_MINI: "o3-mini";
|
|
37
58
|
readonly O3_MINI_HIGH: "o3-mini-high";
|
|
59
|
+
readonly O3: "o3";
|
|
60
|
+
readonly O3_PRO: "o3-pro";
|
|
61
|
+
readonly O4_MINI: "o4-mini";
|
|
38
62
|
};
|
|
39
63
|
readonly NAME: "openai";
|
|
40
64
|
};
|
|
@@ -43,7 +67,14 @@ export type LlmProviderName = typeof PROVIDER.OPENAI.NAME | typeof PROVIDER.ANTH
|
|
|
43
67
|
export declare const DEFAULT: {
|
|
44
68
|
readonly PROVIDER: {
|
|
45
69
|
readonly MODEL: {
|
|
46
|
-
readonly DEFAULT: "gpt-
|
|
70
|
+
readonly DEFAULT: "gpt-4.1";
|
|
71
|
+
readonly SMALL: "gpt-4.1-mini";
|
|
72
|
+
readonly LARGE: "o3";
|
|
73
|
+
readonly TINY: "gpt-4.1-nano";
|
|
74
|
+
readonly JUMBO: "o3-pro";
|
|
75
|
+
readonly GPT_4_1: "gpt-4.1";
|
|
76
|
+
readonly GPT_4_1_MINI: "gpt-4.1-mini";
|
|
77
|
+
readonly GPT_4_1_NANO: "gpt-4.1-nano";
|
|
47
78
|
readonly GPT_4: "gpt-4";
|
|
48
79
|
readonly GPT_4_O_MINI: "gpt-4o-mini";
|
|
49
80
|
readonly GPT_4_O: "gpt-4o";
|
|
@@ -53,6 +84,9 @@ export declare const DEFAULT: {
|
|
|
53
84
|
readonly O1_PRO: "o1-pro";
|
|
54
85
|
readonly O3_MINI: "o3-mini";
|
|
55
86
|
readonly O3_MINI_HIGH: "o3-mini-high";
|
|
87
|
+
readonly O3: "o3";
|
|
88
|
+
readonly O3_PRO: "o3-pro";
|
|
89
|
+
readonly O4_MINI: "o4-mini";
|
|
56
90
|
};
|
|
57
91
|
readonly NAME: "openai";
|
|
58
92
|
};
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { default as Llm } from "./Llm.js";
|
|
2
2
|
export * as LLM from "./constants.js";
|
|
3
|
-
export { LlmMessageOptions, LlmOperateOptions, LlmOperateResponse, LlmOptions, LlmProvider, } from "./types/LlmProvider.interface.js";
|
|
4
|
-
export { LlmTool } from "./types/LlmTool.interface.js";
|
|
3
|
+
export type { LlmMessageOptions, LlmOperateOptions, LlmOperateResponse, LlmOptions, LlmProvider, } from "./types/LlmProvider.interface.js";
|
|
4
|
+
export type { LlmTool } from "./types/LlmTool.interface.js";
|
|
5
5
|
export { toolkit, Toolkit, tools } from "./tools/index.js";
|