@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
|
@@ -8,7 +8,7 @@ import { OpenAiAdapter } from "./OpenAiAdapter.js";
|
|
|
8
8
|
*/
|
|
9
9
|
export declare class XaiAdapter extends OpenAiAdapter {
|
|
10
10
|
readonly name: "xai";
|
|
11
|
-
readonly defaultModel: "grok-
|
|
11
|
+
readonly defaultModel: "grok-latest";
|
|
12
12
|
classifyError(error: unknown): ClassifiedError;
|
|
13
13
|
}
|
|
14
14
|
export declare const xaiAdapter: XaiAdapter;
|
package/dist/esm/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/esm/index.js
CHANGED
|
@@ -23,7 +23,7 @@ const FIRST_CLASS_PROVIDER = {
|
|
|
23
23
|
GEMINI: {
|
|
24
24
|
DEFAULT: "gemini-3.1-pro-preview",
|
|
25
25
|
LARGE: "gemini-3.1-pro-preview",
|
|
26
|
-
SMALL: "gemini-3-flash-preview",
|
|
26
|
+
SMALL: "gemini-3.1-flash-lite-preview",
|
|
27
27
|
TINY: "gemini-3.1-flash-lite-preview",
|
|
28
28
|
},
|
|
29
29
|
// https://developers.openai.com/api/docs/models
|
|
@@ -35,9 +35,9 @@ const FIRST_CLASS_PROVIDER = {
|
|
|
35
35
|
},
|
|
36
36
|
// https://docs.x.ai/developers/models
|
|
37
37
|
XAI: {
|
|
38
|
-
DEFAULT: "grok-
|
|
39
|
-
LARGE: "grok-4.
|
|
40
|
-
SMALL: "grok-4
|
|
38
|
+
DEFAULT: "grok-latest",
|
|
39
|
+
LARGE: "grok-4.3-latest",
|
|
40
|
+
SMALL: "grok-4-1-fast-reasoning",
|
|
41
41
|
TINY: "grok-4-1-fast-non-reasoning",
|
|
42
42
|
},
|
|
43
43
|
};
|
|
@@ -5282,7 +5282,7 @@ class OperateLoop {
|
|
|
5282
5282
|
};
|
|
5283
5283
|
const toolResultFormatted = this.adapter.formatToolResult(toolCall, errorResult);
|
|
5284
5284
|
state.responseBuilder.appendToHistory(toolResultFormatted);
|
|
5285
|
-
log.
|
|
5285
|
+
log.warn(`Error executing function call ${toolCall.name}`);
|
|
5286
5286
|
log.var({ error });
|
|
5287
5287
|
// Track consecutive errors and stop if threshold reached
|
|
5288
5288
|
state.consecutiveToolErrors++;
|
|
@@ -5777,7 +5777,7 @@ class StreamLoop {
|
|
|
5777
5777
|
call_id: toolCall.callId,
|
|
5778
5778
|
name: toolCall.name,
|
|
5779
5779
|
});
|
|
5780
|
-
log.
|
|
5780
|
+
log.warn(`Error executing function call ${toolCall.name}`);
|
|
5781
5781
|
log.var({ error });
|
|
5782
5782
|
// Track consecutive errors and stop if threshold reached
|
|
5783
5783
|
state.consecutiveToolErrors++;
|