@jaypie/llm 1.2.34 → 1.2.36
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/cjs/constants.d.ts +8 -8
- package/dist/cjs/index.cjs +6 -6
- package/dist/cjs/index.cjs.map +1 -1
- package/dist/cjs/operate/adapters/XaiAdapter.d.ts +1 -1
- package/dist/esm/constants.d.ts +8 -8
- package/dist/esm/index.js +6 -6
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/operate/adapters/XaiAdapter.d.ts +1 -1
- package/package.json +1 -1
package/dist/cjs/constants.d.ts
CHANGED
|
@@ -28,7 +28,7 @@ export declare const PROVIDER: {
|
|
|
28
28
|
readonly MODEL: {
|
|
29
29
|
readonly DEFAULT: "gemini-3.1-pro-preview";
|
|
30
30
|
readonly LARGE: "gemini-3.1-pro-preview";
|
|
31
|
-
readonly SMALL: "gemini-3-flash-preview";
|
|
31
|
+
readonly SMALL: "gemini-3.1-flash-lite-preview";
|
|
32
32
|
readonly TINY: "gemini-3.1-flash-lite-preview";
|
|
33
33
|
};
|
|
34
34
|
readonly MODEL_MATCH_WORDS: readonly ["gemini", "google"];
|
|
@@ -68,9 +68,9 @@ export declare const PROVIDER: {
|
|
|
68
68
|
readonly API_KEY: "XAI_API_KEY";
|
|
69
69
|
readonly BASE_URL: "https://api.x.ai/v1";
|
|
70
70
|
readonly MODEL: {
|
|
71
|
-
readonly DEFAULT: "grok-
|
|
72
|
-
readonly LARGE: "grok-4.
|
|
73
|
-
readonly SMALL: "grok-4
|
|
71
|
+
readonly DEFAULT: "grok-latest";
|
|
72
|
+
readonly LARGE: "grok-4.3-latest";
|
|
73
|
+
readonly SMALL: "grok-4-1-fast-reasoning";
|
|
74
74
|
readonly TINY: "grok-4-1-fast-non-reasoning";
|
|
75
75
|
};
|
|
76
76
|
readonly MODEL_MATCH_WORDS: readonly ["grok", "xai"];
|
|
@@ -97,9 +97,9 @@ export declare const DEFAULT: {
|
|
|
97
97
|
};
|
|
98
98
|
};
|
|
99
99
|
export declare const ALL: {
|
|
100
|
-
readonly BASE: readonly ["claude-sonnet-4-6", "gemini-3.1-pro-preview", "gpt-5.4", "grok-
|
|
101
|
-
readonly COMBINED: readonly ("claude-sonnet-4-6" | "claude-opus-4-7" | "claude-haiku-4-5" | "gemini-3.1-pro-preview" | "gemini-3
|
|
102
|
-
readonly LARGE: readonly ["claude-opus-4-7", "gemini-3.1-pro-preview", "gpt-5.5", "grok-4.
|
|
103
|
-
readonly SMALL: readonly ["claude-sonnet-4-6", "gemini-3-flash-preview", "gpt-5.4-mini", "grok-4
|
|
100
|
+
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-7" | "claude-haiku-4-5" | "gemini-3.1-pro-preview" | "gemini-3.1-flash-lite-preview" | "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")[];
|
|
102
|
+
readonly LARGE: readonly ["claude-opus-4-7", "gemini-3.1-pro-preview", "gpt-5.5", "grok-4.3-latest"];
|
|
103
|
+
readonly SMALL: readonly ["claude-sonnet-4-6", "gemini-3.1-flash-lite-preview", "gpt-5.4-mini", "grok-4-1-fast-reasoning"];
|
|
104
104
|
readonly TINY: readonly ["claude-haiku-4-5", "gemini-3.1-flash-lite-preview", "gpt-5.4-nano", "grok-4-1-fast-non-reasoning"];
|
|
105
105
|
};
|
package/dist/cjs/index.cjs
CHANGED
|
@@ -25,7 +25,7 @@ const FIRST_CLASS_PROVIDER = {
|
|
|
25
25
|
GEMINI: {
|
|
26
26
|
DEFAULT: "gemini-3.1-pro-preview",
|
|
27
27
|
LARGE: "gemini-3.1-pro-preview",
|
|
28
|
-
SMALL: "gemini-3-flash-preview",
|
|
28
|
+
SMALL: "gemini-3.1-flash-lite-preview",
|
|
29
29
|
TINY: "gemini-3.1-flash-lite-preview",
|
|
30
30
|
},
|
|
31
31
|
// https://developers.openai.com/api/docs/models
|
|
@@ -37,9 +37,9 @@ const FIRST_CLASS_PROVIDER = {
|
|
|
37
37
|
},
|
|
38
38
|
// https://docs.x.ai/developers/models
|
|
39
39
|
XAI: {
|
|
40
|
-
DEFAULT: "grok-
|
|
41
|
-
LARGE: "grok-4.
|
|
42
|
-
SMALL: "grok-4
|
|
40
|
+
DEFAULT: "grok-latest",
|
|
41
|
+
LARGE: "grok-4.3-latest",
|
|
42
|
+
SMALL: "grok-4-1-fast-reasoning",
|
|
43
43
|
TINY: "grok-4-1-fast-non-reasoning",
|
|
44
44
|
},
|
|
45
45
|
};
|
|
@@ -5284,7 +5284,7 @@ class OperateLoop {
|
|
|
5284
5284
|
};
|
|
5285
5285
|
const toolResultFormatted = this.adapter.formatToolResult(toolCall, errorResult);
|
|
5286
5286
|
state.responseBuilder.appendToHistory(toolResultFormatted);
|
|
5287
|
-
log.
|
|
5287
|
+
log.warn(`Error executing function call ${toolCall.name}`);
|
|
5288
5288
|
log.var({ error });
|
|
5289
5289
|
// Track consecutive errors and stop if threshold reached
|
|
5290
5290
|
state.consecutiveToolErrors++;
|
|
@@ -5779,7 +5779,7 @@ class StreamLoop {
|
|
|
5779
5779
|
call_id: toolCall.callId,
|
|
5780
5780
|
name: toolCall.name,
|
|
5781
5781
|
});
|
|
5782
|
-
log.
|
|
5782
|
+
log.warn(`Error executing function call ${toolCall.name}`);
|
|
5783
5783
|
log.var({ error });
|
|
5784
5784
|
// Track consecutive errors and stop if threshold reached
|
|
5785
5785
|
state.consecutiveToolErrors++;
|