@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:
|
|
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(
|
|
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
|
|
551
|
+
chat(req?: ChatCompletionRequest | undefined | null): Promise<ChatCompletionResponse>;
|
|
550
552
|
chatStream(
|
|
551
|
-
req
|
|
553
|
+
req?: ChatCompletionRequest | undefined | null,
|
|
552
554
|
): Promise<AsyncGenerator<ChatCompletionChunk, void, undefined>>;
|
|
553
|
-
embed(req
|
|
555
|
+
embed(req?: EmbeddingRequest | undefined | null): Promise<EmbeddingResponse>;
|
|
554
556
|
listModels(): Promise<ModelsListResponse>;
|
|
555
|
-
imageGenerate(req
|
|
556
|
-
speech(req
|
|
557
|
-
transcribe(req
|
|
558
|
-
moderate(req
|
|
559
|
-
rerank(req
|
|
560
|
-
search(req
|
|
561
|
-
ocr(req
|
|
562
|
-
createFile(req
|
|
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
|
|
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
|
|
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.
|
|
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.
|
|
22
|
-
"@kreuzberg/liter-llm-node-linux-arm64-gnu": "1.4.0-rc.
|
|
23
|
-
"@kreuzberg/liter-llm-node-darwin-x64": "1.4.0-rc.
|
|
24
|
-
"@kreuzberg/liter-llm-node-darwin-arm64": "1.4.0-rc.
|
|
25
|
-
"@kreuzberg/liter-llm-node-win32-x64-msvc": "1.4.0-rc.
|
|
26
|
-
"@kreuzberg/liter-llm-node-win32-arm64-msvc": "1.4.0-rc.
|
|
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",
|