@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 CHANGED
@@ -20,10 +20,10 @@ function pickModel(nl) {
20
20
  pick: isComplex ? "smart" : "fast",
21
21
  };
22
22
  }
23
- // Cerebras — single fast model (Llama is already fast)
23
+ // Cerebras — fast model for simple, smart model for complex
24
24
  return {
25
- fast: "llama-4-scout-17b-16e",
26
- smart: "llama-4-scout-17b-16e",
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 = "llama-4-scout-17b-16e";
4
+ const DEFAULT_MODEL = "llama3.1-8b";
5
5
  export class CerebrasProvider {
6
6
  name = "cerebras";
7
7
  apiKey;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hasna/terminal",
3
- "version": "0.2.0",
3
+ "version": "0.2.1",
4
4
  "description": "Smart terminal wrapper for AI agents and humans — structured output, token compression, MCP server, natural language",
5
5
  "type": "module",
6
6
  "bin": {
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 — single fast model (Llama is already fast)
29
+ // Cerebras — fast model for simple, smart model for complex
30
30
  return {
31
- fast: "llama-4-scout-17b-16e",
32
- smart: "llama-4-scout-17b-16e",
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 = "llama-4-scout-17b-16e";
7
+ const DEFAULT_MODEL = "llama3.1-8b";
8
8
 
9
9
  export class CerebrasProvider implements LLMProvider {
10
10
  readonly name = "cerebras";