@hasna/terminal 0.2.0 → 0.2.1
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/ai.js +3 -3
- package/dist/providers/cerebras.js +1 -1
- package/package.json +1 -1
- package/src/ai.ts +3 -3
- package/src/providers/cerebras.ts +1 -1
package/dist/ai.js
CHANGED
|
@@ -20,10 +20,10 @@ function pickModel(nl) {
|
|
|
20
20
|
pick: isComplex ? "smart" : "fast",
|
|
21
21
|
};
|
|
22
22
|
}
|
|
23
|
-
// Cerebras —
|
|
23
|
+
// Cerebras — fast model for simple, smart model for complex
|
|
24
24
|
return {
|
|
25
|
-
fast: "
|
|
26
|
-
smart: "
|
|
25
|
+
fast: "llama3.1-8b",
|
|
26
|
+
smart: "llama3.1-8b",
|
|
27
27
|
pick: isComplex ? "smart" : "fast",
|
|
28
28
|
};
|
|
29
29
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// Cerebras provider — uses OpenAI-compatible API
|
|
2
2
|
// Default for open-source users. Fast inference on Llama models.
|
|
3
3
|
const CEREBRAS_BASE_URL = "https://api.cerebras.ai/v1";
|
|
4
|
-
const DEFAULT_MODEL = "
|
|
4
|
+
const DEFAULT_MODEL = "llama3.1-8b";
|
|
5
5
|
export class CerebrasProvider {
|
|
6
6
|
name = "cerebras";
|
|
7
7
|
apiKey;
|
package/package.json
CHANGED
package/src/ai.ts
CHANGED
|
@@ -26,10 +26,10 @@ function pickModel(nl: string): { fast: string; smart: string; pick: "fast" | "s
|
|
|
26
26
|
};
|
|
27
27
|
}
|
|
28
28
|
|
|
29
|
-
// Cerebras —
|
|
29
|
+
// Cerebras — fast model for simple, smart model for complex
|
|
30
30
|
return {
|
|
31
|
-
fast: "
|
|
32
|
-
smart: "
|
|
31
|
+
fast: "llama3.1-8b",
|
|
32
|
+
smart: "llama3.1-8b",
|
|
33
33
|
pick: isComplex ? "smart" : "fast",
|
|
34
34
|
};
|
|
35
35
|
}
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
import type { LLMProvider, ProviderOptions, StreamCallbacks } from "./base.js";
|
|
5
5
|
|
|
6
6
|
const CEREBRAS_BASE_URL = "https://api.cerebras.ai/v1";
|
|
7
|
-
const DEFAULT_MODEL = "
|
|
7
|
+
const DEFAULT_MODEL = "llama3.1-8b";
|
|
8
8
|
|
|
9
9
|
export class CerebrasProvider implements LLMProvider {
|
|
10
10
|
readonly name = "cerebras";
|