@kreuzberg/liter-llm-node 1.4.0-rc.48 → 1.4.0-rc.52

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,8 +1,7 @@
1
1
  // This file is auto-generated by alef — DO NOT EDIT.
2
- // alef:hash:f6823f4ec8be5dec6fbcb2874e0191f4b5fc1dd9b048a27a6288e7fc397cd156
2
+ // alef:hash:fdc311f15b9d758ef6975e6a1251783a8e073b3c13d75062d28bd4726bb1c6a2
3
3
  // To regenerate: alef generate
4
4
  // To verify freshness: alef verify --exit-code
5
- // Issues & docs: https://github.com/sample_crate-dev/alef
6
5
  /* eslint-disable */
7
6
 
8
7
  export type JsonValue =
@@ -78,7 +77,10 @@ export declare function complexProviderNames(): Array<string>;
78
77
  * @throws Returns [`LiterLlmError::BadRequest`] if the tokenizer cannot be loaded or
79
78
  * if tokenization fails for any message.
80
79
  */
81
- export declare function countRequestTokens(model: string, req: ChatCompletionRequest): number;
80
+ export declare function countRequestTokens(
81
+ model: string,
82
+ req?: ChatCompletionRequest | undefined | null,
83
+ ): number;
82
84
 
83
85
  /**
84
86
  * Count tokens in a text string using the tokenizer for the given model.
@@ -546,29 +548,29 @@ export interface CustomProviderConfig {
546
548
  * headers are cached at construction to avoid redundant encoding on every request.
547
549
  */
548
550
  export declare class DefaultClient {
549
- chat(req: ChatCompletionRequest): Promise<ChatCompletionResponse>;
551
+ chat(req?: ChatCompletionRequest | undefined | null): Promise<ChatCompletionResponse>;
550
552
  chatStream(
551
- req: ChatCompletionRequest,
553
+ req?: ChatCompletionRequest | undefined | null,
552
554
  ): Promise<AsyncGenerator<ChatCompletionChunk, void, undefined>>;
553
- embed(req: EmbeddingRequest): Promise<EmbeddingResponse>;
555
+ embed(req?: EmbeddingRequest | undefined | null): Promise<EmbeddingResponse>;
554
556
  listModels(): Promise<ModelsListResponse>;
555
- imageGenerate(req: CreateImageRequest): Promise<ImagesResponse>;
556
- speech(req: CreateSpeechRequest): Promise<Uint8Array>;
557
- transcribe(req: CreateTranscriptionRequest): Promise<TranscriptionResponse>;
558
- moderate(req: ModerationRequest): Promise<ModerationResponse>;
559
- rerank(req: RerankRequest): Promise<RerankResponse>;
560
- search(req: SearchRequest): Promise<SearchResponse>;
561
- ocr(req: OcrRequest): Promise<OcrResponse>;
562
- createFile(req: CreateFileRequest): Promise<FileObject>;
557
+ imageGenerate(req?: CreateImageRequest | undefined | null): Promise<ImagesResponse>;
558
+ speech(req?: CreateSpeechRequest | undefined | null): Promise<Uint8Array>;
559
+ transcribe(req?: CreateTranscriptionRequest | undefined | null): Promise<TranscriptionResponse>;
560
+ moderate(req?: ModerationRequest | undefined | null): Promise<ModerationResponse>;
561
+ rerank(req?: RerankRequest | undefined | null): Promise<RerankResponse>;
562
+ search(req?: SearchRequest | undefined | null): Promise<SearchResponse>;
563
+ ocr(req?: OcrRequest | undefined | null): Promise<OcrResponse>;
564
+ createFile(req?: CreateFileRequest | undefined | null): Promise<FileObject>;
563
565
  retrieveFile(fileId: string): Promise<FileObject>;
564
566
  deleteFile(fileId: string): Promise<DeleteResponse>;
565
567
  listFiles(query?: FileListQuery | undefined | null): Promise<FileListResponse>;
566
568
  fileContent(fileId: string): Promise<Uint8Array>;
567
- createBatch(req: CreateBatchRequest): Promise<BatchObject>;
569
+ createBatch(req?: CreateBatchRequest | undefined | null): Promise<BatchObject>;
568
570
  retrieveBatch(batchId: string): Promise<BatchObject>;
569
571
  listBatches(query?: BatchListQuery | undefined | null): Promise<BatchListResponse>;
570
572
  cancelBatch(batchId: string): Promise<BatchObject>;
571
- createResponse(req: CreateResponseRequest): Promise<ResponseObject>;
573
+ createResponse(req?: CreateResponseRequest | undefined | null): Promise<ResponseObject>;
572
574
  retrieveResponse(responseId: string): Promise<ResponseObject>;
573
575
  cancelResponse(responseId: string): Promise<ResponseObject>;
574
576
  }
Binary file
Binary file
Binary file
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kreuzberg/liter-llm-node",
3
- "version": "1.4.0-rc.48",
3
+ "version": "1.4.0-rc.52",
4
4
  "description": "Universal LLM API client with Rust-powered polyglot bindings.",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -18,12 +18,12 @@
18
18
  },
19
19
  "files": ["index.js", "index.d.ts", "*.node"],
20
20
  "optionalDependencies": {
21
- "@kreuzberg/liter-llm-node-linux-x64-gnu": "1.4.0-rc.48",
22
- "@kreuzberg/liter-llm-node-linux-arm64-gnu": "1.4.0-rc.48",
23
- "@kreuzberg/liter-llm-node-darwin-x64": "1.4.0-rc.48",
24
- "@kreuzberg/liter-llm-node-darwin-arm64": "1.4.0-rc.48",
25
- "@kreuzberg/liter-llm-node-win32-x64-msvc": "1.4.0-rc.48",
26
- "@kreuzberg/liter-llm-node-win32-arm64-msvc": "1.4.0-rc.48"
21
+ "@kreuzberg/liter-llm-node-linux-x64-gnu": "1.4.0-rc.52",
22
+ "@kreuzberg/liter-llm-node-linux-arm64-gnu": "1.4.0-rc.52",
23
+ "@kreuzberg/liter-llm-node-darwin-x64": "1.4.0-rc.52",
24
+ "@kreuzberg/liter-llm-node-darwin-arm64": "1.4.0-rc.52",
25
+ "@kreuzberg/liter-llm-node-win32-x64-msvc": "1.4.0-rc.52",
26
+ "@kreuzberg/liter-llm-node-win32-arm64-msvc": "1.4.0-rc.52"
27
27
  },
28
28
  "napi": {
29
29
  "packageName": "@kreuzberg/liter-llm-node",