@codefionn/llmleaf-client 0.1.2
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/README.md +173 -0
- package/dist/client.d.ts +73 -0
- package/dist/client.d.ts.map +1 -0
- package/dist/client.js +259 -0
- package/dist/client.js.map +1 -0
- package/dist/enums.d.ts +21 -0
- package/dist/enums.d.ts.map +1 -0
- package/dist/enums.js +56 -0
- package/dist/enums.js.map +1 -0
- package/dist/error.d.ts +23 -0
- package/dist/error.d.ts.map +1 -0
- package/dist/error.js +59 -0
- package/dist/error.js.map +1 -0
- package/dist/gen/llmleaf/v1/llmleaf_pb.d.ts +1374 -0
- package/dist/gen/llmleaf/v1/llmleaf_pb.d.ts.map +1 -0
- package/dist/gen/llmleaf/v1/llmleaf_pb.js +361 -0
- package/dist/gen/llmleaf/v1/llmleaf_pb.js.map +1 -0
- package/dist/index.d.ts +7 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +15 -0
- package/dist/index.js.map +1 -0
- package/dist/stream.d.ts +14 -0
- package/dist/stream.d.ts.map +1 -0
- package/dist/stream.js +85 -0
- package/dist/stream.js.map +1 -0
- package/dist/types.d.ts +301 -0
- package/dist/types.d.ts.map +1 -0
- package/dist/types.js +14 -0
- package/dist/types.js.map +1 -0
- package/dist/wire.d.ts +19 -0
- package/dist/wire.d.ts.map +1 -0
- package/dist/wire.js +569 -0
- package/dist/wire.js.map +1 -0
- package/package.json +50 -0
- package/scripts/gen.sh +42 -0
- package/src/client.ts +353 -0
- package/src/enums.ts +73 -0
- package/src/error.ts +71 -0
- package/src/gen/llmleaf/v1/llmleaf_pb.ts +1675 -0
- package/src/index.ts +77 -0
- package/src/stream.ts +82 -0
- package/src/types.ts +384 -0
- package/src/wire.ts +605 -0
|
@@ -0,0 +1,1374 @@
|
|
|
1
|
+
import type { GenEnum, GenFile, GenMessage } from "@bufbuild/protobuf/codegenv2";
|
|
2
|
+
import type { Message } from "@bufbuild/protobuf";
|
|
3
|
+
/**
|
|
4
|
+
* Describes the file llmleaf/v1/llmleaf.proto.
|
|
5
|
+
*/
|
|
6
|
+
export declare const file_llmleaf_v1_llmleaf: GenFile;
|
|
7
|
+
/**
|
|
8
|
+
* Token accounting echoed on every response. `cost_usd` is an llmleaf addition
|
|
9
|
+
* (real-time price from the bundled pricing dataset); it is null/absent when the
|
|
10
|
+
* model has no known price.
|
|
11
|
+
*
|
|
12
|
+
* @generated from message llmleaf.v1.Usage
|
|
13
|
+
*/
|
|
14
|
+
export type Usage = Message<"llmleaf.v1.Usage"> & {
|
|
15
|
+
/**
|
|
16
|
+
* @generated from field: uint32 prompt_tokens = 1;
|
|
17
|
+
*/
|
|
18
|
+
promptTokens: number;
|
|
19
|
+
/**
|
|
20
|
+
* @generated from field: uint32 completion_tokens = 2;
|
|
21
|
+
*/
|
|
22
|
+
completionTokens: number;
|
|
23
|
+
/**
|
|
24
|
+
* @generated from field: uint32 total_tokens = 3;
|
|
25
|
+
*/
|
|
26
|
+
totalTokens: number;
|
|
27
|
+
/**
|
|
28
|
+
* @generated from field: optional double cost_usd = 4;
|
|
29
|
+
*/
|
|
30
|
+
costUsd?: number | undefined;
|
|
31
|
+
};
|
|
32
|
+
/**
|
|
33
|
+
* Describes the message llmleaf.v1.Usage.
|
|
34
|
+
* Use `create(UsageSchema)` to create a new message.
|
|
35
|
+
*/
|
|
36
|
+
export declare const UsageSchema: GenMessage<Usage>;
|
|
37
|
+
/**
|
|
38
|
+
* The canonical error envelope returned by every endpoint: {"error":{"message":...}}.
|
|
39
|
+
*
|
|
40
|
+
* @generated from message llmleaf.v1.ErrorResponse
|
|
41
|
+
*/
|
|
42
|
+
export type ErrorResponse = Message<"llmleaf.v1.ErrorResponse"> & {
|
|
43
|
+
/**
|
|
44
|
+
* @generated from field: llmleaf.v1.ErrorBody error = 1;
|
|
45
|
+
*/
|
|
46
|
+
error?: ErrorBody | undefined;
|
|
47
|
+
};
|
|
48
|
+
/**
|
|
49
|
+
* Describes the message llmleaf.v1.ErrorResponse.
|
|
50
|
+
* Use `create(ErrorResponseSchema)` to create a new message.
|
|
51
|
+
*/
|
|
52
|
+
export declare const ErrorResponseSchema: GenMessage<ErrorResponse>;
|
|
53
|
+
/**
|
|
54
|
+
* @generated from message llmleaf.v1.ErrorBody
|
|
55
|
+
*/
|
|
56
|
+
export type ErrorBody = Message<"llmleaf.v1.ErrorBody"> & {
|
|
57
|
+
/**
|
|
58
|
+
* @generated from field: string message = 1;
|
|
59
|
+
*/
|
|
60
|
+
message: string;
|
|
61
|
+
/**
|
|
62
|
+
* Present on some dialects; absent on the llmleaf core envelope.
|
|
63
|
+
*
|
|
64
|
+
* @generated from field: optional string type = 2;
|
|
65
|
+
*/
|
|
66
|
+
type?: string | undefined;
|
|
67
|
+
/**
|
|
68
|
+
* @generated from field: optional string code = 3;
|
|
69
|
+
*/
|
|
70
|
+
code?: string | undefined;
|
|
71
|
+
};
|
|
72
|
+
/**
|
|
73
|
+
* Describes the message llmleaf.v1.ErrorBody.
|
|
74
|
+
* Use `create(ErrorBodySchema)` to create a new message.
|
|
75
|
+
*/
|
|
76
|
+
export declare const ErrorBodySchema: GenMessage<ErrorBody>;
|
|
77
|
+
/**
|
|
78
|
+
* A single content part for multimodal messages:
|
|
79
|
+
* {"type":"text","text":"..."}
|
|
80
|
+
* {"type":"image_url","image_url":{"url":"...","detail":"auto"}}
|
|
81
|
+
*
|
|
82
|
+
* @generated from message llmleaf.v1.ContentPart
|
|
83
|
+
*/
|
|
84
|
+
export type ContentPart = Message<"llmleaf.v1.ContentPart"> & {
|
|
85
|
+
/**
|
|
86
|
+
* @generated from oneof llmleaf.v1.ContentPart.part
|
|
87
|
+
*/
|
|
88
|
+
part: {
|
|
89
|
+
/**
|
|
90
|
+
* @generated from field: llmleaf.v1.TextPart text = 1;
|
|
91
|
+
*/
|
|
92
|
+
value: TextPart;
|
|
93
|
+
case: "text";
|
|
94
|
+
} | {
|
|
95
|
+
/**
|
|
96
|
+
* @generated from field: llmleaf.v1.ImageUrlPart image_url = 2;
|
|
97
|
+
*/
|
|
98
|
+
value: ImageUrlPart;
|
|
99
|
+
case: "imageUrl";
|
|
100
|
+
} | {
|
|
101
|
+
case: undefined;
|
|
102
|
+
value?: undefined;
|
|
103
|
+
};
|
|
104
|
+
};
|
|
105
|
+
/**
|
|
106
|
+
* Describes the message llmleaf.v1.ContentPart.
|
|
107
|
+
* Use `create(ContentPartSchema)` to create a new message.
|
|
108
|
+
*/
|
|
109
|
+
export declare const ContentPartSchema: GenMessage<ContentPart>;
|
|
110
|
+
/**
|
|
111
|
+
* @generated from message llmleaf.v1.TextPart
|
|
112
|
+
*/
|
|
113
|
+
export type TextPart = Message<"llmleaf.v1.TextPart"> & {
|
|
114
|
+
/**
|
|
115
|
+
* @generated from field: string text = 1;
|
|
116
|
+
*/
|
|
117
|
+
text: string;
|
|
118
|
+
};
|
|
119
|
+
/**
|
|
120
|
+
* Describes the message llmleaf.v1.TextPart.
|
|
121
|
+
* Use `create(TextPartSchema)` to create a new message.
|
|
122
|
+
*/
|
|
123
|
+
export declare const TextPartSchema: GenMessage<TextPart>;
|
|
124
|
+
/**
|
|
125
|
+
* @generated from message llmleaf.v1.ImageUrlPart
|
|
126
|
+
*/
|
|
127
|
+
export type ImageUrlPart = Message<"llmleaf.v1.ImageUrlPart"> & {
|
|
128
|
+
/**
|
|
129
|
+
* @generated from field: string url = 1;
|
|
130
|
+
*/
|
|
131
|
+
url: string;
|
|
132
|
+
/**
|
|
133
|
+
* "auto" | "low" | "high"
|
|
134
|
+
*
|
|
135
|
+
* @generated from field: optional string detail = 2;
|
|
136
|
+
*/
|
|
137
|
+
detail?: string | undefined;
|
|
138
|
+
};
|
|
139
|
+
/**
|
|
140
|
+
* Describes the message llmleaf.v1.ImageUrlPart.
|
|
141
|
+
* Use `create(ImageUrlPartSchema)` to create a new message.
|
|
142
|
+
*/
|
|
143
|
+
export declare const ImageUrlPartSchema: GenMessage<ImageUrlPart>;
|
|
144
|
+
/**
|
|
145
|
+
* @generated from message llmleaf.v1.ContentParts
|
|
146
|
+
*/
|
|
147
|
+
export type ContentParts = Message<"llmleaf.v1.ContentParts"> & {
|
|
148
|
+
/**
|
|
149
|
+
* @generated from field: repeated llmleaf.v1.ContentPart items = 1;
|
|
150
|
+
*/
|
|
151
|
+
items: ContentPart[];
|
|
152
|
+
};
|
|
153
|
+
/**
|
|
154
|
+
* Describes the message llmleaf.v1.ContentParts.
|
|
155
|
+
* Use `create(ContentPartsSchema)` to create a new message.
|
|
156
|
+
*/
|
|
157
|
+
export declare const ContentPartsSchema: GenMessage<ContentParts>;
|
|
158
|
+
/**
|
|
159
|
+
* A function the model called. `arguments` is a JSON-encoded string (OpenAI shape).
|
|
160
|
+
*
|
|
161
|
+
* @generated from message llmleaf.v1.FunctionCall
|
|
162
|
+
*/
|
|
163
|
+
export type FunctionCall = Message<"llmleaf.v1.FunctionCall"> & {
|
|
164
|
+
/**
|
|
165
|
+
* @generated from field: string name = 1;
|
|
166
|
+
*/
|
|
167
|
+
name: string;
|
|
168
|
+
/**
|
|
169
|
+
* @generated from field: string arguments = 2;
|
|
170
|
+
*/
|
|
171
|
+
arguments: string;
|
|
172
|
+
};
|
|
173
|
+
/**
|
|
174
|
+
* Describes the message llmleaf.v1.FunctionCall.
|
|
175
|
+
* Use `create(FunctionCallSchema)` to create a new message.
|
|
176
|
+
*/
|
|
177
|
+
export declare const FunctionCallSchema: GenMessage<FunctionCall>;
|
|
178
|
+
/**
|
|
179
|
+
* @generated from message llmleaf.v1.ToolCall
|
|
180
|
+
*/
|
|
181
|
+
export type ToolCall = Message<"llmleaf.v1.ToolCall"> & {
|
|
182
|
+
/**
|
|
183
|
+
* @generated from field: string id = 1;
|
|
184
|
+
*/
|
|
185
|
+
id: string;
|
|
186
|
+
/**
|
|
187
|
+
* always "function" today
|
|
188
|
+
*
|
|
189
|
+
* @generated from field: string type = 2;
|
|
190
|
+
*/
|
|
191
|
+
type: string;
|
|
192
|
+
/**
|
|
193
|
+
* @generated from field: llmleaf.v1.FunctionCall function = 3;
|
|
194
|
+
*/
|
|
195
|
+
function?: FunctionCall | undefined;
|
|
196
|
+
};
|
|
197
|
+
/**
|
|
198
|
+
* Describes the message llmleaf.v1.ToolCall.
|
|
199
|
+
* Use `create(ToolCallSchema)` to create a new message.
|
|
200
|
+
*/
|
|
201
|
+
export declare const ToolCallSchema: GenMessage<ToolCall>;
|
|
202
|
+
/**
|
|
203
|
+
* Incremental tool-call fragment on a streaming delta; fields arrive piecemeal.
|
|
204
|
+
*
|
|
205
|
+
* @generated from message llmleaf.v1.FunctionCallDelta
|
|
206
|
+
*/
|
|
207
|
+
export type FunctionCallDelta = Message<"llmleaf.v1.FunctionCallDelta"> & {
|
|
208
|
+
/**
|
|
209
|
+
* @generated from field: optional string name = 1;
|
|
210
|
+
*/
|
|
211
|
+
name?: string | undefined;
|
|
212
|
+
/**
|
|
213
|
+
* @generated from field: optional string arguments = 2;
|
|
214
|
+
*/
|
|
215
|
+
arguments?: string | undefined;
|
|
216
|
+
};
|
|
217
|
+
/**
|
|
218
|
+
* Describes the message llmleaf.v1.FunctionCallDelta.
|
|
219
|
+
* Use `create(FunctionCallDeltaSchema)` to create a new message.
|
|
220
|
+
*/
|
|
221
|
+
export declare const FunctionCallDeltaSchema: GenMessage<FunctionCallDelta>;
|
|
222
|
+
/**
|
|
223
|
+
* @generated from message llmleaf.v1.ToolCallDelta
|
|
224
|
+
*/
|
|
225
|
+
export type ToolCallDelta = Message<"llmleaf.v1.ToolCallDelta"> & {
|
|
226
|
+
/**
|
|
227
|
+
* @generated from field: uint32 index = 1;
|
|
228
|
+
*/
|
|
229
|
+
index: number;
|
|
230
|
+
/**
|
|
231
|
+
* @generated from field: optional string id = 2;
|
|
232
|
+
*/
|
|
233
|
+
id?: string | undefined;
|
|
234
|
+
/**
|
|
235
|
+
* @generated from field: optional string type = 3;
|
|
236
|
+
*/
|
|
237
|
+
type?: string | undefined;
|
|
238
|
+
/**
|
|
239
|
+
* @generated from field: optional llmleaf.v1.FunctionCallDelta function = 4;
|
|
240
|
+
*/
|
|
241
|
+
function?: FunctionCallDelta | undefined;
|
|
242
|
+
};
|
|
243
|
+
/**
|
|
244
|
+
* Describes the message llmleaf.v1.ToolCallDelta.
|
|
245
|
+
* Use `create(ToolCallDeltaSchema)` to create a new message.
|
|
246
|
+
*/
|
|
247
|
+
export declare const ToolCallDeltaSchema: GenMessage<ToolCallDelta>;
|
|
248
|
+
/**
|
|
249
|
+
* @generated from message llmleaf.v1.ChatMessage
|
|
250
|
+
*/
|
|
251
|
+
export type ChatMessage = Message<"llmleaf.v1.ChatMessage"> & {
|
|
252
|
+
/**
|
|
253
|
+
* @generated from field: llmleaf.v1.Role role = 1;
|
|
254
|
+
*/
|
|
255
|
+
role: Role;
|
|
256
|
+
/**
|
|
257
|
+
* Wire `content` is either a plain string or an array of content parts.
|
|
258
|
+
*
|
|
259
|
+
* @generated from oneof llmleaf.v1.ChatMessage.content
|
|
260
|
+
*/
|
|
261
|
+
content: {
|
|
262
|
+
/**
|
|
263
|
+
* @generated from field: string text = 2;
|
|
264
|
+
*/
|
|
265
|
+
value: string;
|
|
266
|
+
case: "text";
|
|
267
|
+
} | {
|
|
268
|
+
/**
|
|
269
|
+
* @generated from field: llmleaf.v1.ContentParts parts = 3;
|
|
270
|
+
*/
|
|
271
|
+
value: ContentParts;
|
|
272
|
+
case: "parts";
|
|
273
|
+
} | {
|
|
274
|
+
case: undefined;
|
|
275
|
+
value?: undefined;
|
|
276
|
+
};
|
|
277
|
+
/**
|
|
278
|
+
* @generated from field: optional string name = 4;
|
|
279
|
+
*/
|
|
280
|
+
name?: string | undefined;
|
|
281
|
+
/**
|
|
282
|
+
* @generated from field: repeated llmleaf.v1.ToolCall tool_calls = 5;
|
|
283
|
+
*/
|
|
284
|
+
toolCalls: ToolCall[];
|
|
285
|
+
/**
|
|
286
|
+
* set when role == TOOL
|
|
287
|
+
*
|
|
288
|
+
* @generated from field: optional string tool_call_id = 6;
|
|
289
|
+
*/
|
|
290
|
+
toolCallId?: string | undefined;
|
|
291
|
+
};
|
|
292
|
+
/**
|
|
293
|
+
* Describes the message llmleaf.v1.ChatMessage.
|
|
294
|
+
* Use `create(ChatMessageSchema)` to create a new message.
|
|
295
|
+
*/
|
|
296
|
+
export declare const ChatMessageSchema: GenMessage<ChatMessage>;
|
|
297
|
+
/**
|
|
298
|
+
* A function the model MAY call. `parameters` is a raw JSON Schema string.
|
|
299
|
+
*
|
|
300
|
+
* @generated from message llmleaf.v1.FunctionDef
|
|
301
|
+
*/
|
|
302
|
+
export type FunctionDef = Message<"llmleaf.v1.FunctionDef"> & {
|
|
303
|
+
/**
|
|
304
|
+
* @generated from field: string name = 1;
|
|
305
|
+
*/
|
|
306
|
+
name: string;
|
|
307
|
+
/**
|
|
308
|
+
* @generated from field: optional string description = 2;
|
|
309
|
+
*/
|
|
310
|
+
description?: string | undefined;
|
|
311
|
+
/**
|
|
312
|
+
* raw JSON object
|
|
313
|
+
*
|
|
314
|
+
* @generated from field: optional string parameters = 3;
|
|
315
|
+
*/
|
|
316
|
+
parameters?: string | undefined;
|
|
317
|
+
};
|
|
318
|
+
/**
|
|
319
|
+
* Describes the message llmleaf.v1.FunctionDef.
|
|
320
|
+
* Use `create(FunctionDefSchema)` to create a new message.
|
|
321
|
+
*/
|
|
322
|
+
export declare const FunctionDefSchema: GenMessage<FunctionDef>;
|
|
323
|
+
/**
|
|
324
|
+
* @generated from message llmleaf.v1.ToolDef
|
|
325
|
+
*/
|
|
326
|
+
export type ToolDef = Message<"llmleaf.v1.ToolDef"> & {
|
|
327
|
+
/**
|
|
328
|
+
* "function"
|
|
329
|
+
*
|
|
330
|
+
* @generated from field: string type = 1;
|
|
331
|
+
*/
|
|
332
|
+
type: string;
|
|
333
|
+
/**
|
|
334
|
+
* @generated from field: llmleaf.v1.FunctionDef function = 2;
|
|
335
|
+
*/
|
|
336
|
+
function?: FunctionDef | undefined;
|
|
337
|
+
};
|
|
338
|
+
/**
|
|
339
|
+
* Describes the message llmleaf.v1.ToolDef.
|
|
340
|
+
* Use `create(ToolDefSchema)` to create a new message.
|
|
341
|
+
*/
|
|
342
|
+
export declare const ToolDefSchema: GenMessage<ToolDef>;
|
|
343
|
+
/**
|
|
344
|
+
* tool_choice is either a mode string ("auto"|"none"|"required") or an object
|
|
345
|
+
* pinning a specific function: {"type":"function","function":{"name":"..."}}.
|
|
346
|
+
*
|
|
347
|
+
* @generated from message llmleaf.v1.ToolChoice
|
|
348
|
+
*/
|
|
349
|
+
export type ToolChoice = Message<"llmleaf.v1.ToolChoice"> & {
|
|
350
|
+
/**
|
|
351
|
+
* @generated from oneof llmleaf.v1.ToolChoice.choice
|
|
352
|
+
*/
|
|
353
|
+
choice: {
|
|
354
|
+
/**
|
|
355
|
+
* @generated from field: string mode = 1;
|
|
356
|
+
*/
|
|
357
|
+
value: string;
|
|
358
|
+
case: "mode";
|
|
359
|
+
} | {
|
|
360
|
+
/**
|
|
361
|
+
* @generated from field: llmleaf.v1.NamedToolChoice named = 2;
|
|
362
|
+
*/
|
|
363
|
+
value: NamedToolChoice;
|
|
364
|
+
case: "named";
|
|
365
|
+
} | {
|
|
366
|
+
case: undefined;
|
|
367
|
+
value?: undefined;
|
|
368
|
+
};
|
|
369
|
+
};
|
|
370
|
+
/**
|
|
371
|
+
* Describes the message llmleaf.v1.ToolChoice.
|
|
372
|
+
* Use `create(ToolChoiceSchema)` to create a new message.
|
|
373
|
+
*/
|
|
374
|
+
export declare const ToolChoiceSchema: GenMessage<ToolChoice>;
|
|
375
|
+
/**
|
|
376
|
+
* @generated from message llmleaf.v1.NamedToolChoice
|
|
377
|
+
*/
|
|
378
|
+
export type NamedToolChoice = Message<"llmleaf.v1.NamedToolChoice"> & {
|
|
379
|
+
/**
|
|
380
|
+
* "function"
|
|
381
|
+
*
|
|
382
|
+
* @generated from field: string type = 1;
|
|
383
|
+
*/
|
|
384
|
+
type: string;
|
|
385
|
+
/**
|
|
386
|
+
* @generated from field: llmleaf.v1.FunctionName function = 2;
|
|
387
|
+
*/
|
|
388
|
+
function?: FunctionName | undefined;
|
|
389
|
+
};
|
|
390
|
+
/**
|
|
391
|
+
* Describes the message llmleaf.v1.NamedToolChoice.
|
|
392
|
+
* Use `create(NamedToolChoiceSchema)` to create a new message.
|
|
393
|
+
*/
|
|
394
|
+
export declare const NamedToolChoiceSchema: GenMessage<NamedToolChoice>;
|
|
395
|
+
/**
|
|
396
|
+
* @generated from message llmleaf.v1.FunctionName
|
|
397
|
+
*/
|
|
398
|
+
export type FunctionName = Message<"llmleaf.v1.FunctionName"> & {
|
|
399
|
+
/**
|
|
400
|
+
* @generated from field: string name = 1;
|
|
401
|
+
*/
|
|
402
|
+
name: string;
|
|
403
|
+
};
|
|
404
|
+
/**
|
|
405
|
+
* Describes the message llmleaf.v1.FunctionName.
|
|
406
|
+
* Use `create(FunctionNameSchema)` to create a new message.
|
|
407
|
+
*/
|
|
408
|
+
export declare const FunctionNameSchema: GenMessage<FunctionName>;
|
|
409
|
+
/**
|
|
410
|
+
* response_format: {"type":"text"|"json_object"|"json_schema", "json_schema": {...}}
|
|
411
|
+
*
|
|
412
|
+
* @generated from message llmleaf.v1.ResponseFormat
|
|
413
|
+
*/
|
|
414
|
+
export type ResponseFormat = Message<"llmleaf.v1.ResponseFormat"> & {
|
|
415
|
+
/**
|
|
416
|
+
* @generated from field: string type = 1;
|
|
417
|
+
*/
|
|
418
|
+
type: string;
|
|
419
|
+
/**
|
|
420
|
+
* raw JSON object when type == "json_schema"
|
|
421
|
+
*
|
|
422
|
+
* @generated from field: optional string json_schema = 2;
|
|
423
|
+
*/
|
|
424
|
+
jsonSchema?: string | undefined;
|
|
425
|
+
};
|
|
426
|
+
/**
|
|
427
|
+
* Describes the message llmleaf.v1.ResponseFormat.
|
|
428
|
+
* Use `create(ResponseFormatSchema)` to create a new message.
|
|
429
|
+
*/
|
|
430
|
+
export declare const ResponseFormatSchema: GenMessage<ResponseFormat>;
|
|
431
|
+
/**
|
|
432
|
+
* @generated from message llmleaf.v1.ChatRequest
|
|
433
|
+
*/
|
|
434
|
+
export type ChatRequest = Message<"llmleaf.v1.ChatRequest"> & {
|
|
435
|
+
/**
|
|
436
|
+
* @generated from field: string model = 1;
|
|
437
|
+
*/
|
|
438
|
+
model: string;
|
|
439
|
+
/**
|
|
440
|
+
* @generated from field: repeated llmleaf.v1.ChatMessage messages = 2;
|
|
441
|
+
*/
|
|
442
|
+
messages: ChatMessage[];
|
|
443
|
+
/**
|
|
444
|
+
* @generated from field: optional bool stream = 3;
|
|
445
|
+
*/
|
|
446
|
+
stream?: boolean | undefined;
|
|
447
|
+
/**
|
|
448
|
+
* @generated from field: optional float temperature = 4;
|
|
449
|
+
*/
|
|
450
|
+
temperature?: number | undefined;
|
|
451
|
+
/**
|
|
452
|
+
* @generated from field: optional float top_p = 5;
|
|
453
|
+
*/
|
|
454
|
+
topP?: number | undefined;
|
|
455
|
+
/**
|
|
456
|
+
* legacy name
|
|
457
|
+
*
|
|
458
|
+
* @generated from field: optional uint32 max_tokens = 6;
|
|
459
|
+
*/
|
|
460
|
+
maxTokens?: number | undefined;
|
|
461
|
+
/**
|
|
462
|
+
* modern name (takes precedence)
|
|
463
|
+
*
|
|
464
|
+
* @generated from field: optional uint32 max_completion_tokens = 7;
|
|
465
|
+
*/
|
|
466
|
+
maxCompletionTokens?: number | undefined;
|
|
467
|
+
/**
|
|
468
|
+
* wire accepts string or array
|
|
469
|
+
*
|
|
470
|
+
* @generated from field: repeated string stop = 8;
|
|
471
|
+
*/
|
|
472
|
+
stop: string[];
|
|
473
|
+
/**
|
|
474
|
+
* @generated from field: optional uint32 n = 9;
|
|
475
|
+
*/
|
|
476
|
+
n?: number | undefined;
|
|
477
|
+
/**
|
|
478
|
+
* @generated from field: optional int64 seed = 10;
|
|
479
|
+
*/
|
|
480
|
+
seed?: bigint | undefined;
|
|
481
|
+
/**
|
|
482
|
+
* @generated from field: optional float frequency_penalty = 11;
|
|
483
|
+
*/
|
|
484
|
+
frequencyPenalty?: number | undefined;
|
|
485
|
+
/**
|
|
486
|
+
* @generated from field: optional float presence_penalty = 12;
|
|
487
|
+
*/
|
|
488
|
+
presencePenalty?: number | undefined;
|
|
489
|
+
/**
|
|
490
|
+
* @generated from field: repeated llmleaf.v1.ToolDef tools = 13;
|
|
491
|
+
*/
|
|
492
|
+
tools: ToolDef[];
|
|
493
|
+
/**
|
|
494
|
+
* @generated from field: optional llmleaf.v1.ToolChoice tool_choice = 14;
|
|
495
|
+
*/
|
|
496
|
+
toolChoice?: ToolChoice | undefined;
|
|
497
|
+
/**
|
|
498
|
+
* @generated from field: optional llmleaf.v1.ResponseFormat response_format = 15;
|
|
499
|
+
*/
|
|
500
|
+
responseFormat?: ResponseFormat | undefined;
|
|
501
|
+
/**
|
|
502
|
+
* "low" | "medium" | "high"
|
|
503
|
+
*
|
|
504
|
+
* @generated from field: optional string reasoning_effort = 16;
|
|
505
|
+
*/
|
|
506
|
+
reasoningEffort?: string | undefined;
|
|
507
|
+
/**
|
|
508
|
+
* Dialect-specific passthrough, spliced verbatim into the request body (P7).
|
|
509
|
+
*
|
|
510
|
+
* raw JSON object
|
|
511
|
+
*
|
|
512
|
+
* @generated from field: optional string extra = 17;
|
|
513
|
+
*/
|
|
514
|
+
extra?: string | undefined;
|
|
515
|
+
};
|
|
516
|
+
/**
|
|
517
|
+
* Describes the message llmleaf.v1.ChatRequest.
|
|
518
|
+
* Use `create(ChatRequestSchema)` to create a new message.
|
|
519
|
+
*/
|
|
520
|
+
export declare const ChatRequestSchema: GenMessage<ChatRequest>;
|
|
521
|
+
/**
|
|
522
|
+
* @generated from message llmleaf.v1.Choice
|
|
523
|
+
*/
|
|
524
|
+
export type Choice = Message<"llmleaf.v1.Choice"> & {
|
|
525
|
+
/**
|
|
526
|
+
* @generated from field: uint32 index = 1;
|
|
527
|
+
*/
|
|
528
|
+
index: number;
|
|
529
|
+
/**
|
|
530
|
+
* @generated from field: llmleaf.v1.ChatMessage message = 2;
|
|
531
|
+
*/
|
|
532
|
+
message?: ChatMessage | undefined;
|
|
533
|
+
/**
|
|
534
|
+
* @generated from field: optional llmleaf.v1.FinishReason finish_reason = 3;
|
|
535
|
+
*/
|
|
536
|
+
finishReason?: FinishReason | undefined;
|
|
537
|
+
};
|
|
538
|
+
/**
|
|
539
|
+
* Describes the message llmleaf.v1.Choice.
|
|
540
|
+
* Use `create(ChoiceSchema)` to create a new message.
|
|
541
|
+
*/
|
|
542
|
+
export declare const ChoiceSchema: GenMessage<Choice>;
|
|
543
|
+
/**
|
|
544
|
+
* @generated from message llmleaf.v1.ChatResponse
|
|
545
|
+
*/
|
|
546
|
+
export type ChatResponse = Message<"llmleaf.v1.ChatResponse"> & {
|
|
547
|
+
/**
|
|
548
|
+
* @generated from field: string id = 1;
|
|
549
|
+
*/
|
|
550
|
+
id: string;
|
|
551
|
+
/**
|
|
552
|
+
* "chat.completion"
|
|
553
|
+
*
|
|
554
|
+
* @generated from field: string object = 2;
|
|
555
|
+
*/
|
|
556
|
+
object: string;
|
|
557
|
+
/**
|
|
558
|
+
* unix seconds
|
|
559
|
+
*
|
|
560
|
+
* @generated from field: int64 created = 3;
|
|
561
|
+
*/
|
|
562
|
+
created: bigint;
|
|
563
|
+
/**
|
|
564
|
+
* @generated from field: string model = 4;
|
|
565
|
+
*/
|
|
566
|
+
model: string;
|
|
567
|
+
/**
|
|
568
|
+
* @generated from field: repeated llmleaf.v1.Choice choices = 5;
|
|
569
|
+
*/
|
|
570
|
+
choices: Choice[];
|
|
571
|
+
/**
|
|
572
|
+
* @generated from field: llmleaf.v1.Usage usage = 6;
|
|
573
|
+
*/
|
|
574
|
+
usage?: Usage | undefined;
|
|
575
|
+
};
|
|
576
|
+
/**
|
|
577
|
+
* Describes the message llmleaf.v1.ChatResponse.
|
|
578
|
+
* Use `create(ChatResponseSchema)` to create a new message.
|
|
579
|
+
*/
|
|
580
|
+
export declare const ChatResponseSchema: GenMessage<ChatResponse>;
|
|
581
|
+
/**
|
|
582
|
+
* Streaming SSE frame: `data: <ChatCompletionChunk JSON>\n\n`, terminated by
|
|
583
|
+
* the sentinel line `data: [DONE]`.
|
|
584
|
+
*
|
|
585
|
+
* @generated from message llmleaf.v1.Delta
|
|
586
|
+
*/
|
|
587
|
+
export type Delta = Message<"llmleaf.v1.Delta"> & {
|
|
588
|
+
/**
|
|
589
|
+
* first chunk only
|
|
590
|
+
*
|
|
591
|
+
* @generated from field: optional llmleaf.v1.Role role = 1;
|
|
592
|
+
*/
|
|
593
|
+
role?: Role | undefined;
|
|
594
|
+
/**
|
|
595
|
+
* incremental text
|
|
596
|
+
*
|
|
597
|
+
* @generated from field: optional string content = 2;
|
|
598
|
+
*/
|
|
599
|
+
content?: string | undefined;
|
|
600
|
+
/**
|
|
601
|
+
* @generated from field: repeated llmleaf.v1.ToolCallDelta tool_calls = 3;
|
|
602
|
+
*/
|
|
603
|
+
toolCalls: ToolCallDelta[];
|
|
604
|
+
};
|
|
605
|
+
/**
|
|
606
|
+
* Describes the message llmleaf.v1.Delta.
|
|
607
|
+
* Use `create(DeltaSchema)` to create a new message.
|
|
608
|
+
*/
|
|
609
|
+
export declare const DeltaSchema: GenMessage<Delta>;
|
|
610
|
+
/**
|
|
611
|
+
* @generated from message llmleaf.v1.ChunkChoice
|
|
612
|
+
*/
|
|
613
|
+
export type ChunkChoice = Message<"llmleaf.v1.ChunkChoice"> & {
|
|
614
|
+
/**
|
|
615
|
+
* @generated from field: uint32 index = 1;
|
|
616
|
+
*/
|
|
617
|
+
index: number;
|
|
618
|
+
/**
|
|
619
|
+
* @generated from field: llmleaf.v1.Delta delta = 2;
|
|
620
|
+
*/
|
|
621
|
+
delta?: Delta | undefined;
|
|
622
|
+
/**
|
|
623
|
+
* @generated from field: optional llmleaf.v1.FinishReason finish_reason = 3;
|
|
624
|
+
*/
|
|
625
|
+
finishReason?: FinishReason | undefined;
|
|
626
|
+
};
|
|
627
|
+
/**
|
|
628
|
+
* Describes the message llmleaf.v1.ChunkChoice.
|
|
629
|
+
* Use `create(ChunkChoiceSchema)` to create a new message.
|
|
630
|
+
*/
|
|
631
|
+
export declare const ChunkChoiceSchema: GenMessage<ChunkChoice>;
|
|
632
|
+
/**
|
|
633
|
+
* @generated from message llmleaf.v1.ChatCompletionChunk
|
|
634
|
+
*/
|
|
635
|
+
export type ChatCompletionChunk = Message<"llmleaf.v1.ChatCompletionChunk"> & {
|
|
636
|
+
/**
|
|
637
|
+
* @generated from field: string id = 1;
|
|
638
|
+
*/
|
|
639
|
+
id: string;
|
|
640
|
+
/**
|
|
641
|
+
* "chat.completion.chunk"
|
|
642
|
+
*
|
|
643
|
+
* @generated from field: string object = 2;
|
|
644
|
+
*/
|
|
645
|
+
object: string;
|
|
646
|
+
/**
|
|
647
|
+
* @generated from field: int64 created = 3;
|
|
648
|
+
*/
|
|
649
|
+
created: bigint;
|
|
650
|
+
/**
|
|
651
|
+
* @generated from field: string model = 4;
|
|
652
|
+
*/
|
|
653
|
+
model: string;
|
|
654
|
+
/**
|
|
655
|
+
* @generated from field: repeated llmleaf.v1.ChunkChoice choices = 5;
|
|
656
|
+
*/
|
|
657
|
+
choices: ChunkChoice[];
|
|
658
|
+
/**
|
|
659
|
+
* terminal chunk only
|
|
660
|
+
*
|
|
661
|
+
* @generated from field: optional llmleaf.v1.Usage usage = 6;
|
|
662
|
+
*/
|
|
663
|
+
usage?: Usage | undefined;
|
|
664
|
+
};
|
|
665
|
+
/**
|
|
666
|
+
* Describes the message llmleaf.v1.ChatCompletionChunk.
|
|
667
|
+
* Use `create(ChatCompletionChunkSchema)` to create a new message.
|
|
668
|
+
*/
|
|
669
|
+
export declare const ChatCompletionChunkSchema: GenMessage<ChatCompletionChunk>;
|
|
670
|
+
/**
|
|
671
|
+
* @generated from message llmleaf.v1.EmbeddingRequest
|
|
672
|
+
*/
|
|
673
|
+
export type EmbeddingRequest = Message<"llmleaf.v1.EmbeddingRequest"> & {
|
|
674
|
+
/**
|
|
675
|
+
* @generated from field: string model = 1;
|
|
676
|
+
*/
|
|
677
|
+
model: string;
|
|
678
|
+
/**
|
|
679
|
+
* wire accepts string or array of strings
|
|
680
|
+
*
|
|
681
|
+
* @generated from field: repeated string input = 2;
|
|
682
|
+
*/
|
|
683
|
+
input: string[];
|
|
684
|
+
/**
|
|
685
|
+
* @generated from field: optional uint32 dimensions = 3;
|
|
686
|
+
*/
|
|
687
|
+
dimensions?: number | undefined;
|
|
688
|
+
/**
|
|
689
|
+
* "float" | "base64"
|
|
690
|
+
*
|
|
691
|
+
* @generated from field: optional string encoding_format = 4;
|
|
692
|
+
*/
|
|
693
|
+
encodingFormat?: string | undefined;
|
|
694
|
+
/**
|
|
695
|
+
* raw JSON object passthrough
|
|
696
|
+
*
|
|
697
|
+
* @generated from field: optional string extra = 5;
|
|
698
|
+
*/
|
|
699
|
+
extra?: string | undefined;
|
|
700
|
+
};
|
|
701
|
+
/**
|
|
702
|
+
* Describes the message llmleaf.v1.EmbeddingRequest.
|
|
703
|
+
* Use `create(EmbeddingRequestSchema)` to create a new message.
|
|
704
|
+
*/
|
|
705
|
+
export declare const EmbeddingRequestSchema: GenMessage<EmbeddingRequest>;
|
|
706
|
+
/**
|
|
707
|
+
* @generated from message llmleaf.v1.Embedding
|
|
708
|
+
*/
|
|
709
|
+
export type Embedding = Message<"llmleaf.v1.Embedding"> & {
|
|
710
|
+
/**
|
|
711
|
+
* "embedding"
|
|
712
|
+
*
|
|
713
|
+
* @generated from field: string object = 1;
|
|
714
|
+
*/
|
|
715
|
+
object: string;
|
|
716
|
+
/**
|
|
717
|
+
* @generated from field: uint32 index = 2;
|
|
718
|
+
*/
|
|
719
|
+
index: number;
|
|
720
|
+
/**
|
|
721
|
+
* present when encoding_format == "float"
|
|
722
|
+
*
|
|
723
|
+
* @generated from field: repeated float embedding = 3;
|
|
724
|
+
*/
|
|
725
|
+
embedding: number[];
|
|
726
|
+
};
|
|
727
|
+
/**
|
|
728
|
+
* Describes the message llmleaf.v1.Embedding.
|
|
729
|
+
* Use `create(EmbeddingSchema)` to create a new message.
|
|
730
|
+
*/
|
|
731
|
+
export declare const EmbeddingSchema: GenMessage<Embedding>;
|
|
732
|
+
/**
|
|
733
|
+
* @generated from message llmleaf.v1.EmbeddingResponse
|
|
734
|
+
*/
|
|
735
|
+
export type EmbeddingResponse = Message<"llmleaf.v1.EmbeddingResponse"> & {
|
|
736
|
+
/**
|
|
737
|
+
* "list"
|
|
738
|
+
*
|
|
739
|
+
* @generated from field: string object = 1;
|
|
740
|
+
*/
|
|
741
|
+
object: string;
|
|
742
|
+
/**
|
|
743
|
+
* @generated from field: repeated llmleaf.v1.Embedding data = 2;
|
|
744
|
+
*/
|
|
745
|
+
data: Embedding[];
|
|
746
|
+
/**
|
|
747
|
+
* @generated from field: string model = 3;
|
|
748
|
+
*/
|
|
749
|
+
model: string;
|
|
750
|
+
/**
|
|
751
|
+
* @generated from field: llmleaf.v1.Usage usage = 4;
|
|
752
|
+
*/
|
|
753
|
+
usage?: Usage | undefined;
|
|
754
|
+
};
|
|
755
|
+
/**
|
|
756
|
+
* Describes the message llmleaf.v1.EmbeddingResponse.
|
|
757
|
+
* Use `create(EmbeddingResponseSchema)` to create a new message.
|
|
758
|
+
*/
|
|
759
|
+
export declare const EmbeddingResponseSchema: GenMessage<EmbeddingResponse>;
|
|
760
|
+
/**
|
|
761
|
+
* @generated from message llmleaf.v1.SpeechRequest
|
|
762
|
+
*/
|
|
763
|
+
export type SpeechRequest = Message<"llmleaf.v1.SpeechRequest"> & {
|
|
764
|
+
/**
|
|
765
|
+
* @generated from field: string model = 1;
|
|
766
|
+
*/
|
|
767
|
+
model: string;
|
|
768
|
+
/**
|
|
769
|
+
* @generated from field: string input = 2;
|
|
770
|
+
*/
|
|
771
|
+
input: string;
|
|
772
|
+
/**
|
|
773
|
+
* @generated from field: string voice = 3;
|
|
774
|
+
*/
|
|
775
|
+
voice: string;
|
|
776
|
+
/**
|
|
777
|
+
* mp3|opus|aac|flac|wav|pcm
|
|
778
|
+
*
|
|
779
|
+
* @generated from field: optional string response_format = 4;
|
|
780
|
+
*/
|
|
781
|
+
responseFormat?: string | undefined;
|
|
782
|
+
/**
|
|
783
|
+
* @generated from field: optional float speed = 5;
|
|
784
|
+
*/
|
|
785
|
+
speed?: number | undefined;
|
|
786
|
+
/**
|
|
787
|
+
* raw JSON object passthrough
|
|
788
|
+
*
|
|
789
|
+
* @generated from field: optional string extra = 6;
|
|
790
|
+
*/
|
|
791
|
+
extra?: string | undefined;
|
|
792
|
+
};
|
|
793
|
+
/**
|
|
794
|
+
* Describes the message llmleaf.v1.SpeechRequest.
|
|
795
|
+
* Use `create(SpeechRequestSchema)` to create a new message.
|
|
796
|
+
*/
|
|
797
|
+
export declare const SpeechRequestSchema: GenMessage<SpeechRequest>;
|
|
798
|
+
/**
|
|
799
|
+
* @generated from message llmleaf.v1.Voice
|
|
800
|
+
*/
|
|
801
|
+
export type Voice = Message<"llmleaf.v1.Voice"> & {
|
|
802
|
+
/**
|
|
803
|
+
* value to put in SpeechRequest.voice
|
|
804
|
+
*
|
|
805
|
+
* @generated from field: string id = 1;
|
|
806
|
+
*/
|
|
807
|
+
id: string;
|
|
808
|
+
/**
|
|
809
|
+
* @generated from field: optional string name = 2;
|
|
810
|
+
*/
|
|
811
|
+
name?: string | undefined;
|
|
812
|
+
/**
|
|
813
|
+
* BCP-47 tags
|
|
814
|
+
*
|
|
815
|
+
* @generated from field: repeated string languages = 3;
|
|
816
|
+
*/
|
|
817
|
+
languages: string[];
|
|
818
|
+
};
|
|
819
|
+
/**
|
|
820
|
+
* Describes the message llmleaf.v1.Voice.
|
|
821
|
+
* Use `create(VoiceSchema)` to create a new message.
|
|
822
|
+
*/
|
|
823
|
+
export declare const VoiceSchema: GenMessage<Voice>;
|
|
824
|
+
/**
|
|
825
|
+
* @generated from message llmleaf.v1.VoicesResponse
|
|
826
|
+
*/
|
|
827
|
+
export type VoicesResponse = Message<"llmleaf.v1.VoicesResponse"> & {
|
|
828
|
+
/**
|
|
829
|
+
* @generated from field: string model = 1;
|
|
830
|
+
*/
|
|
831
|
+
model: string;
|
|
832
|
+
/**
|
|
833
|
+
* @generated from field: repeated llmleaf.v1.Voice voices = 2;
|
|
834
|
+
*/
|
|
835
|
+
voices: Voice[];
|
|
836
|
+
};
|
|
837
|
+
/**
|
|
838
|
+
* Describes the message llmleaf.v1.VoicesResponse.
|
|
839
|
+
* Use `create(VoicesResponseSchema)` to create a new message.
|
|
840
|
+
*/
|
|
841
|
+
export declare const VoicesResponseSchema: GenMessage<VoicesResponse>;
|
|
842
|
+
/**
|
|
843
|
+
* The audio file itself is sent as the multipart `file` part, NOT in this message;
|
|
844
|
+
* these are the accompanying form fields.
|
|
845
|
+
*
|
|
846
|
+
* @generated from message llmleaf.v1.TranscriptionRequest
|
|
847
|
+
*/
|
|
848
|
+
export type TranscriptionRequest = Message<"llmleaf.v1.TranscriptionRequest"> & {
|
|
849
|
+
/**
|
|
850
|
+
* @generated from field: string model = 1;
|
|
851
|
+
*/
|
|
852
|
+
model: string;
|
|
853
|
+
/**
|
|
854
|
+
* ISO-639-1 hint
|
|
855
|
+
*
|
|
856
|
+
* @generated from field: optional string language = 2;
|
|
857
|
+
*/
|
|
858
|
+
language?: string | undefined;
|
|
859
|
+
/**
|
|
860
|
+
* decoding bias
|
|
861
|
+
*
|
|
862
|
+
* @generated from field: optional string prompt = 3;
|
|
863
|
+
*/
|
|
864
|
+
prompt?: string | undefined;
|
|
865
|
+
/**
|
|
866
|
+
* json|text|verbose_json|srt|vtt
|
|
867
|
+
*
|
|
868
|
+
* @generated from field: optional string response_format = 4;
|
|
869
|
+
*/
|
|
870
|
+
responseFormat?: string | undefined;
|
|
871
|
+
/**
|
|
872
|
+
* @generated from field: optional float temperature = 5;
|
|
873
|
+
*/
|
|
874
|
+
temperature?: number | undefined;
|
|
875
|
+
};
|
|
876
|
+
/**
|
|
877
|
+
* Describes the message llmleaf.v1.TranscriptionRequest.
|
|
878
|
+
* Use `create(TranscriptionRequestSchema)` to create a new message.
|
|
879
|
+
*/
|
|
880
|
+
export declare const TranscriptionRequestSchema: GenMessage<TranscriptionRequest>;
|
|
881
|
+
/**
|
|
882
|
+
* For response_format json/verbose_json. text/srt/vtt return a plain-text body.
|
|
883
|
+
*
|
|
884
|
+
* @generated from message llmleaf.v1.TranscriptionResponse
|
|
885
|
+
*/
|
|
886
|
+
export type TranscriptionResponse = Message<"llmleaf.v1.TranscriptionResponse"> & {
|
|
887
|
+
/**
|
|
888
|
+
* @generated from field: string text = 1;
|
|
889
|
+
*/
|
|
890
|
+
text: string;
|
|
891
|
+
/**
|
|
892
|
+
* "transcribe" (verbose_json)
|
|
893
|
+
*
|
|
894
|
+
* @generated from field: optional string task = 2;
|
|
895
|
+
*/
|
|
896
|
+
task?: string | undefined;
|
|
897
|
+
/**
|
|
898
|
+
* @generated from field: optional string language = 3;
|
|
899
|
+
*/
|
|
900
|
+
language?: string | undefined;
|
|
901
|
+
/**
|
|
902
|
+
* @generated from field: optional float duration = 4;
|
|
903
|
+
*/
|
|
904
|
+
duration?: number | undefined;
|
|
905
|
+
/**
|
|
906
|
+
* @generated from field: optional llmleaf.v1.Usage usage = 5;
|
|
907
|
+
*/
|
|
908
|
+
usage?: Usage | undefined;
|
|
909
|
+
};
|
|
910
|
+
/**
|
|
911
|
+
* Describes the message llmleaf.v1.TranscriptionResponse.
|
|
912
|
+
* Use `create(TranscriptionResponseSchema)` to create a new message.
|
|
913
|
+
*/
|
|
914
|
+
export declare const TranscriptionResponseSchema: GenMessage<TranscriptionResponse>;
|
|
915
|
+
/**
|
|
916
|
+
* @generated from message llmleaf.v1.Architecture
|
|
917
|
+
*/
|
|
918
|
+
export type Architecture = Message<"llmleaf.v1.Architecture"> & {
|
|
919
|
+
/**
|
|
920
|
+
* @generated from field: repeated string input_modalities = 1;
|
|
921
|
+
*/
|
|
922
|
+
inputModalities: string[];
|
|
923
|
+
/**
|
|
924
|
+
* @generated from field: repeated string output_modalities = 2;
|
|
925
|
+
*/
|
|
926
|
+
outputModalities: string[];
|
|
927
|
+
/**
|
|
928
|
+
* "text->text" | "text->audio" | ...
|
|
929
|
+
*
|
|
930
|
+
* @generated from field: optional string modality = 3;
|
|
931
|
+
*/
|
|
932
|
+
modality?: string | undefined;
|
|
933
|
+
/**
|
|
934
|
+
* @generated from field: string tokenizer = 4;
|
|
935
|
+
*/
|
|
936
|
+
tokenizer: string;
|
|
937
|
+
/**
|
|
938
|
+
* @generated from field: optional string instruct_type = 5;
|
|
939
|
+
*/
|
|
940
|
+
instructType?: string | undefined;
|
|
941
|
+
};
|
|
942
|
+
/**
|
|
943
|
+
* Describes the message llmleaf.v1.Architecture.
|
|
944
|
+
* Use `create(ArchitectureSchema)` to create a new message.
|
|
945
|
+
*/
|
|
946
|
+
export declare const ArchitectureSchema: GenMessage<Architecture>;
|
|
947
|
+
/**
|
|
948
|
+
* @generated from message llmleaf.v1.Pricing
|
|
949
|
+
*/
|
|
950
|
+
export type Pricing = Message<"llmleaf.v1.Pricing"> & {
|
|
951
|
+
/**
|
|
952
|
+
* USD per token, decimal string
|
|
953
|
+
*
|
|
954
|
+
* @generated from field: string prompt = 1;
|
|
955
|
+
*/
|
|
956
|
+
prompt: string;
|
|
957
|
+
/**
|
|
958
|
+
* @generated from field: string completion = 2;
|
|
959
|
+
*/
|
|
960
|
+
completion: string;
|
|
961
|
+
};
|
|
962
|
+
/**
|
|
963
|
+
* Describes the message llmleaf.v1.Pricing.
|
|
964
|
+
* Use `create(PricingSchema)` to create a new message.
|
|
965
|
+
*/
|
|
966
|
+
export declare const PricingSchema: GenMessage<Pricing>;
|
|
967
|
+
/**
|
|
968
|
+
* @generated from message llmleaf.v1.TopProvider
|
|
969
|
+
*/
|
|
970
|
+
export type TopProvider = Message<"llmleaf.v1.TopProvider"> & {
|
|
971
|
+
/**
|
|
972
|
+
* @generated from field: optional uint32 context_length = 1;
|
|
973
|
+
*/
|
|
974
|
+
contextLength?: number | undefined;
|
|
975
|
+
/**
|
|
976
|
+
* @generated from field: optional uint32 max_completion_tokens = 2;
|
|
977
|
+
*/
|
|
978
|
+
maxCompletionTokens?: number | undefined;
|
|
979
|
+
/**
|
|
980
|
+
* @generated from field: bool is_moderated = 3;
|
|
981
|
+
*/
|
|
982
|
+
isModerated: boolean;
|
|
983
|
+
/**
|
|
984
|
+
* llmleaf extension
|
|
985
|
+
*
|
|
986
|
+
* @generated from field: optional uint32 max_thinking_tokens = 4;
|
|
987
|
+
*/
|
|
988
|
+
maxThinkingTokens?: number | undefined;
|
|
989
|
+
};
|
|
990
|
+
/**
|
|
991
|
+
* Describes the message llmleaf.v1.TopProvider.
|
|
992
|
+
* Use `create(TopProviderSchema)` to create a new message.
|
|
993
|
+
*/
|
|
994
|
+
export declare const TopProviderSchema: GenMessage<TopProvider>;
|
|
995
|
+
/**
|
|
996
|
+
* Admin-only fallback-chain entry (present only with a valid x-admin-token).
|
|
997
|
+
*
|
|
998
|
+
* @generated from message llmleaf.v1.ModelEndpoint
|
|
999
|
+
*/
|
|
1000
|
+
export type ModelEndpoint = Message<"llmleaf.v1.ModelEndpoint"> & {
|
|
1001
|
+
/**
|
|
1002
|
+
* @generated from field: string provider = 1;
|
|
1003
|
+
*/
|
|
1004
|
+
provider: string;
|
|
1005
|
+
/**
|
|
1006
|
+
* @generated from field: string model = 2;
|
|
1007
|
+
*/
|
|
1008
|
+
model: string;
|
|
1009
|
+
/**
|
|
1010
|
+
* @generated from field: bool down = 3;
|
|
1011
|
+
*/
|
|
1012
|
+
down: boolean;
|
|
1013
|
+
/**
|
|
1014
|
+
* "route" | "prefix"
|
|
1015
|
+
*
|
|
1016
|
+
* @generated from field: string source = 4;
|
|
1017
|
+
*/
|
|
1018
|
+
source: string;
|
|
1019
|
+
};
|
|
1020
|
+
/**
|
|
1021
|
+
* Describes the message llmleaf.v1.ModelEndpoint.
|
|
1022
|
+
* Use `create(ModelEndpointSchema)` to create a new message.
|
|
1023
|
+
*/
|
|
1024
|
+
export declare const ModelEndpointSchema: GenMessage<ModelEndpoint>;
|
|
1025
|
+
/**
|
|
1026
|
+
* @generated from message llmleaf.v1.ModelEntry
|
|
1027
|
+
*/
|
|
1028
|
+
export type ModelEntry = Message<"llmleaf.v1.ModelEntry"> & {
|
|
1029
|
+
/**
|
|
1030
|
+
* @generated from field: string id = 1;
|
|
1031
|
+
*/
|
|
1032
|
+
id: string;
|
|
1033
|
+
/**
|
|
1034
|
+
* @generated from field: string canonical_slug = 2;
|
|
1035
|
+
*/
|
|
1036
|
+
canonicalSlug: string;
|
|
1037
|
+
/**
|
|
1038
|
+
* @generated from field: string name = 3;
|
|
1039
|
+
*/
|
|
1040
|
+
name: string;
|
|
1041
|
+
/**
|
|
1042
|
+
* @generated from field: int64 created = 4;
|
|
1043
|
+
*/
|
|
1044
|
+
created: bigint;
|
|
1045
|
+
/**
|
|
1046
|
+
* @generated from field: string description = 5;
|
|
1047
|
+
*/
|
|
1048
|
+
description: string;
|
|
1049
|
+
/**
|
|
1050
|
+
* @generated from field: optional uint32 context_length = 6;
|
|
1051
|
+
*/
|
|
1052
|
+
contextLength?: number | undefined;
|
|
1053
|
+
/**
|
|
1054
|
+
* @generated from field: llmleaf.v1.Architecture architecture = 7;
|
|
1055
|
+
*/
|
|
1056
|
+
architecture?: Architecture | undefined;
|
|
1057
|
+
/**
|
|
1058
|
+
* @generated from field: optional llmleaf.v1.Pricing pricing = 8;
|
|
1059
|
+
*/
|
|
1060
|
+
pricing?: Pricing | undefined;
|
|
1061
|
+
/**
|
|
1062
|
+
* @generated from field: llmleaf.v1.TopProvider top_provider = 9;
|
|
1063
|
+
*/
|
|
1064
|
+
topProvider?: TopProvider | undefined;
|
|
1065
|
+
/**
|
|
1066
|
+
* @generated from field: repeated string supported_parameters = 10;
|
|
1067
|
+
*/
|
|
1068
|
+
supportedParameters: string[];
|
|
1069
|
+
/**
|
|
1070
|
+
* @generated from field: repeated string unsupported_parameters = 11;
|
|
1071
|
+
*/
|
|
1072
|
+
unsupportedParameters: string[];
|
|
1073
|
+
/**
|
|
1074
|
+
* raw JSON object
|
|
1075
|
+
*
|
|
1076
|
+
* @generated from field: optional string default_parameters = 12;
|
|
1077
|
+
*/
|
|
1078
|
+
defaultParameters?: string | undefined;
|
|
1079
|
+
/**
|
|
1080
|
+
* admin-only
|
|
1081
|
+
*
|
|
1082
|
+
* @generated from field: repeated llmleaf.v1.ModelEndpoint endpoints = 13;
|
|
1083
|
+
*/
|
|
1084
|
+
endpoints: ModelEndpoint[];
|
|
1085
|
+
};
|
|
1086
|
+
/**
|
|
1087
|
+
* Describes the message llmleaf.v1.ModelEntry.
|
|
1088
|
+
* Use `create(ModelEntrySchema)` to create a new message.
|
|
1089
|
+
*/
|
|
1090
|
+
export declare const ModelEntrySchema: GenMessage<ModelEntry>;
|
|
1091
|
+
/**
|
|
1092
|
+
* @generated from message llmleaf.v1.ListModelsResponse
|
|
1093
|
+
*/
|
|
1094
|
+
export type ListModelsResponse = Message<"llmleaf.v1.ListModelsResponse"> & {
|
|
1095
|
+
/**
|
|
1096
|
+
* @generated from field: repeated llmleaf.v1.ModelEntry data = 1;
|
|
1097
|
+
*/
|
|
1098
|
+
data: ModelEntry[];
|
|
1099
|
+
};
|
|
1100
|
+
/**
|
|
1101
|
+
* Describes the message llmleaf.v1.ListModelsResponse.
|
|
1102
|
+
* Use `create(ListModelsResponseSchema)` to create a new message.
|
|
1103
|
+
*/
|
|
1104
|
+
export declare const ListModelsResponseSchema: GenMessage<ListModelsResponse>;
|
|
1105
|
+
/**
|
|
1106
|
+
* @generated from message llmleaf.v1.BatchRequestItem
|
|
1107
|
+
*/
|
|
1108
|
+
export type BatchRequestItem = Message<"llmleaf.v1.BatchRequestItem"> & {
|
|
1109
|
+
/**
|
|
1110
|
+
* @generated from field: string custom_id = 1;
|
|
1111
|
+
*/
|
|
1112
|
+
customId: string;
|
|
1113
|
+
/**
|
|
1114
|
+
* @generated from field: llmleaf.v1.ChatRequest body = 2;
|
|
1115
|
+
*/
|
|
1116
|
+
body?: ChatRequest | undefined;
|
|
1117
|
+
};
|
|
1118
|
+
/**
|
|
1119
|
+
* Describes the message llmleaf.v1.BatchRequestItem.
|
|
1120
|
+
* Use `create(BatchRequestItemSchema)` to create a new message.
|
|
1121
|
+
*/
|
|
1122
|
+
export declare const BatchRequestItemSchema: GenMessage<BatchRequestItem>;
|
|
1123
|
+
/**
|
|
1124
|
+
* @generated from message llmleaf.v1.BatchCreateRequest
|
|
1125
|
+
*/
|
|
1126
|
+
export type BatchCreateRequest = Message<"llmleaf.v1.BatchCreateRequest"> & {
|
|
1127
|
+
/**
|
|
1128
|
+
* @generated from field: repeated llmleaf.v1.BatchRequestItem requests = 1;
|
|
1129
|
+
*/
|
|
1130
|
+
requests: BatchRequestItem[];
|
|
1131
|
+
};
|
|
1132
|
+
/**
|
|
1133
|
+
* Describes the message llmleaf.v1.BatchCreateRequest.
|
|
1134
|
+
* Use `create(BatchCreateRequestSchema)` to create a new message.
|
|
1135
|
+
*/
|
|
1136
|
+
export declare const BatchCreateRequestSchema: GenMessage<BatchCreateRequest>;
|
|
1137
|
+
/**
|
|
1138
|
+
* @generated from message llmleaf.v1.BatchCounts
|
|
1139
|
+
*/
|
|
1140
|
+
export type BatchCounts = Message<"llmleaf.v1.BatchCounts"> & {
|
|
1141
|
+
/**
|
|
1142
|
+
* @generated from field: uint64 total = 1;
|
|
1143
|
+
*/
|
|
1144
|
+
total: bigint;
|
|
1145
|
+
/**
|
|
1146
|
+
* @generated from field: uint64 processing = 2;
|
|
1147
|
+
*/
|
|
1148
|
+
processing: bigint;
|
|
1149
|
+
/**
|
|
1150
|
+
* @generated from field: uint64 succeeded = 3;
|
|
1151
|
+
*/
|
|
1152
|
+
succeeded: bigint;
|
|
1153
|
+
/**
|
|
1154
|
+
* @generated from field: uint64 errored = 4;
|
|
1155
|
+
*/
|
|
1156
|
+
errored: bigint;
|
|
1157
|
+
/**
|
|
1158
|
+
* @generated from field: uint64 canceled = 5;
|
|
1159
|
+
*/
|
|
1160
|
+
canceled: bigint;
|
|
1161
|
+
/**
|
|
1162
|
+
* @generated from field: uint64 expired = 6;
|
|
1163
|
+
*/
|
|
1164
|
+
expired: bigint;
|
|
1165
|
+
};
|
|
1166
|
+
/**
|
|
1167
|
+
* Describes the message llmleaf.v1.BatchCounts.
|
|
1168
|
+
* Use `create(BatchCountsSchema)` to create a new message.
|
|
1169
|
+
*/
|
|
1170
|
+
export declare const BatchCountsSchema: GenMessage<BatchCounts>;
|
|
1171
|
+
/**
|
|
1172
|
+
* @generated from message llmleaf.v1.BatchHandle
|
|
1173
|
+
*/
|
|
1174
|
+
export type BatchHandle = Message<"llmleaf.v1.BatchHandle"> & {
|
|
1175
|
+
/**
|
|
1176
|
+
* @generated from field: string id = 1;
|
|
1177
|
+
*/
|
|
1178
|
+
id: string;
|
|
1179
|
+
/**
|
|
1180
|
+
* @generated from field: llmleaf.v1.BatchStatus status = 2;
|
|
1181
|
+
*/
|
|
1182
|
+
status: BatchStatus;
|
|
1183
|
+
/**
|
|
1184
|
+
* @generated from field: llmleaf.v1.BatchCounts counts = 3;
|
|
1185
|
+
*/
|
|
1186
|
+
counts?: BatchCounts | undefined;
|
|
1187
|
+
/**
|
|
1188
|
+
* @generated from field: optional int64 created_at = 4;
|
|
1189
|
+
*/
|
|
1190
|
+
createdAt?: bigint | undefined;
|
|
1191
|
+
/**
|
|
1192
|
+
* @generated from field: optional int64 expires_at = 5;
|
|
1193
|
+
*/
|
|
1194
|
+
expiresAt?: bigint | undefined;
|
|
1195
|
+
/**
|
|
1196
|
+
* @generated from field: optional int64 ended_at = 6;
|
|
1197
|
+
*/
|
|
1198
|
+
endedAt?: bigint | undefined;
|
|
1199
|
+
/**
|
|
1200
|
+
* e.g. "/v1/chat/completions"
|
|
1201
|
+
*
|
|
1202
|
+
* @generated from field: optional string endpoint = 7;
|
|
1203
|
+
*/
|
|
1204
|
+
endpoint?: string | undefined;
|
|
1205
|
+
};
|
|
1206
|
+
/**
|
|
1207
|
+
* Describes the message llmleaf.v1.BatchHandle.
|
|
1208
|
+
* Use `create(BatchHandleSchema)` to create a new message.
|
|
1209
|
+
*/
|
|
1210
|
+
export declare const BatchHandleSchema: GenMessage<BatchHandle>;
|
|
1211
|
+
/**
|
|
1212
|
+
* One line of the JSONL results stream (GET /v1/batches/{id}/results).
|
|
1213
|
+
*
|
|
1214
|
+
* @generated from message llmleaf.v1.BatchResultLine
|
|
1215
|
+
*/
|
|
1216
|
+
export type BatchResultLine = Message<"llmleaf.v1.BatchResultLine"> & {
|
|
1217
|
+
/**
|
|
1218
|
+
* @generated from field: string custom_id = 1;
|
|
1219
|
+
*/
|
|
1220
|
+
customId: string;
|
|
1221
|
+
/**
|
|
1222
|
+
* @generated from field: optional llmleaf.v1.BatchResponse response = 2;
|
|
1223
|
+
*/
|
|
1224
|
+
response?: BatchResponse | undefined;
|
|
1225
|
+
/**
|
|
1226
|
+
* @generated from field: optional llmleaf.v1.BatchError error = 3;
|
|
1227
|
+
*/
|
|
1228
|
+
error?: BatchError | undefined;
|
|
1229
|
+
};
|
|
1230
|
+
/**
|
|
1231
|
+
* Describes the message llmleaf.v1.BatchResultLine.
|
|
1232
|
+
* Use `create(BatchResultLineSchema)` to create a new message.
|
|
1233
|
+
*/
|
|
1234
|
+
export declare const BatchResultLineSchema: GenMessage<BatchResultLine>;
|
|
1235
|
+
/**
|
|
1236
|
+
* @generated from message llmleaf.v1.BatchResponse
|
|
1237
|
+
*/
|
|
1238
|
+
export type BatchResponse = Message<"llmleaf.v1.BatchResponse"> & {
|
|
1239
|
+
/**
|
|
1240
|
+
* @generated from field: uint32 status_code = 1;
|
|
1241
|
+
*/
|
|
1242
|
+
statusCode: number;
|
|
1243
|
+
/**
|
|
1244
|
+
* @generated from field: llmleaf.v1.ChatResponse body = 2;
|
|
1245
|
+
*/
|
|
1246
|
+
body?: ChatResponse | undefined;
|
|
1247
|
+
};
|
|
1248
|
+
/**
|
|
1249
|
+
* Describes the message llmleaf.v1.BatchResponse.
|
|
1250
|
+
* Use `create(BatchResponseSchema)` to create a new message.
|
|
1251
|
+
*/
|
|
1252
|
+
export declare const BatchResponseSchema: GenMessage<BatchResponse>;
|
|
1253
|
+
/**
|
|
1254
|
+
* @generated from message llmleaf.v1.BatchError
|
|
1255
|
+
*/
|
|
1256
|
+
export type BatchError = Message<"llmleaf.v1.BatchError"> & {
|
|
1257
|
+
/**
|
|
1258
|
+
* @generated from field: string code = 1;
|
|
1259
|
+
*/
|
|
1260
|
+
code: string;
|
|
1261
|
+
/**
|
|
1262
|
+
* @generated from field: string message = 2;
|
|
1263
|
+
*/
|
|
1264
|
+
message: string;
|
|
1265
|
+
};
|
|
1266
|
+
/**
|
|
1267
|
+
* Describes the message llmleaf.v1.BatchError.
|
|
1268
|
+
* Use `create(BatchErrorSchema)` to create a new message.
|
|
1269
|
+
*/
|
|
1270
|
+
export declare const BatchErrorSchema: GenMessage<BatchError>;
|
|
1271
|
+
/**
|
|
1272
|
+
* @generated from enum llmleaf.v1.Role
|
|
1273
|
+
*/
|
|
1274
|
+
export declare enum Role {
|
|
1275
|
+
/**
|
|
1276
|
+
* @generated from enum value: ROLE_UNSPECIFIED = 0;
|
|
1277
|
+
*/
|
|
1278
|
+
ROLE_UNSPECIFIED = 0,
|
|
1279
|
+
/**
|
|
1280
|
+
* @generated from enum value: SYSTEM = 1;
|
|
1281
|
+
*/
|
|
1282
|
+
SYSTEM = 1,
|
|
1283
|
+
/**
|
|
1284
|
+
* @generated from enum value: USER = 2;
|
|
1285
|
+
*/
|
|
1286
|
+
USER = 2,
|
|
1287
|
+
/**
|
|
1288
|
+
* @generated from enum value: ASSISTANT = 3;
|
|
1289
|
+
*/
|
|
1290
|
+
ASSISTANT = 3,
|
|
1291
|
+
/**
|
|
1292
|
+
* @generated from enum value: TOOL = 4;
|
|
1293
|
+
*/
|
|
1294
|
+
TOOL = 4
|
|
1295
|
+
}
|
|
1296
|
+
/**
|
|
1297
|
+
* Describes the enum llmleaf.v1.Role.
|
|
1298
|
+
*/
|
|
1299
|
+
export declare const RoleSchema: GenEnum<Role>;
|
|
1300
|
+
/**
|
|
1301
|
+
* @generated from enum llmleaf.v1.FinishReason
|
|
1302
|
+
*/
|
|
1303
|
+
export declare enum FinishReason {
|
|
1304
|
+
/**
|
|
1305
|
+
* @generated from enum value: FINISH_REASON_UNSPECIFIED = 0;
|
|
1306
|
+
*/
|
|
1307
|
+
FINISH_REASON_UNSPECIFIED = 0,
|
|
1308
|
+
/**
|
|
1309
|
+
* @generated from enum value: STOP = 1;
|
|
1310
|
+
*/
|
|
1311
|
+
STOP = 1,
|
|
1312
|
+
/**
|
|
1313
|
+
* @generated from enum value: LENGTH = 2;
|
|
1314
|
+
*/
|
|
1315
|
+
LENGTH = 2,
|
|
1316
|
+
/**
|
|
1317
|
+
* @generated from enum value: TOOL_CALLS = 3;
|
|
1318
|
+
*/
|
|
1319
|
+
TOOL_CALLS = 3,
|
|
1320
|
+
/**
|
|
1321
|
+
* @generated from enum value: CONTENT_FILTER = 4;
|
|
1322
|
+
*/
|
|
1323
|
+
CONTENT_FILTER = 4
|
|
1324
|
+
}
|
|
1325
|
+
/**
|
|
1326
|
+
* Describes the enum llmleaf.v1.FinishReason.
|
|
1327
|
+
*/
|
|
1328
|
+
export declare const FinishReasonSchema: GenEnum<FinishReason>;
|
|
1329
|
+
/**
|
|
1330
|
+
* @generated from enum llmleaf.v1.BatchStatus
|
|
1331
|
+
*/
|
|
1332
|
+
export declare enum BatchStatus {
|
|
1333
|
+
/**
|
|
1334
|
+
* @generated from enum value: BATCH_STATUS_UNSPECIFIED = 0;
|
|
1335
|
+
*/
|
|
1336
|
+
BATCH_STATUS_UNSPECIFIED = 0,
|
|
1337
|
+
/**
|
|
1338
|
+
* @generated from enum value: VALIDATING = 1;
|
|
1339
|
+
*/
|
|
1340
|
+
VALIDATING = 1,
|
|
1341
|
+
/**
|
|
1342
|
+
* @generated from enum value: IN_PROGRESS = 2;
|
|
1343
|
+
*/
|
|
1344
|
+
IN_PROGRESS = 2,
|
|
1345
|
+
/**
|
|
1346
|
+
* @generated from enum value: FINALIZING = 3;
|
|
1347
|
+
*/
|
|
1348
|
+
FINALIZING = 3,
|
|
1349
|
+
/**
|
|
1350
|
+
* @generated from enum value: COMPLETED = 4;
|
|
1351
|
+
*/
|
|
1352
|
+
COMPLETED = 4,
|
|
1353
|
+
/**
|
|
1354
|
+
* @generated from enum value: FAILED = 5;
|
|
1355
|
+
*/
|
|
1356
|
+
FAILED = 5,
|
|
1357
|
+
/**
|
|
1358
|
+
* @generated from enum value: EXPIRED = 6;
|
|
1359
|
+
*/
|
|
1360
|
+
EXPIRED = 6,
|
|
1361
|
+
/**
|
|
1362
|
+
* @generated from enum value: CANCELING = 7;
|
|
1363
|
+
*/
|
|
1364
|
+
CANCELING = 7,
|
|
1365
|
+
/**
|
|
1366
|
+
* @generated from enum value: CANCELED = 8;
|
|
1367
|
+
*/
|
|
1368
|
+
CANCELED = 8
|
|
1369
|
+
}
|
|
1370
|
+
/**
|
|
1371
|
+
* Describes the enum llmleaf.v1.BatchStatus.
|
|
1372
|
+
*/
|
|
1373
|
+
export declare const BatchStatusSchema: GenEnum<BatchStatus>;
|
|
1374
|
+
//# sourceMappingURL=llmleaf_pb.d.ts.map
|