@letta-ai/letta-client 1.0.0-alpha.16 → 1.0.0-alpha.17
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/CHANGELOG.md +15 -0
- package/client.d.mts +2 -2
- package/client.d.mts.map +1 -1
- package/client.d.ts +2 -2
- package/client.d.ts.map +1 -1
- package/client.js.map +1 -1
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/agents/agents.d.mts +962 -111
- package/resources/agents/agents.d.mts.map +1 -1
- package/resources/agents/agents.d.ts +962 -111
- package/resources/agents/agents.d.ts.map +1 -1
- package/resources/agents/agents.js.map +1 -1
- package/resources/agents/agents.mjs.map +1 -1
- package/resources/agents/blocks.d.mts +1 -15
- package/resources/agents/blocks.d.mts.map +1 -1
- package/resources/agents/blocks.d.ts +1 -15
- package/resources/agents/blocks.d.ts.map +1 -1
- package/resources/agents/folders.d.mts +2 -7
- package/resources/agents/folders.d.mts.map +1 -1
- package/resources/agents/folders.d.ts +2 -7
- package/resources/agents/folders.d.ts.map +1 -1
- package/resources/agents/messages.d.mts +0 -10
- package/resources/agents/messages.d.mts.map +1 -1
- package/resources/agents/messages.d.ts +0 -10
- package/resources/agents/messages.d.ts.map +1 -1
- package/resources/archives.d.mts +0 -6
- package/resources/archives.d.mts.map +1 -1
- package/resources/archives.d.ts +0 -6
- package/resources/archives.d.ts.map +1 -1
- package/resources/folders/folders.d.mts +0 -6
- package/resources/folders/folders.d.mts.map +1 -1
- package/resources/folders/folders.d.ts +0 -6
- package/resources/folders/folders.d.ts.map +1 -1
- package/resources/folders/folders.js.map +1 -1
- package/resources/folders/folders.mjs.map +1 -1
- package/resources/index.d.mts +1 -1
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +1 -1
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs.map +1 -1
- package/resources/mcp-servers/mcp-servers.d.mts +0 -10
- package/resources/mcp-servers/mcp-servers.d.mts.map +1 -1
- package/resources/mcp-servers/mcp-servers.d.ts +0 -10
- package/resources/mcp-servers/mcp-servers.d.ts.map +1 -1
- package/resources/mcp-servers/mcp-servers.js.map +1 -1
- package/resources/mcp-servers/mcp-servers.mjs.map +1 -1
- package/resources/models/embeddings.d.mts +1 -66
- package/resources/models/embeddings.d.mts.map +1 -1
- package/resources/models/embeddings.d.ts +1 -66
- package/resources/models/embeddings.d.ts.map +1 -1
- package/resources/models/index.d.mts +1 -1
- package/resources/models/index.d.mts.map +1 -1
- package/resources/models/index.d.ts +1 -1
- package/resources/models/index.d.ts.map +1 -1
- package/resources/models/index.js.map +1 -1
- package/resources/models/index.mjs.map +1 -1
- package/resources/models/models.d.mts +169 -109
- package/resources/models/models.d.mts.map +1 -1
- package/resources/models/models.d.ts +169 -109
- package/resources/models/models.d.ts.map +1 -1
- package/resources/models/models.js.map +1 -1
- package/resources/models/models.mjs.map +1 -1
- package/resources/runs/runs.d.mts +0 -5
- package/resources/runs/runs.d.mts.map +1 -1
- package/resources/runs/runs.d.ts +0 -5
- package/resources/runs/runs.d.ts.map +1 -1
- package/resources/runs/runs.js.map +1 -1
- package/resources/runs/runs.mjs.map +1 -1
- package/resources/tools.d.mts +0 -4
- package/resources/tools.d.mts.map +1 -1
- package/resources/tools.d.ts +0 -4
- package/resources/tools.d.ts.map +1 -1
- package/src/client.ts +4 -0
- package/src/resources/agents/agents.ts +1235 -69
- package/src/resources/agents/blocks.ts +1 -15
- package/src/resources/agents/folders.ts +2 -7
- package/src/resources/agents/messages.ts +0 -10
- package/src/resources/archives.ts +0 -6
- package/src/resources/folders/folders.ts +0 -6
- package/src/resources/index.ts +2 -0
- package/src/resources/mcp-servers/mcp-servers.ts +0 -10
- package/src/resources/models/embeddings.ts +1 -100
- package/src/resources/models/index.ts +2 -0
- package/src/resources/models/models.ts +249 -153
- package/src/resources/runs/runs.ts +0 -5
- package/src/resources/tools.ts +0 -4
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { APIResource } from "../../core/resource.mjs";
|
|
2
|
-
import * as ModelsAPI from "./models.mjs";
|
|
3
2
|
import * as EmbeddingsAPI from "./embeddings.mjs";
|
|
4
3
|
import { EmbeddingListResponse, Embeddings } from "./embeddings.mjs";
|
|
5
4
|
import { APIPromise } from "../../core/api-promise.mjs";
|
|
@@ -61,6 +60,69 @@ export interface EmbeddingConfig {
|
|
|
61
60
|
*/
|
|
62
61
|
handle?: string | null;
|
|
63
62
|
}
|
|
63
|
+
export interface EmbeddingModel {
|
|
64
|
+
/**
|
|
65
|
+
* Display name for the model shown in UI
|
|
66
|
+
*/
|
|
67
|
+
display_name: string;
|
|
68
|
+
/**
|
|
69
|
+
* The dimension of the embedding
|
|
70
|
+
*/
|
|
71
|
+
embedding_dim: number;
|
|
72
|
+
/**
|
|
73
|
+
* @deprecated Deprecated: Use 'provider_type' field instead. The endpoint type for
|
|
74
|
+
* the embedding model.
|
|
75
|
+
*/
|
|
76
|
+
embedding_endpoint_type: 'openai' | 'anthropic' | 'bedrock' | 'google_ai' | 'google_vertex' | 'azure' | 'groq' | 'ollama' | 'webui' | 'webui-legacy' | 'lmstudio' | 'lmstudio-legacy' | 'llamacpp' | 'koboldcpp' | 'vllm' | 'hugging-face' | 'mistral' | 'together' | 'pinecone';
|
|
77
|
+
/**
|
|
78
|
+
* @deprecated Deprecated: Use 'name' field instead. Embedding model name.
|
|
79
|
+
*/
|
|
80
|
+
embedding_model: string;
|
|
81
|
+
/**
|
|
82
|
+
* The actual model name used by the provider
|
|
83
|
+
*/
|
|
84
|
+
name: string;
|
|
85
|
+
/**
|
|
86
|
+
* The name of the provider
|
|
87
|
+
*/
|
|
88
|
+
provider_name: string;
|
|
89
|
+
/**
|
|
90
|
+
* The type of the provider
|
|
91
|
+
*/
|
|
92
|
+
provider_type: ProviderType;
|
|
93
|
+
/**
|
|
94
|
+
* @deprecated Deprecated: The Azure deployment for the model.
|
|
95
|
+
*/
|
|
96
|
+
azure_deployment?: string | null;
|
|
97
|
+
/**
|
|
98
|
+
* @deprecated Deprecated: The Azure endpoint for the model.
|
|
99
|
+
*/
|
|
100
|
+
azure_endpoint?: string | null;
|
|
101
|
+
/**
|
|
102
|
+
* @deprecated Deprecated: The Azure version for the model.
|
|
103
|
+
*/
|
|
104
|
+
azure_version?: string | null;
|
|
105
|
+
/**
|
|
106
|
+
* @deprecated Deprecated: The maximum batch size for processing embeddings.
|
|
107
|
+
*/
|
|
108
|
+
batch_size?: number;
|
|
109
|
+
/**
|
|
110
|
+
* @deprecated Deprecated: The chunk size of the embedding.
|
|
111
|
+
*/
|
|
112
|
+
embedding_chunk_size?: number | null;
|
|
113
|
+
/**
|
|
114
|
+
* @deprecated Deprecated: The endpoint for the model.
|
|
115
|
+
*/
|
|
116
|
+
embedding_endpoint?: string | null;
|
|
117
|
+
/**
|
|
118
|
+
* The handle for this config, in the format provider/model-name.
|
|
119
|
+
*/
|
|
120
|
+
handle?: string | null;
|
|
121
|
+
/**
|
|
122
|
+
* Type of model (llm or embedding)
|
|
123
|
+
*/
|
|
124
|
+
model_type?: 'embedding';
|
|
125
|
+
}
|
|
64
126
|
/**
|
|
65
127
|
* Configuration for Language Model (LLM) connection and generation parameters.
|
|
66
128
|
*/
|
|
@@ -155,122 +217,120 @@ export interface LlmConfig {
|
|
|
155
217
|
*/
|
|
156
218
|
verbosity?: 'low' | 'medium' | 'high' | null;
|
|
157
219
|
}
|
|
220
|
+
export interface Model {
|
|
221
|
+
/**
|
|
222
|
+
* @deprecated Deprecated: Use 'max_context_window' field instead. The context
|
|
223
|
+
* window size for the model.
|
|
224
|
+
*/
|
|
225
|
+
context_window: number;
|
|
226
|
+
/**
|
|
227
|
+
* The maximum context window for the model
|
|
228
|
+
*/
|
|
229
|
+
max_context_window: number;
|
|
230
|
+
/**
|
|
231
|
+
* @deprecated Deprecated: Use 'name' field instead. LLM model name.
|
|
232
|
+
*/
|
|
233
|
+
model: string;
|
|
234
|
+
/**
|
|
235
|
+
* @deprecated Deprecated: Use 'provider_type' field instead. The endpoint type for
|
|
236
|
+
* the model.
|
|
237
|
+
*/
|
|
238
|
+
model_endpoint_type: 'openai' | 'anthropic' | 'google_ai' | 'google_vertex' | 'azure' | 'groq' | 'ollama' | 'webui' | 'webui-legacy' | 'lmstudio' | 'lmstudio-legacy' | 'lmstudio-chatcompletions' | 'llamacpp' | 'koboldcpp' | 'vllm' | 'hugging-face' | 'mistral' | 'together' | 'bedrock' | 'deepseek' | 'xai';
|
|
239
|
+
/**
|
|
240
|
+
* The actual model name used by the provider
|
|
241
|
+
*/
|
|
242
|
+
name: string;
|
|
243
|
+
/**
|
|
244
|
+
* The type of the provider
|
|
245
|
+
*/
|
|
246
|
+
provider_type: ProviderType;
|
|
247
|
+
/**
|
|
248
|
+
* @deprecated Deprecated: The framework compatibility type for the model.
|
|
249
|
+
*/
|
|
250
|
+
compatibility_type?: 'gguf' | 'mlx' | null;
|
|
251
|
+
/**
|
|
252
|
+
* A human-friendly display name for the model.
|
|
253
|
+
*/
|
|
254
|
+
display_name?: string | null;
|
|
255
|
+
/**
|
|
256
|
+
* @deprecated Deprecated: Whether or not the model should use extended thinking if
|
|
257
|
+
* it is a 'reasoning' style model.
|
|
258
|
+
*/
|
|
259
|
+
enable_reasoner?: boolean;
|
|
260
|
+
/**
|
|
261
|
+
* @deprecated Deprecated: Positive values penalize new tokens based on their
|
|
262
|
+
* existing frequency in the text so far.
|
|
263
|
+
*/
|
|
264
|
+
frequency_penalty?: number | null;
|
|
265
|
+
/**
|
|
266
|
+
* The handle for this config, in the format provider/model-name.
|
|
267
|
+
*/
|
|
268
|
+
handle?: string | null;
|
|
269
|
+
/**
|
|
270
|
+
* @deprecated Deprecated: Configurable thinking budget for extended thinking.
|
|
271
|
+
*/
|
|
272
|
+
max_reasoning_tokens?: number;
|
|
273
|
+
/**
|
|
274
|
+
* @deprecated Deprecated: The maximum number of tokens to generate.
|
|
275
|
+
*/
|
|
276
|
+
max_tokens?: number | null;
|
|
277
|
+
/**
|
|
278
|
+
* @deprecated Deprecated: The endpoint for the model.
|
|
279
|
+
*/
|
|
280
|
+
model_endpoint?: string | null;
|
|
281
|
+
/**
|
|
282
|
+
* Type of model (llm or embedding)
|
|
283
|
+
*/
|
|
284
|
+
model_type?: 'llm';
|
|
285
|
+
/**
|
|
286
|
+
* @deprecated Deprecated: The wrapper for the model.
|
|
287
|
+
*/
|
|
288
|
+
model_wrapper?: string | null;
|
|
289
|
+
/**
|
|
290
|
+
* @deprecated Deprecated: If set to True, enables parallel tool calling.
|
|
291
|
+
*/
|
|
292
|
+
parallel_tool_calls?: boolean | null;
|
|
293
|
+
/**
|
|
294
|
+
* @deprecated Deprecated: The provider category for the model.
|
|
295
|
+
*/
|
|
296
|
+
provider_category?: ProviderCategory | null;
|
|
297
|
+
/**
|
|
298
|
+
* The provider name for the model.
|
|
299
|
+
*/
|
|
300
|
+
provider_name?: string | null;
|
|
301
|
+
/**
|
|
302
|
+
* @deprecated Deprecated: Puts 'inner_thoughts' as a kwarg in the function call.
|
|
303
|
+
*/
|
|
304
|
+
put_inner_thoughts_in_kwargs?: boolean | null;
|
|
305
|
+
/**
|
|
306
|
+
* @deprecated Deprecated: The reasoning effort to use when generating text
|
|
307
|
+
* reasoning models.
|
|
308
|
+
*/
|
|
309
|
+
reasoning_effort?: 'minimal' | 'low' | 'medium' | 'high' | null;
|
|
310
|
+
/**
|
|
311
|
+
* @deprecated Deprecated: The temperature to use when generating text with the
|
|
312
|
+
* model.
|
|
313
|
+
*/
|
|
314
|
+
temperature?: number;
|
|
315
|
+
/**
|
|
316
|
+
* @deprecated Deprecated: The cost tier for the model (cloud only).
|
|
317
|
+
*/
|
|
318
|
+
tier?: string | null;
|
|
319
|
+
/**
|
|
320
|
+
* @deprecated Deprecated: Soft control for how verbose model output should be.
|
|
321
|
+
*/
|
|
322
|
+
verbosity?: 'low' | 'medium' | 'high' | null;
|
|
323
|
+
}
|
|
158
324
|
export type ProviderCategory = 'base' | 'byok';
|
|
159
325
|
export type ProviderType = 'anthropic' | 'azure' | 'bedrock' | 'cerebras' | 'deepseek' | 'google_ai' | 'google_vertex' | 'groq' | 'hugging-face' | 'letta' | 'lmstudio_openai' | 'mistral' | 'ollama' | 'openai' | 'together' | 'vllm' | 'xai';
|
|
160
|
-
export type ModelListResponse = Array<
|
|
161
|
-
export declare namespace ModelListResponse {
|
|
162
|
-
interface ModelListResponseItem {
|
|
163
|
-
/**
|
|
164
|
-
* @deprecated Deprecated: Use 'max_context_window' field instead. The context
|
|
165
|
-
* window size for the model.
|
|
166
|
-
*/
|
|
167
|
-
context_window: number;
|
|
168
|
-
/**
|
|
169
|
-
* The maximum context window for the model
|
|
170
|
-
*/
|
|
171
|
-
max_context_window: number;
|
|
172
|
-
/**
|
|
173
|
-
* @deprecated Deprecated: Use 'name' field instead. LLM model name.
|
|
174
|
-
*/
|
|
175
|
-
model: string;
|
|
176
|
-
/**
|
|
177
|
-
* @deprecated Deprecated: Use 'provider_type' field instead. The endpoint type for
|
|
178
|
-
* the model.
|
|
179
|
-
*/
|
|
180
|
-
model_endpoint_type: 'openai' | 'anthropic' | 'google_ai' | 'google_vertex' | 'azure' | 'groq' | 'ollama' | 'webui' | 'webui-legacy' | 'lmstudio' | 'lmstudio-legacy' | 'lmstudio-chatcompletions' | 'llamacpp' | 'koboldcpp' | 'vllm' | 'hugging-face' | 'mistral' | 'together' | 'bedrock' | 'deepseek' | 'xai';
|
|
181
|
-
/**
|
|
182
|
-
* The actual model name used by the provider
|
|
183
|
-
*/
|
|
184
|
-
name: string;
|
|
185
|
-
/**
|
|
186
|
-
* The type of the provider
|
|
187
|
-
*/
|
|
188
|
-
provider_type: ModelsAPI.ProviderType;
|
|
189
|
-
/**
|
|
190
|
-
* @deprecated Deprecated: The framework compatibility type for the model.
|
|
191
|
-
*/
|
|
192
|
-
compatibility_type?: 'gguf' | 'mlx' | null;
|
|
193
|
-
/**
|
|
194
|
-
* A human-friendly display name for the model.
|
|
195
|
-
*/
|
|
196
|
-
display_name?: string | null;
|
|
197
|
-
/**
|
|
198
|
-
* @deprecated Deprecated: Whether or not the model should use extended thinking if
|
|
199
|
-
* it is a 'reasoning' style model.
|
|
200
|
-
*/
|
|
201
|
-
enable_reasoner?: boolean;
|
|
202
|
-
/**
|
|
203
|
-
* @deprecated Deprecated: Positive values penalize new tokens based on their
|
|
204
|
-
* existing frequency in the text so far.
|
|
205
|
-
*/
|
|
206
|
-
frequency_penalty?: number | null;
|
|
207
|
-
/**
|
|
208
|
-
* The handle for this config, in the format provider/model-name.
|
|
209
|
-
*/
|
|
210
|
-
handle?: string | null;
|
|
211
|
-
/**
|
|
212
|
-
* @deprecated Deprecated: Configurable thinking budget for extended thinking.
|
|
213
|
-
*/
|
|
214
|
-
max_reasoning_tokens?: number;
|
|
215
|
-
/**
|
|
216
|
-
* @deprecated Deprecated: The maximum number of tokens to generate.
|
|
217
|
-
*/
|
|
218
|
-
max_tokens?: number | null;
|
|
219
|
-
/**
|
|
220
|
-
* @deprecated Deprecated: The endpoint for the model.
|
|
221
|
-
*/
|
|
222
|
-
model_endpoint?: string | null;
|
|
223
|
-
/**
|
|
224
|
-
* Type of model (llm or embedding)
|
|
225
|
-
*/
|
|
226
|
-
model_type?: 'llm';
|
|
227
|
-
/**
|
|
228
|
-
* @deprecated Deprecated: The wrapper for the model.
|
|
229
|
-
*/
|
|
230
|
-
model_wrapper?: string | null;
|
|
231
|
-
/**
|
|
232
|
-
* @deprecated Deprecated: If set to True, enables parallel tool calling.
|
|
233
|
-
*/
|
|
234
|
-
parallel_tool_calls?: boolean | null;
|
|
235
|
-
/**
|
|
236
|
-
* @deprecated Deprecated: The provider category for the model.
|
|
237
|
-
*/
|
|
238
|
-
provider_category?: ModelsAPI.ProviderCategory | null;
|
|
239
|
-
/**
|
|
240
|
-
* The provider name for the model.
|
|
241
|
-
*/
|
|
242
|
-
provider_name?: string | null;
|
|
243
|
-
/**
|
|
244
|
-
* @deprecated Deprecated: Puts 'inner_thoughts' as a kwarg in the function call.
|
|
245
|
-
*/
|
|
246
|
-
put_inner_thoughts_in_kwargs?: boolean | null;
|
|
247
|
-
/**
|
|
248
|
-
* @deprecated Deprecated: The reasoning effort to use when generating text
|
|
249
|
-
* reasoning models.
|
|
250
|
-
*/
|
|
251
|
-
reasoning_effort?: 'minimal' | 'low' | 'medium' | 'high' | null;
|
|
252
|
-
/**
|
|
253
|
-
* @deprecated Deprecated: The temperature to use when generating text with the
|
|
254
|
-
* model.
|
|
255
|
-
*/
|
|
256
|
-
temperature?: number;
|
|
257
|
-
/**
|
|
258
|
-
* @deprecated Deprecated: The cost tier for the model (cloud only).
|
|
259
|
-
*/
|
|
260
|
-
tier?: string | null;
|
|
261
|
-
/**
|
|
262
|
-
* @deprecated Deprecated: Soft control for how verbose model output should be.
|
|
263
|
-
*/
|
|
264
|
-
verbosity?: 'low' | 'medium' | 'high' | null;
|
|
265
|
-
}
|
|
266
|
-
}
|
|
326
|
+
export type ModelListResponse = Array<Model>;
|
|
267
327
|
export interface ModelListParams {
|
|
268
328
|
provider_category?: Array<ProviderCategory> | null;
|
|
269
329
|
provider_name?: string | null;
|
|
270
330
|
provider_type?: ProviderType | null;
|
|
271
331
|
}
|
|
272
332
|
export declare namespace Models {
|
|
273
|
-
export { type EmbeddingConfig as EmbeddingConfig, type LlmConfig as LlmConfig, type ProviderCategory as ProviderCategory, type ProviderType as ProviderType, type ModelListResponse as ModelListResponse, type ModelListParams as ModelListParams, };
|
|
333
|
+
export { type EmbeddingConfig as EmbeddingConfig, type EmbeddingModel as EmbeddingModel, type LlmConfig as LlmConfig, type Model as Model, type ProviderCategory as ProviderCategory, type ProviderType as ProviderType, type ModelListResponse as ModelListResponse, type ModelListParams as ModelListParams, };
|
|
274
334
|
export { Embeddings as Embeddings, type EmbeddingListResponse as EmbeddingListResponse };
|
|
275
335
|
}
|
|
276
336
|
//# sourceMappingURL=models.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"models.d.mts","sourceRoot":"","sources":["../../src/resources/models/models.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,
|
|
1
|
+
{"version":3,"file":"models.d.mts","sourceRoot":"","sources":["../../src/resources/models/models.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,aAAa;OAClB,EAAE,qBAAqB,EAAE,UAAU,EAAE;OACrC,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB,qBAAa,MAAO,SAAQ,WAAW;IACrC,UAAU,EAAE,aAAa,CAAC,UAAU,CAA8C;IAElF;;;;;;;OAOG;IACH,IAAI,CACF,KAAK,GAAE,eAAe,GAAG,IAAI,GAAG,SAAc,EAC9C,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,iBAAiB,CAAC;CAGjC;AAED;;GAEG;AACH,MAAM,WAAW,eAAe;IAC9B;;OAEG;IACH,aAAa,EAAE,MAAM,CAAC;IAEtB;;OAEG;IACH,uBAAuB,EACnB,QAAQ,GACR,WAAW,GACX,SAAS,GACT,WAAW,GACX,eAAe,GACf,OAAO,GACP,MAAM,GACN,QAAQ,GACR,OAAO,GACP,cAAc,GACd,UAAU,GACV,iBAAiB,GACjB,UAAU,GACV,WAAW,GACX,MAAM,GACN,cAAc,GACd,SAAS,GACT,UAAU,GACV,UAAU,CAAC;IAEf;;OAEG;IACH,eAAe,EAAE,MAAM,CAAC;IAExB;;OAEG;IACH,gBAAgB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEjC;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAE/B;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAE9B;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,oBAAoB,CAAC,EAAE,MAAM,GAAG,IAAI,CAA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I,eAAe,EACvC,KAAK,cAAc,IAAI,cAAc,EACrC,KAAK,SAAS,IAAI,SAAS,EAC3B,KAAK,KAAK,IAAI,KAAK,EACnB,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,YAAY,IAAI,YAAY,EACjC,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,eAAe,IAAI,eAAe,GACxC,CAAC;IAEF,OAAO,EAAE,UAAU,IAAI,UAAU,EAAE,KAAK,qBAAqB,IAAI,qBAAqB,EAAE,CAAC;CAC1F"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { APIResource } from "../../core/resource.js";
|
|
2
|
-
import * as ModelsAPI from "./models.js";
|
|
3
2
|
import * as EmbeddingsAPI from "./embeddings.js";
|
|
4
3
|
import { EmbeddingListResponse, Embeddings } from "./embeddings.js";
|
|
5
4
|
import { APIPromise } from "../../core/api-promise.js";
|
|
@@ -61,6 +60,69 @@ export interface EmbeddingConfig {
|
|
|
61
60
|
*/
|
|
62
61
|
handle?: string | null;
|
|
63
62
|
}
|
|
63
|
+
export interface EmbeddingModel {
|
|
64
|
+
/**
|
|
65
|
+
* Display name for the model shown in UI
|
|
66
|
+
*/
|
|
67
|
+
display_name: string;
|
|
68
|
+
/**
|
|
69
|
+
* The dimension of the embedding
|
|
70
|
+
*/
|
|
71
|
+
embedding_dim: number;
|
|
72
|
+
/**
|
|
73
|
+
* @deprecated Deprecated: Use 'provider_type' field instead. The endpoint type for
|
|
74
|
+
* the embedding model.
|
|
75
|
+
*/
|
|
76
|
+
embedding_endpoint_type: 'openai' | 'anthropic' | 'bedrock' | 'google_ai' | 'google_vertex' | 'azure' | 'groq' | 'ollama' | 'webui' | 'webui-legacy' | 'lmstudio' | 'lmstudio-legacy' | 'llamacpp' | 'koboldcpp' | 'vllm' | 'hugging-face' | 'mistral' | 'together' | 'pinecone';
|
|
77
|
+
/**
|
|
78
|
+
* @deprecated Deprecated: Use 'name' field instead. Embedding model name.
|
|
79
|
+
*/
|
|
80
|
+
embedding_model: string;
|
|
81
|
+
/**
|
|
82
|
+
* The actual model name used by the provider
|
|
83
|
+
*/
|
|
84
|
+
name: string;
|
|
85
|
+
/**
|
|
86
|
+
* The name of the provider
|
|
87
|
+
*/
|
|
88
|
+
provider_name: string;
|
|
89
|
+
/**
|
|
90
|
+
* The type of the provider
|
|
91
|
+
*/
|
|
92
|
+
provider_type: ProviderType;
|
|
93
|
+
/**
|
|
94
|
+
* @deprecated Deprecated: The Azure deployment for the model.
|
|
95
|
+
*/
|
|
96
|
+
azure_deployment?: string | null;
|
|
97
|
+
/**
|
|
98
|
+
* @deprecated Deprecated: The Azure endpoint for the model.
|
|
99
|
+
*/
|
|
100
|
+
azure_endpoint?: string | null;
|
|
101
|
+
/**
|
|
102
|
+
* @deprecated Deprecated: The Azure version for the model.
|
|
103
|
+
*/
|
|
104
|
+
azure_version?: string | null;
|
|
105
|
+
/**
|
|
106
|
+
* @deprecated Deprecated: The maximum batch size for processing embeddings.
|
|
107
|
+
*/
|
|
108
|
+
batch_size?: number;
|
|
109
|
+
/**
|
|
110
|
+
* @deprecated Deprecated: The chunk size of the embedding.
|
|
111
|
+
*/
|
|
112
|
+
embedding_chunk_size?: number | null;
|
|
113
|
+
/**
|
|
114
|
+
* @deprecated Deprecated: The endpoint for the model.
|
|
115
|
+
*/
|
|
116
|
+
embedding_endpoint?: string | null;
|
|
117
|
+
/**
|
|
118
|
+
* The handle for this config, in the format provider/model-name.
|
|
119
|
+
*/
|
|
120
|
+
handle?: string | null;
|
|
121
|
+
/**
|
|
122
|
+
* Type of model (llm or embedding)
|
|
123
|
+
*/
|
|
124
|
+
model_type?: 'embedding';
|
|
125
|
+
}
|
|
64
126
|
/**
|
|
65
127
|
* Configuration for Language Model (LLM) connection and generation parameters.
|
|
66
128
|
*/
|
|
@@ -155,122 +217,120 @@ export interface LlmConfig {
|
|
|
155
217
|
*/
|
|
156
218
|
verbosity?: 'low' | 'medium' | 'high' | null;
|
|
157
219
|
}
|
|
220
|
+
export interface Model {
|
|
221
|
+
/**
|
|
222
|
+
* @deprecated Deprecated: Use 'max_context_window' field instead. The context
|
|
223
|
+
* window size for the model.
|
|
224
|
+
*/
|
|
225
|
+
context_window: number;
|
|
226
|
+
/**
|
|
227
|
+
* The maximum context window for the model
|
|
228
|
+
*/
|
|
229
|
+
max_context_window: number;
|
|
230
|
+
/**
|
|
231
|
+
* @deprecated Deprecated: Use 'name' field instead. LLM model name.
|
|
232
|
+
*/
|
|
233
|
+
model: string;
|
|
234
|
+
/**
|
|
235
|
+
* @deprecated Deprecated: Use 'provider_type' field instead. The endpoint type for
|
|
236
|
+
* the model.
|
|
237
|
+
*/
|
|
238
|
+
model_endpoint_type: 'openai' | 'anthropic' | 'google_ai' | 'google_vertex' | 'azure' | 'groq' | 'ollama' | 'webui' | 'webui-legacy' | 'lmstudio' | 'lmstudio-legacy' | 'lmstudio-chatcompletions' | 'llamacpp' | 'koboldcpp' | 'vllm' | 'hugging-face' | 'mistral' | 'together' | 'bedrock' | 'deepseek' | 'xai';
|
|
239
|
+
/**
|
|
240
|
+
* The actual model name used by the provider
|
|
241
|
+
*/
|
|
242
|
+
name: string;
|
|
243
|
+
/**
|
|
244
|
+
* The type of the provider
|
|
245
|
+
*/
|
|
246
|
+
provider_type: ProviderType;
|
|
247
|
+
/**
|
|
248
|
+
* @deprecated Deprecated: The framework compatibility type for the model.
|
|
249
|
+
*/
|
|
250
|
+
compatibility_type?: 'gguf' | 'mlx' | null;
|
|
251
|
+
/**
|
|
252
|
+
* A human-friendly display name for the model.
|
|
253
|
+
*/
|
|
254
|
+
display_name?: string | null;
|
|
255
|
+
/**
|
|
256
|
+
* @deprecated Deprecated: Whether or not the model should use extended thinking if
|
|
257
|
+
* it is a 'reasoning' style model.
|
|
258
|
+
*/
|
|
259
|
+
enable_reasoner?: boolean;
|
|
260
|
+
/**
|
|
261
|
+
* @deprecated Deprecated: Positive values penalize new tokens based on their
|
|
262
|
+
* existing frequency in the text so far.
|
|
263
|
+
*/
|
|
264
|
+
frequency_penalty?: number | null;
|
|
265
|
+
/**
|
|
266
|
+
* The handle for this config, in the format provider/model-name.
|
|
267
|
+
*/
|
|
268
|
+
handle?: string | null;
|
|
269
|
+
/**
|
|
270
|
+
* @deprecated Deprecated: Configurable thinking budget for extended thinking.
|
|
271
|
+
*/
|
|
272
|
+
max_reasoning_tokens?: number;
|
|
273
|
+
/**
|
|
274
|
+
* @deprecated Deprecated: The maximum number of tokens to generate.
|
|
275
|
+
*/
|
|
276
|
+
max_tokens?: number | null;
|
|
277
|
+
/**
|
|
278
|
+
* @deprecated Deprecated: The endpoint for the model.
|
|
279
|
+
*/
|
|
280
|
+
model_endpoint?: string | null;
|
|
281
|
+
/**
|
|
282
|
+
* Type of model (llm or embedding)
|
|
283
|
+
*/
|
|
284
|
+
model_type?: 'llm';
|
|
285
|
+
/**
|
|
286
|
+
* @deprecated Deprecated: The wrapper for the model.
|
|
287
|
+
*/
|
|
288
|
+
model_wrapper?: string | null;
|
|
289
|
+
/**
|
|
290
|
+
* @deprecated Deprecated: If set to True, enables parallel tool calling.
|
|
291
|
+
*/
|
|
292
|
+
parallel_tool_calls?: boolean | null;
|
|
293
|
+
/**
|
|
294
|
+
* @deprecated Deprecated: The provider category for the model.
|
|
295
|
+
*/
|
|
296
|
+
provider_category?: ProviderCategory | null;
|
|
297
|
+
/**
|
|
298
|
+
* The provider name for the model.
|
|
299
|
+
*/
|
|
300
|
+
provider_name?: string | null;
|
|
301
|
+
/**
|
|
302
|
+
* @deprecated Deprecated: Puts 'inner_thoughts' as a kwarg in the function call.
|
|
303
|
+
*/
|
|
304
|
+
put_inner_thoughts_in_kwargs?: boolean | null;
|
|
305
|
+
/**
|
|
306
|
+
* @deprecated Deprecated: The reasoning effort to use when generating text
|
|
307
|
+
* reasoning models.
|
|
308
|
+
*/
|
|
309
|
+
reasoning_effort?: 'minimal' | 'low' | 'medium' | 'high' | null;
|
|
310
|
+
/**
|
|
311
|
+
* @deprecated Deprecated: The temperature to use when generating text with the
|
|
312
|
+
* model.
|
|
313
|
+
*/
|
|
314
|
+
temperature?: number;
|
|
315
|
+
/**
|
|
316
|
+
* @deprecated Deprecated: The cost tier for the model (cloud only).
|
|
317
|
+
*/
|
|
318
|
+
tier?: string | null;
|
|
319
|
+
/**
|
|
320
|
+
* @deprecated Deprecated: Soft control for how verbose model output should be.
|
|
321
|
+
*/
|
|
322
|
+
verbosity?: 'low' | 'medium' | 'high' | null;
|
|
323
|
+
}
|
|
158
324
|
export type ProviderCategory = 'base' | 'byok';
|
|
159
325
|
export type ProviderType = 'anthropic' | 'azure' | 'bedrock' | 'cerebras' | 'deepseek' | 'google_ai' | 'google_vertex' | 'groq' | 'hugging-face' | 'letta' | 'lmstudio_openai' | 'mistral' | 'ollama' | 'openai' | 'together' | 'vllm' | 'xai';
|
|
160
|
-
export type ModelListResponse = Array<
|
|
161
|
-
export declare namespace ModelListResponse {
|
|
162
|
-
interface ModelListResponseItem {
|
|
163
|
-
/**
|
|
164
|
-
* @deprecated Deprecated: Use 'max_context_window' field instead. The context
|
|
165
|
-
* window size for the model.
|
|
166
|
-
*/
|
|
167
|
-
context_window: number;
|
|
168
|
-
/**
|
|
169
|
-
* The maximum context window for the model
|
|
170
|
-
*/
|
|
171
|
-
max_context_window: number;
|
|
172
|
-
/**
|
|
173
|
-
* @deprecated Deprecated: Use 'name' field instead. LLM model name.
|
|
174
|
-
*/
|
|
175
|
-
model: string;
|
|
176
|
-
/**
|
|
177
|
-
* @deprecated Deprecated: Use 'provider_type' field instead. The endpoint type for
|
|
178
|
-
* the model.
|
|
179
|
-
*/
|
|
180
|
-
model_endpoint_type: 'openai' | 'anthropic' | 'google_ai' | 'google_vertex' | 'azure' | 'groq' | 'ollama' | 'webui' | 'webui-legacy' | 'lmstudio' | 'lmstudio-legacy' | 'lmstudio-chatcompletions' | 'llamacpp' | 'koboldcpp' | 'vllm' | 'hugging-face' | 'mistral' | 'together' | 'bedrock' | 'deepseek' | 'xai';
|
|
181
|
-
/**
|
|
182
|
-
* The actual model name used by the provider
|
|
183
|
-
*/
|
|
184
|
-
name: string;
|
|
185
|
-
/**
|
|
186
|
-
* The type of the provider
|
|
187
|
-
*/
|
|
188
|
-
provider_type: ModelsAPI.ProviderType;
|
|
189
|
-
/**
|
|
190
|
-
* @deprecated Deprecated: The framework compatibility type for the model.
|
|
191
|
-
*/
|
|
192
|
-
compatibility_type?: 'gguf' | 'mlx' | null;
|
|
193
|
-
/**
|
|
194
|
-
* A human-friendly display name for the model.
|
|
195
|
-
*/
|
|
196
|
-
display_name?: string | null;
|
|
197
|
-
/**
|
|
198
|
-
* @deprecated Deprecated: Whether or not the model should use extended thinking if
|
|
199
|
-
* it is a 'reasoning' style model.
|
|
200
|
-
*/
|
|
201
|
-
enable_reasoner?: boolean;
|
|
202
|
-
/**
|
|
203
|
-
* @deprecated Deprecated: Positive values penalize new tokens based on their
|
|
204
|
-
* existing frequency in the text so far.
|
|
205
|
-
*/
|
|
206
|
-
frequency_penalty?: number | null;
|
|
207
|
-
/**
|
|
208
|
-
* The handle for this config, in the format provider/model-name.
|
|
209
|
-
*/
|
|
210
|
-
handle?: string | null;
|
|
211
|
-
/**
|
|
212
|
-
* @deprecated Deprecated: Configurable thinking budget for extended thinking.
|
|
213
|
-
*/
|
|
214
|
-
max_reasoning_tokens?: number;
|
|
215
|
-
/**
|
|
216
|
-
* @deprecated Deprecated: The maximum number of tokens to generate.
|
|
217
|
-
*/
|
|
218
|
-
max_tokens?: number | null;
|
|
219
|
-
/**
|
|
220
|
-
* @deprecated Deprecated: The endpoint for the model.
|
|
221
|
-
*/
|
|
222
|
-
model_endpoint?: string | null;
|
|
223
|
-
/**
|
|
224
|
-
* Type of model (llm or embedding)
|
|
225
|
-
*/
|
|
226
|
-
model_type?: 'llm';
|
|
227
|
-
/**
|
|
228
|
-
* @deprecated Deprecated: The wrapper for the model.
|
|
229
|
-
*/
|
|
230
|
-
model_wrapper?: string | null;
|
|
231
|
-
/**
|
|
232
|
-
* @deprecated Deprecated: If set to True, enables parallel tool calling.
|
|
233
|
-
*/
|
|
234
|
-
parallel_tool_calls?: boolean | null;
|
|
235
|
-
/**
|
|
236
|
-
* @deprecated Deprecated: The provider category for the model.
|
|
237
|
-
*/
|
|
238
|
-
provider_category?: ModelsAPI.ProviderCategory | null;
|
|
239
|
-
/**
|
|
240
|
-
* The provider name for the model.
|
|
241
|
-
*/
|
|
242
|
-
provider_name?: string | null;
|
|
243
|
-
/**
|
|
244
|
-
* @deprecated Deprecated: Puts 'inner_thoughts' as a kwarg in the function call.
|
|
245
|
-
*/
|
|
246
|
-
put_inner_thoughts_in_kwargs?: boolean | null;
|
|
247
|
-
/**
|
|
248
|
-
* @deprecated Deprecated: The reasoning effort to use when generating text
|
|
249
|
-
* reasoning models.
|
|
250
|
-
*/
|
|
251
|
-
reasoning_effort?: 'minimal' | 'low' | 'medium' | 'high' | null;
|
|
252
|
-
/**
|
|
253
|
-
* @deprecated Deprecated: The temperature to use when generating text with the
|
|
254
|
-
* model.
|
|
255
|
-
*/
|
|
256
|
-
temperature?: number;
|
|
257
|
-
/**
|
|
258
|
-
* @deprecated Deprecated: The cost tier for the model (cloud only).
|
|
259
|
-
*/
|
|
260
|
-
tier?: string | null;
|
|
261
|
-
/**
|
|
262
|
-
* @deprecated Deprecated: Soft control for how verbose model output should be.
|
|
263
|
-
*/
|
|
264
|
-
verbosity?: 'low' | 'medium' | 'high' | null;
|
|
265
|
-
}
|
|
266
|
-
}
|
|
326
|
+
export type ModelListResponse = Array<Model>;
|
|
267
327
|
export interface ModelListParams {
|
|
268
328
|
provider_category?: Array<ProviderCategory> | null;
|
|
269
329
|
provider_name?: string | null;
|
|
270
330
|
provider_type?: ProviderType | null;
|
|
271
331
|
}
|
|
272
332
|
export declare namespace Models {
|
|
273
|
-
export { type EmbeddingConfig as EmbeddingConfig, type LlmConfig as LlmConfig, type ProviderCategory as ProviderCategory, type ProviderType as ProviderType, type ModelListResponse as ModelListResponse, type ModelListParams as ModelListParams, };
|
|
333
|
+
export { type EmbeddingConfig as EmbeddingConfig, type EmbeddingModel as EmbeddingModel, type LlmConfig as LlmConfig, type Model as Model, type ProviderCategory as ProviderCategory, type ProviderType as ProviderType, type ModelListResponse as ModelListResponse, type ModelListParams as ModelListParams, };
|
|
274
334
|
export { Embeddings as Embeddings, type EmbeddingListResponse as EmbeddingListResponse };
|
|
275
335
|
}
|
|
276
336
|
//# sourceMappingURL=models.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"models.d.ts","sourceRoot":"","sources":["../../src/resources/models/models.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,
|
|
1
|
+
{"version":3,"file":"models.d.ts","sourceRoot":"","sources":["../../src/resources/models/models.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,aAAa;OAClB,EAAE,qBAAqB,EAAE,UAAU,EAAE;OACrC,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB,qBAAa,MAAO,SAAQ,WAAW;IACrC,UAAU,EAAE,aAAa,CAAC,UAAU,CAA8C;IAElF;;;;;;;OAOG;IACH,IAAI,CACF,KAAK,GAAE,eAAe,GAAG,IAAI,GAAG,SAAc,EAC9C,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,iBAAiB,CAAC;CAGjC;AAED;;GAEG;AACH,MAAM,WAAW,eAAe;IAC9B;;OAEG;IACH,aAAa,EAAE,MAAM,CAAC;IAEtB;;OAEG;IACH,uBAAuB,EACnB,QAAQ,GACR,WAAW,GACX,SAAS,GACT,WAAW,GACX,eAAe,GACf,OAAO,GACP,MAAM,GACN,QAAQ,GACR,OAAO,GACP,cAAc,GACd,UAAU,GACV,iBAAiB,GACjB,UAAU,GACV,WAAW,GACX,MAAM,GACN,cAAc,GACd,SAAS,GACT,UAAU,GACV,UAAU,CAAC;IAEf;;OAEG;IACH,eAAe,EAAE,MAAM,CAAC;IAExB;;OAEG;IACH,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;AAE7C,MAAM,WAAW,eAAe;IAC9B,iBAAiB,CAAC,EAAE,KAAK,CAAC,gBAAgB,CAAC,GAAG,IAAI,CAAC;IAEnD,aAAa,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAE9B,aAAa,CAAC,EAAE,YAAY,GAAG,IAAI,CAAC;CACrC;AAID,MAAM,CAAC,OAAO,WAAW,MAAM,CAAC;IAC9B,OAAO,EACL,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,cAAc,IAAI,cAAc,EACrC,KAAK,SAAS,IAAI,SAAS,EAC3B,KAAK,KAAK,IAAI,KAAK,EACnB,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,YAAY,IAAI,YAAY,EACjC,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,eAAe,IAAI,eAAe,GACxC,CAAC;IAEF,OAAO,EAAE,UAAU,IAAI,UAAU,EAAE,KAAK,qBAAqB,IAAI,qBAAqB,EAAE,CAAC;CAC1F"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"models.js","sourceRoot":"","sources":["../../src/resources/models/models.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,qDAAkD;
|
|
1
|
+
{"version":3,"file":"models.js","sourceRoot":"","sources":["../../src/resources/models/models.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,qDAAkD;AAClD,uEAA8C;AAC9C,gDAAiE;AAIjE,MAAa,MAAO,SAAQ,sBAAW;IAAvC;;QACE,eAAU,GAA6B,IAAI,aAAa,CAAC,UAAU,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAgBpF,CAAC;IAdC;;;;;;;OAOG;IACH,IAAI,CACF,QAA4C,EAAE,EAC9C,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,aAAa,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAChE,CAAC;CACF;AAjBD,wBAiBC;AAweD,MAAM,CAAC,UAAU,GAAG,uBAAU,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"models.mjs","sourceRoot":"","sources":["../../src/resources/models/models.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;
|
|
1
|
+
{"version":3,"file":"models.mjs","sourceRoot":"","sources":["../../src/resources/models/models.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OACf,KAAK,aAAa;OAClB,EAAyB,UAAU,EAAE;AAI5C,MAAM,OAAO,MAAO,SAAQ,WAAW;IAAvC;;QACE,eAAU,GAA6B,IAAI,aAAa,CAAC,UAAU,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAgBpF,CAAC;IAdC;;;;;;;OAOG;IACH,IAAI,CACF,QAA4C,EAAE,EAC9C,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,aAAa,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAChE,CAAC;CACF;AAweD,MAAM,CAAC,UAAU,GAAG,UAAU,CAAC"}
|