@clinebot/llms 0.0.4 → 0.0.6

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.
@@ -44,6 +44,7 @@ export declare abstract class BaseHandler implements ApiHandler {
44
44
  * Abort the current request
45
45
  */
46
46
  abort(): void;
47
+ setAbortSignal(signal: AbortSignal | undefined): void;
47
48
  /**
48
49
  * Helper to calculate cost from usage
49
50
  */
@@ -51,6 +51,10 @@ export interface ApiHandler {
51
51
  * Abort the current request (optional)
52
52
  */
53
53
  abort?(): void;
54
+ /**
55
+ * Update the abort signal used for subsequent requests (optional).
56
+ */
57
+ setAbortSignal?(signal: AbortSignal | undefined): void;
54
58
  }
55
59
  /**
56
60
  * Handler for simple single-turn completions
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@clinebot/llms",
3
- "version": "0.0.4",
3
+ "version": "0.0.6",
4
4
  "description": "Config-driven SDK for selecting, extending, and instantiating LLM providers and models",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",
@@ -14,7 +14,7 @@ export const GENERATED_PROVIDER_MODELS: {
14
14
  version: number;
15
15
  providers: Record<string, Record<string, ModelInfo>>;
16
16
  } = {
17
- version: 1773940480693,
17
+ version: 1773975012193,
18
18
  providers: {
19
19
  aihubmix: {
20
20
  "claude-sonnet-4-6": {
@@ -5296,6 +5296,47 @@ export const GENERATED_PROVIDER_MODELS: {
5296
5296
  },
5297
5297
  releaseDate: "2026-03-18",
5298
5298
  },
5299
+ "openai/gpt-5.4-mini": {
5300
+ id: "openai/gpt-5.4-mini",
5301
+ name: "GPT-5.4 Mini",
5302
+ contextWindow: 400000,
5303
+ maxTokens: 128000,
5304
+ capabilities: [
5305
+ "images",
5306
+ "files",
5307
+ "tools",
5308
+ "reasoning",
5309
+ "structured_output",
5310
+ "temperature",
5311
+ ],
5312
+ pricing: {
5313
+ input: 7.5e-7,
5314
+ output: 0.0000045,
5315
+ cacheRead: 7.5e-8,
5316
+ cacheWrite: 0,
5317
+ },
5318
+ releaseDate: "2026-03-17",
5319
+ },
5320
+ "openai/gpt-5.4-nano": {
5321
+ id: "openai/gpt-5.4-nano",
5322
+ name: "GPT-5.4 Nano",
5323
+ contextWindow: 400000,
5324
+ maxTokens: 128000,
5325
+ capabilities: [
5326
+ "images",
5327
+ "files",
5328
+ "tools",
5329
+ "structured_output",
5330
+ "temperature",
5331
+ ],
5332
+ pricing: {
5333
+ input: 2e-7,
5334
+ output: 0.00000125,
5335
+ cacheRead: 2e-8,
5336
+ cacheWrite: 0,
5337
+ },
5338
+ releaseDate: "2026-03-17",
5339
+ },
5299
5340
  "x-ai/grok-4.20-beta": {
5300
5341
  id: "x-ai/grok-4.20-beta",
5301
5342
  name: "Grok 4.20 Beta",
@@ -102,6 +102,13 @@ export abstract class BaseHandler implements ApiHandler {
102
102
  this.abortController?.abort();
103
103
  }
104
104
 
105
+ setAbortSignal(signal: AbortSignal | undefined): void {
106
+ this.config.abortSignal = signal;
107
+ if (signal?.aborted) {
108
+ this.abortController?.abort(signal.reason);
109
+ }
110
+ }
111
+
105
112
  /**
106
113
  * Helper to calculate cost from usage
107
114
  */
@@ -62,6 +62,11 @@ export interface ApiHandler {
62
62
  * Abort the current request (optional)
63
63
  */
64
64
  abort?(): void;
65
+
66
+ /**
67
+ * Update the abort signal used for subsequent requests (optional).
68
+ */
69
+ setAbortSignal?(signal: AbortSignal | undefined): void;
65
70
  }
66
71
 
67
72
  /**