@jaypie/llm 1.2.28 → 1.2.29
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.
|
@@ -1,11 +1,14 @@
|
|
|
1
|
+
import { ClassifiedError } from "../types.js";
|
|
1
2
|
import { OpenAiAdapter } from "./OpenAiAdapter.js";
|
|
2
3
|
/**
|
|
3
4
|
* XaiAdapter extends OpenAiAdapter since xAI (Grok) uses an OpenAI-compatible API.
|
|
4
|
-
*
|
|
5
|
-
*
|
|
5
|
+
* Name, default model, and transient-ingest-error detection are overridden;
|
|
6
|
+
* all request building, response parsing, tool handling, and streaming are
|
|
7
|
+
* inherited.
|
|
6
8
|
*/
|
|
7
9
|
export declare class XaiAdapter extends OpenAiAdapter {
|
|
8
10
|
readonly name: "xai";
|
|
9
11
|
readonly defaultModel: "grok-4.20-0309-reasoning";
|
|
12
|
+
classifyError(error: unknown): ClassifiedError;
|
|
10
13
|
}
|
|
11
14
|
export declare const xaiAdapter: XaiAdapter;
|