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

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