@xberg-io/liter-llm 2.0.3 → 2.1.0

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/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  // This file is auto-generated by alef — DO NOT EDIT.
2
- // alef:hash:cc9a913abbd03a30283354585d62e51b3c0f62f9b464836dcc01d70a519f1bfc
2
+ // alef:hash:b81493523adf4a7ab1f84d15c65297457685d1e79795f05f6148703e378a06f7
3
3
  // To regenerate: alef generate
4
4
  // To verify freshness: alef verify
5
5
  /* eslint-disable */
@@ -393,6 +393,11 @@ export declare enum BatchStatus {
393
393
  * `AWS_ACCESS_KEY_ID`, `AWS_SECRET_ACCESS_KEY`, `AWS_SESSION_TOKEN`,
394
394
  * `BEDROCK_CROSS_REGION`).
395
395
  *
396
+ * A Bedrock API key in `AWS_BEARER_TOKEN_BEDROCK` authenticates on its own and
397
+ * needs none of the credential fields below. It is read per request rather than
398
+ * from this struct; in a build that can sign (the `bedrock` feature) a credential
399
+ * set here takes precedence over it.
400
+ *
396
401
  * Implements `Debug` manually (see below) so the AWS credential fields are
397
402
  * redacted rather than printed in full.
398
403
  */
@@ -1335,12 +1340,12 @@ export interface LlmRateLimitConfig {
1335
1340
 
1336
1341
  /** A chat message in a conversation. */
1337
1342
  export type Message =
1338
- | { role: "system"; system: SystemMessage }
1339
- | { role: "user"; user: UserMessage }
1340
- | { role: "assistant"; assistant: AssistantMessage }
1341
- | { role: "tool"; tool: ToolMessage }
1342
- | { role: "developer"; developer: DeveloperMessage }
1343
- | { role: "function"; function: FunctionMessage };
1343
+ | ({ role: "system" } & SystemMessage)
1344
+ | ({ role: "user" } & UserMessage)
1345
+ | ({ role: "assistant" } & AssistantMessage)
1346
+ | ({ role: "tool" } & ToolMessage)
1347
+ | ({ role: "developer" } & DeveloperMessage)
1348
+ | ({ role: "function" } & FunctionMessage);
1344
1349
 
1345
1350
  /**
1346
1351
  * Output modality requested from the model.
@@ -2156,28 +2161,23 @@ export declare function registerCustomProvider(config: CustomProviderConfig): vo
2156
2161
  * @throws Returns an error if the custom-provider registry cannot be updated.
2157
2162
  */
2158
2163
  export declare function unregisterCustomProvider(name: string): boolean;
2159
- export type __AlefWireImageDetail = "low" | "high" | "auto";
2160
- export type __AlefWireImageUrl = { url: string; detail?: __AlefWireImageDetail | null };
2161
- export type __AlefWireAudioContent = { data: string; format: string };
2162
2164
  export type __AlefWireAssistantPart =
2163
2165
  | ({ type: "text" } & { text: string })
2164
2166
  | ({ type: "refusal" } & { refusal: string })
2165
- | ({ type: "output_image" } & { image_url: __AlefWireImageUrl })
2166
- | ({ type: "output_audio" } & { audio: __AlefWireAudioContent });
2167
+ | ({ type: "output_image" } & { image_url: ImageUrl })
2168
+ | ({ type: "output_audio" } & { audio: AudioContent });
2167
2169
  export type __AlefWireEmbeddingContentPart =
2168
2170
  | ({ type: "text" } & { text: string })
2169
- | ({ type: "image_url" } & { image_url: __AlefWireImageUrl })
2171
+ | ({ type: "image_url" } & { image_url: ImageUrl })
2170
2172
  | ({ type: "image_base64" } & { image_base64: string });
2171
2173
  export type __AlefWireToolChoiceMode = "auto" | "required" | "none";
2172
2174
  export type __AlefWireToolType = "function";
2173
- export type __AlefWireSpecificFunction = { name: string };
2174
- export type __AlefWireSpecificToolChoice = { type: __AlefWireToolType; function: __AlefWireSpecificFunction };
2175
- export type __AlefWireDocumentContent = { data: string; media_type: string };
2175
+ export type __AlefWireSpecificToolChoice = { type: __AlefWireToolType; function: SpecificFunction };
2176
2176
  export type __AlefWireContentPart =
2177
2177
  | ({ type: "text" } & { text: string })
2178
- | ({ type: "image_url" } & { image_url: __AlefWireImageUrl })
2179
- | ({ type: "document" } & { document: __AlefWireDocumentContent })
2180
- | ({ type: "input_audio" } & { input_audio: __AlefWireAudioContent });
2178
+ | ({ type: "image_url" } & { image_url: ImageUrl })
2179
+ | ({ type: "document" } & { document: DocumentContent })
2180
+ | ({ type: "input_audio" } & { input_audio: AudioContent });
2181
2181
 
2182
2182
  export declare class ChatStreamIterator {
2183
2183
  next(value?: undefined): Promise<IteratorResult<ChatCompletionChunk, void>>;
Binary file
Binary file
Binary file
Binary file
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xberg-io/liter-llm",
3
- "version": "2.0.3",
3
+ "version": "2.1.0",
4
4
  "description": "Universal LLM API client with Rust-powered polyglot bindings.",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -24,12 +24,12 @@
24
24
  },
25
25
  "files": ["index.js", "index.d.ts", "*.node"],
26
26
  "optionalDependencies": {
27
- "@xberg-io/liter-llm-darwin-arm64": "2.0.3",
28
- "@xberg-io/liter-llm-darwin-x64": "2.0.3",
29
- "@xberg-io/liter-llm-linux-arm64-gnu": "2.0.3",
30
- "@xberg-io/liter-llm-linux-x64-gnu": "2.0.3",
31
- "@xberg-io/liter-llm-win32-arm64-msvc": "2.0.3",
32
- "@xberg-io/liter-llm-win32-x64-msvc": "2.0.3"
27
+ "@xberg-io/liter-llm-darwin-arm64": "2.1.0",
28
+ "@xberg-io/liter-llm-darwin-x64": "2.1.0",
29
+ "@xberg-io/liter-llm-linux-arm64-gnu": "2.1.0",
30
+ "@xberg-io/liter-llm-linux-x64-gnu": "2.1.0",
31
+ "@xberg-io/liter-llm-win32-arm64-msvc": "2.1.0",
32
+ "@xberg-io/liter-llm-win32-x64-msvc": "2.1.0"
33
33
  },
34
34
  "napi": {
35
35
  "packageName": "@xberg-io/liter-llm",
@@ -55,6 +55,6 @@
55
55
  "access": "public"
56
56
  },
57
57
  "devDependencies": {
58
- "@napi-rs/cli": "^3.9.1"
58
+ "@napi-rs/cli": "^3.10.5"
59
59
  }
60
60
  }