telnyx 7.6.0 → 7.8.0
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 +16 -0
- package/client.d.mts +7 -4
- package/client.d.mts.map +1 -1
- package/client.d.ts +7 -4
- package/client.d.ts.map +1 -1
- package/client.js +3 -0
- package/client.js.map +1 -1
- package/client.mjs +3 -0
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/ai/ai.d.mts +3 -36
- package/resources/ai/ai.d.mts.map +1 -1
- package/resources/ai/ai.d.ts +3 -36
- package/resources/ai/ai.d.ts.map +1 -1
- package/resources/ai/ai.js +0 -30
- package/resources/ai/ai.js.map +1 -1
- package/resources/ai/ai.mjs +1 -31
- package/resources/ai/ai.mjs.map +1 -1
- package/resources/ai/assistants/assistants.d.mts +46 -2
- package/resources/ai/assistants/assistants.d.mts.map +1 -1
- package/resources/ai/assistants/assistants.d.ts +46 -2
- package/resources/ai/assistants/assistants.d.ts.map +1 -1
- package/resources/ai/assistants/assistants.js.map +1 -1
- package/resources/ai/assistants/assistants.mjs.map +1 -1
- package/resources/ai/chat.d.mts +1 -188
- package/resources/ai/chat.d.mts.map +1 -1
- package/resources/ai/chat.d.ts +1 -188
- package/resources/ai/chat.d.ts.map +1 -1
- package/resources/ai/chat.js +0 -14
- package/resources/ai/chat.js.map +1 -1
- package/resources/ai/chat.mjs +0 -14
- package/resources/ai/chat.mjs.map +1 -1
- package/resources/ai/index.d.mts +2 -2
- package/resources/ai/index.d.mts.map +1 -1
- package/resources/ai/index.d.ts +2 -2
- package/resources/ai/index.d.ts.map +1 -1
- package/resources/ai/index.js.map +1 -1
- package/resources/ai/index.mjs +1 -1
- package/resources/ai/index.mjs.map +1 -1
- package/resources/ai/tools.d.mts +6 -0
- package/resources/ai/tools.d.mts.map +1 -1
- package/resources/ai/tools.d.ts +6 -0
- package/resources/ai/tools.d.ts.map +1 -1
- package/resources/calls/actions.d.mts +26 -2
- package/resources/calls/actions.d.mts.map +1 -1
- package/resources/calls/actions.d.ts +26 -2
- package/resources/calls/actions.d.ts.map +1 -1
- package/resources/calls/calls.d.mts +3 -0
- package/resources/calls/calls.d.mts.map +1 -1
- package/resources/calls/calls.d.ts +3 -0
- package/resources/calls/calls.d.ts.map +1 -1
- package/resources/calls/calls.js.map +1 -1
- package/resources/calls/calls.mjs.map +1 -1
- package/resources/conferences/actions.d.mts +6 -0
- package/resources/conferences/actions.d.mts.map +1 -1
- package/resources/conferences/actions.d.ts +6 -0
- package/resources/conferences/actions.d.ts.map +1 -1
- package/resources/index.d.mts +2 -2
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +2 -2
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs.map +1 -1
- package/resources/messages/index.d.mts +1 -1
- package/resources/messages/index.d.mts.map +1 -1
- package/resources/messages/index.d.ts +1 -1
- package/resources/messages/index.d.ts.map +1 -1
- package/resources/messages/index.js.map +1 -1
- package/resources/messages/index.mjs.map +1 -1
- package/resources/messages/messages.d.mts +4 -82
- package/resources/messages/messages.d.mts.map +1 -1
- package/resources/messages/messages.d.ts +4 -82
- package/resources/messages/messages.d.ts.map +1 -1
- package/resources/messages/messages.js +3 -15
- package/resources/messages/messages.js.map +1 -1
- package/resources/messages/messages.mjs +3 -15
- package/resources/messages/messages.mjs.map +1 -1
- package/resources/phone-numbers/phone-numbers.d.mts +21 -0
- package/resources/phone-numbers/phone-numbers.d.mts.map +1 -1
- package/resources/phone-numbers/phone-numbers.d.ts +21 -0
- package/resources/phone-numbers/phone-numbers.d.ts.map +1 -1
- package/resources/phone-numbers/phone-numbers.js.map +1 -1
- package/resources/phone-numbers/phone-numbers.mjs.map +1 -1
- package/resources/speech-to-text/speech-to-text.d.mts +4 -4
- package/resources/speech-to-text/speech-to-text.d.mts.map +1 -1
- package/resources/speech-to-text/speech-to-text.d.ts +4 -4
- package/resources/speech-to-text/speech-to-text.d.ts.map +1 -1
- package/resources/speech-to-text/speech-to-text.js +1 -1
- package/resources/speech-to-text/speech-to-text.mjs +1 -1
- package/resources/text-to-speech/text-to-speech.d.mts +16 -11
- package/resources/text-to-speech/text-to-speech.d.mts.map +1 -1
- package/resources/text-to-speech/text-to-speech.d.ts +16 -11
- package/resources/text-to-speech/text-to-speech.d.ts.map +1 -1
- package/src/client.ts +3 -8
- package/src/resources/ai/ai.ts +2 -57
- package/src/resources/ai/assistants/assistants.ts +52 -0
- package/src/resources/ai/chat.ts +2 -234
- package/src/resources/ai/index.ts +1 -9
- package/src/resources/ai/tools.ts +4 -0
- package/src/resources/calls/actions.ts +26 -1
- package/src/resources/calls/calls.ts +3 -0
- package/src/resources/conferences/actions.ts +6 -0
- package/src/resources/index.ts +0 -4
- package/src/resources/messages/index.ts +0 -2
- package/src/resources/messages/messages.ts +3 -112
- package/src/resources/phone-numbers/phone-numbers.ts +24 -0
- package/src/resources/speech-to-text/speech-to-text.ts +13 -3
- package/src/resources/text-to-speech/text-to-speech.ts +16 -11
- 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
package/resources/ai/chat.d.mts
CHANGED
|
@@ -1,20 +1,6 @@
|
|
|
1
1
|
import { APIResource } from "../../core/resource.mjs";
|
|
2
2
|
import * as ChatAPI from "./chat.mjs";
|
|
3
|
-
import { APIPromise } from "../../core/api-promise.mjs";
|
|
4
|
-
import { RequestOptions } from "../../internal/request-options.mjs";
|
|
5
|
-
/**
|
|
6
|
-
* Generate text with LLMs
|
|
7
|
-
*/
|
|
8
3
|
export declare class Chat extends APIResource {
|
|
9
|
-
/**
|
|
10
|
-
* **Deprecated**: Use `POST /v2/ai/openai/chat/completions` instead. Chat with a
|
|
11
|
-
* language model. This endpoint is consistent with the
|
|
12
|
-
* [OpenAI Chat Completions API](https://platform.openai.com/docs/api-reference/chat)
|
|
13
|
-
* and may be used with the OpenAI JS or Python SDK.
|
|
14
|
-
*
|
|
15
|
-
* @deprecated
|
|
16
|
-
*/
|
|
17
|
-
createCompletion(body: ChatCreateCompletionParams, options?: RequestOptions): APIPromise<ChatCreateCompletionResponse>;
|
|
18
4
|
}
|
|
19
5
|
export interface BucketIDs {
|
|
20
6
|
/**
|
|
@@ -198,180 +184,7 @@ export declare namespace ChatCompletionRequest {
|
|
|
198
184
|
type: 'retrieval';
|
|
199
185
|
}
|
|
200
186
|
}
|
|
201
|
-
export type ChatCreateCompletionResponse = {
|
|
202
|
-
[key: string]: unknown;
|
|
203
|
-
};
|
|
204
|
-
export interface ChatCreateCompletionParams {
|
|
205
|
-
/**
|
|
206
|
-
* A list of the previous chat messages for context.
|
|
207
|
-
*/
|
|
208
|
-
messages: Array<ChatCreateCompletionParams.Message>;
|
|
209
|
-
/**
|
|
210
|
-
* If you are using an external inference provider like xAI or OpenAI, this field
|
|
211
|
-
* allows you to pass along a reference to your API key. After creating an
|
|
212
|
-
* [integration secret](https://developers.telnyx.com/api-reference/integration-secrets/create-a-secret)
|
|
213
|
-
* for you API key, pass the secret's `identifier` in this field.
|
|
214
|
-
*/
|
|
215
|
-
api_key_ref?: string;
|
|
216
|
-
/**
|
|
217
|
-
* This is used with `use_beam_search` to determine how many candidate beams to
|
|
218
|
-
* explore.
|
|
219
|
-
*/
|
|
220
|
-
best_of?: number;
|
|
221
|
-
/**
|
|
222
|
-
* This is used with `use_beam_search`. If `true`, generation stops as soon as
|
|
223
|
-
* there are `best_of` complete candidates; if `false`, a heuristic is applied and
|
|
224
|
-
* the generation stops when is it very unlikely to find better candidates.
|
|
225
|
-
*/
|
|
226
|
-
early_stopping?: boolean;
|
|
227
|
-
/**
|
|
228
|
-
* Whether to enable the thinking/reasoning phase for models that support it (e.g.,
|
|
229
|
-
* QwQ, Qwen3). When set to false, the model will skip the internal reasoning step
|
|
230
|
-
* and respond directly, which can reduce latency. Defaults to true.
|
|
231
|
-
*/
|
|
232
|
-
enable_thinking?: boolean;
|
|
233
|
-
/**
|
|
234
|
-
* Higher values will penalize the model from repeating the same output tokens.
|
|
235
|
-
*/
|
|
236
|
-
frequency_penalty?: number;
|
|
237
|
-
/**
|
|
238
|
-
* If specified, the output will be exactly one of the choices.
|
|
239
|
-
*/
|
|
240
|
-
guided_choice?: Array<string>;
|
|
241
|
-
/**
|
|
242
|
-
* Must be a valid JSON schema. If specified, the output will follow the JSON
|
|
243
|
-
* schema.
|
|
244
|
-
*/
|
|
245
|
-
guided_json?: {
|
|
246
|
-
[key: string]: unknown;
|
|
247
|
-
};
|
|
248
|
-
/**
|
|
249
|
-
* If specified, the output will follow the regex pattern.
|
|
250
|
-
*/
|
|
251
|
-
guided_regex?: string;
|
|
252
|
-
/**
|
|
253
|
-
* This is used with `use_beam_search` to prefer shorter or longer completions.
|
|
254
|
-
*/
|
|
255
|
-
length_penalty?: number;
|
|
256
|
-
/**
|
|
257
|
-
* Whether to return log probabilities of the output tokens or not. If true,
|
|
258
|
-
* returns the log probabilities of each output token returned in the `content` of
|
|
259
|
-
* `message`.
|
|
260
|
-
*/
|
|
261
|
-
logprobs?: boolean;
|
|
262
|
-
/**
|
|
263
|
-
* Maximum number of completion tokens the model should generate.
|
|
264
|
-
*/
|
|
265
|
-
max_tokens?: number;
|
|
266
|
-
/**
|
|
267
|
-
* This is an alternative to `top_p` that
|
|
268
|
-
* [many prefer](https://github.com/huggingface/transformers/issues/27670). Must be
|
|
269
|
-
* in [0, 1].
|
|
270
|
-
*/
|
|
271
|
-
min_p?: number;
|
|
272
|
-
/**
|
|
273
|
-
* The language model to chat with.
|
|
274
|
-
*/
|
|
275
|
-
model?: string;
|
|
276
|
-
/**
|
|
277
|
-
* This will return multiple choices for you instead of a single chat completion.
|
|
278
|
-
*/
|
|
279
|
-
n?: number;
|
|
280
|
-
/**
|
|
281
|
-
* Higher values will penalize the model from repeating the same output tokens.
|
|
282
|
-
*/
|
|
283
|
-
presence_penalty?: number;
|
|
284
|
-
/**
|
|
285
|
-
* Use this is you want to guarantee a JSON output without defining a schema. For
|
|
286
|
-
* control over the schema, use `guided_json`.
|
|
287
|
-
*/
|
|
288
|
-
response_format?: ChatCreateCompletionParams.ResponseFormat;
|
|
289
|
-
/**
|
|
290
|
-
* If specified, the system will make a best effort to sample deterministically,
|
|
291
|
-
* such that repeated requests with the same `seed` and parameters should return
|
|
292
|
-
* the same result.
|
|
293
|
-
*/
|
|
294
|
-
seed?: number;
|
|
295
|
-
/**
|
|
296
|
-
* Up to 4 sequences where the API will stop generating further tokens. The
|
|
297
|
-
* returned text will not contain the stop sequence.
|
|
298
|
-
*/
|
|
299
|
-
stop?: string | Array<string>;
|
|
300
|
-
/**
|
|
301
|
-
* Whether or not to stream data-only server-sent events as they become available.
|
|
302
|
-
*/
|
|
303
|
-
stream?: boolean;
|
|
304
|
-
/**
|
|
305
|
-
* Adjusts the "creativity" of the model. Lower values make the model more
|
|
306
|
-
* deterministic and repetitive, while higher values make the model more random and
|
|
307
|
-
* creative.
|
|
308
|
-
*/
|
|
309
|
-
temperature?: number;
|
|
310
|
-
tool_choice?: 'none' | 'auto' | 'required';
|
|
311
|
-
/**
|
|
312
|
-
* The `function` tool type follows the same schema as the
|
|
313
|
-
* [OpenAI Chat Completions API](https://platform.openai.com/docs/api-reference/chat).
|
|
314
|
-
* The `retrieval` tool type is unique to Telnyx. You may pass a list of
|
|
315
|
-
* [embedded storage buckets](https://developers.telnyx.com/api-reference/embeddings/embed-documents)
|
|
316
|
-
* for retrieval-augmented generation.
|
|
317
|
-
*/
|
|
318
|
-
tools?: Array<ChatCreateCompletionParams.Function | ChatCreateCompletionParams.Retrieval>;
|
|
319
|
-
/**
|
|
320
|
-
* This is used with `logprobs`. An integer between 0 and 20 specifying the number
|
|
321
|
-
* of most likely tokens to return at each token position, each with an associated
|
|
322
|
-
* log probability.
|
|
323
|
-
*/
|
|
324
|
-
top_logprobs?: number;
|
|
325
|
-
/**
|
|
326
|
-
* An alternative or complement to `temperature`. This adjusts how many of the top
|
|
327
|
-
* possibilities to consider.
|
|
328
|
-
*/
|
|
329
|
-
top_p?: number;
|
|
330
|
-
/**
|
|
331
|
-
* Setting this to `true` will allow the model to
|
|
332
|
-
* [explore more completion options](https://huggingface.co/blog/how-to-generate#beam-search).
|
|
333
|
-
* This is not supported by OpenAI.
|
|
334
|
-
*/
|
|
335
|
-
use_beam_search?: boolean;
|
|
336
|
-
}
|
|
337
|
-
export declare namespace ChatCreateCompletionParams {
|
|
338
|
-
interface Message {
|
|
339
|
-
content: string | Array<Message.TextAndImageArray>;
|
|
340
|
-
role: 'system' | 'user' | 'assistant' | 'tool';
|
|
341
|
-
}
|
|
342
|
-
namespace Message {
|
|
343
|
-
interface TextAndImageArray {
|
|
344
|
-
type: 'text' | 'image_url';
|
|
345
|
-
image_url?: string;
|
|
346
|
-
text?: string;
|
|
347
|
-
}
|
|
348
|
-
}
|
|
349
|
-
/**
|
|
350
|
-
* Use this is you want to guarantee a JSON output without defining a schema. For
|
|
351
|
-
* control over the schema, use `guided_json`.
|
|
352
|
-
*/
|
|
353
|
-
interface ResponseFormat {
|
|
354
|
-
type: 'text' | 'json_object';
|
|
355
|
-
}
|
|
356
|
-
interface Function {
|
|
357
|
-
function: Function.Function;
|
|
358
|
-
type: 'function';
|
|
359
|
-
}
|
|
360
|
-
namespace Function {
|
|
361
|
-
interface Function {
|
|
362
|
-
name: string;
|
|
363
|
-
description?: string;
|
|
364
|
-
parameters?: {
|
|
365
|
-
[key: string]: unknown;
|
|
366
|
-
};
|
|
367
|
-
}
|
|
368
|
-
}
|
|
369
|
-
interface Retrieval {
|
|
370
|
-
retrieval: ChatAPI.BucketIDs;
|
|
371
|
-
type: 'retrieval';
|
|
372
|
-
}
|
|
373
|
-
}
|
|
374
187
|
export declare namespace Chat {
|
|
375
|
-
export { type BucketIDs as BucketIDs, type ChatCompletionRequest as ChatCompletionRequest
|
|
188
|
+
export { type BucketIDs as BucketIDs, type ChatCompletionRequest as ChatCompletionRequest };
|
|
376
189
|
}
|
|
377
190
|
//# sourceMappingURL=chat.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chat.d.mts","sourceRoot":"","sources":["../../src/resources/ai/chat.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,KAAK,OAAO,mBAAe;
|
|
1
|
+
{"version":3,"file":"chat.d.mts","sourceRoot":"","sources":["../../src/resources/ai/chat.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,KAAK,OAAO,mBAAe;AAElC,qBAAa,IAAK,SAAQ,WAAW;CAAG;AAExC,MAAM,WAAW,SAAS;IACxB;;;;OAIG;IACH,UAAU,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAE1B;;OAEG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B;AAED,MAAM,WAAW,qBAAqB;IACpC;;OAEG;IACH,QAAQ,EAAE,KAAK,CAAC,qBAAqB,CAAC,OAAO,CAAC,CAAC;IAE/C;;;;;OAKG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB;;;;OAIG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC;IAEzB;;;;OAIG;IACH,eAAe,CAAC,EAAE,OAAO,CAAC;IAE1B;;OAEG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAE3B;;OAEG;IACH,aAAa,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAE9B;;;OAGG;IACH,WAAW,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;KAAE,CAAC;IAEzC;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IAExB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CA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;QAC7B,IAAI,EAAE,MAAM,GAAG,aAAa,CAAC;KAC9B;IAED,UAAiB,QAAQ;QACvB,QAAQ,EAAE,QAAQ,CAAC,QAAQ,CAAC;QAE5B,IAAI,EAAE,UAAU,CAAC;KAClB;IAED,UAAiB,QAAQ,CAAC;QACxB,UAAiB,QAAQ;YACvB,IAAI,EAAE,MAAM,CAAC;YAEb,WAAW,CAAC,EAAE,MAAM,CAAC;YAErB,UAAU,CAAC,EAAE;gBAAE,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;aAAE,CAAC;SACzC;KACF;IAED,UAAiB,SAAS;QACxB,SAAS,EAAE,OAAO,CAAC,SAAS,CAAC;QAE7B,IAAI,EAAE,WAAW,CAAC;KACnB;CACF;AAED,MAAM,CAAC,OAAO,WAAW,IAAI,CAAC;IAC5B,OAAO,EAAE,KAAK,SAAS,IAAI,SAAS,EAAE,KAAK,qBAAqB,IAAI,qBAAqB,EAAE,CAAC;CAC7F"}
|
package/resources/ai/chat.d.ts
CHANGED
|
@@ -1,20 +1,6 @@
|
|
|
1
1
|
import { APIResource } from "../../core/resource.js";
|
|
2
2
|
import * as ChatAPI from "./chat.js";
|
|
3
|
-
import { APIPromise } from "../../core/api-promise.js";
|
|
4
|
-
import { RequestOptions } from "../../internal/request-options.js";
|
|
5
|
-
/**
|
|
6
|
-
* Generate text with LLMs
|
|
7
|
-
*/
|
|
8
3
|
export declare class Chat extends APIResource {
|
|
9
|
-
/**
|
|
10
|
-
* **Deprecated**: Use `POST /v2/ai/openai/chat/completions` instead. Chat with a
|
|
11
|
-
* language model. This endpoint is consistent with the
|
|
12
|
-
* [OpenAI Chat Completions API](https://platform.openai.com/docs/api-reference/chat)
|
|
13
|
-
* and may be used with the OpenAI JS or Python SDK.
|
|
14
|
-
*
|
|
15
|
-
* @deprecated
|
|
16
|
-
*/
|
|
17
|
-
createCompletion(body: ChatCreateCompletionParams, options?: RequestOptions): APIPromise<ChatCreateCompletionResponse>;
|
|
18
4
|
}
|
|
19
5
|
export interface BucketIDs {
|
|
20
6
|
/**
|
|
@@ -198,180 +184,7 @@ export declare namespace ChatCompletionRequest {
|
|
|
198
184
|
type: 'retrieval';
|
|
199
185
|
}
|
|
200
186
|
}
|
|
201
|
-
export type ChatCreateCompletionResponse = {
|
|
202
|
-
[key: string]: unknown;
|
|
203
|
-
};
|
|
204
|
-
export interface ChatCreateCompletionParams {
|
|
205
|
-
/**
|
|
206
|
-
* A list of the previous chat messages for context.
|
|
207
|
-
*/
|
|
208
|
-
messages: Array<ChatCreateCompletionParams.Message>;
|
|
209
|
-
/**
|
|
210
|
-
* If you are using an external inference provider like xAI or OpenAI, this field
|
|
211
|
-
* allows you to pass along a reference to your API key. After creating an
|
|
212
|
-
* [integration secret](https://developers.telnyx.com/api-reference/integration-secrets/create-a-secret)
|
|
213
|
-
* for you API key, pass the secret's `identifier` in this field.
|
|
214
|
-
*/
|
|
215
|
-
api_key_ref?: string;
|
|
216
|
-
/**
|
|
217
|
-
* This is used with `use_beam_search` to determine how many candidate beams to
|
|
218
|
-
* explore.
|
|
219
|
-
*/
|
|
220
|
-
best_of?: number;
|
|
221
|
-
/**
|
|
222
|
-
* This is used with `use_beam_search`. If `true`, generation stops as soon as
|
|
223
|
-
* there are `best_of` complete candidates; if `false`, a heuristic is applied and
|
|
224
|
-
* the generation stops when is it very unlikely to find better candidates.
|
|
225
|
-
*/
|
|
226
|
-
early_stopping?: boolean;
|
|
227
|
-
/**
|
|
228
|
-
* Whether to enable the thinking/reasoning phase for models that support it (e.g.,
|
|
229
|
-
* QwQ, Qwen3). When set to false, the model will skip the internal reasoning step
|
|
230
|
-
* and respond directly, which can reduce latency. Defaults to true.
|
|
231
|
-
*/
|
|
232
|
-
enable_thinking?: boolean;
|
|
233
|
-
/**
|
|
234
|
-
* Higher values will penalize the model from repeating the same output tokens.
|
|
235
|
-
*/
|
|
236
|
-
frequency_penalty?: number;
|
|
237
|
-
/**
|
|
238
|
-
* If specified, the output will be exactly one of the choices.
|
|
239
|
-
*/
|
|
240
|
-
guided_choice?: Array<string>;
|
|
241
|
-
/**
|
|
242
|
-
* Must be a valid JSON schema. If specified, the output will follow the JSON
|
|
243
|
-
* schema.
|
|
244
|
-
*/
|
|
245
|
-
guided_json?: {
|
|
246
|
-
[key: string]: unknown;
|
|
247
|
-
};
|
|
248
|
-
/**
|
|
249
|
-
* If specified, the output will follow the regex pattern.
|
|
250
|
-
*/
|
|
251
|
-
guided_regex?: string;
|
|
252
|
-
/**
|
|
253
|
-
* This is used with `use_beam_search` to prefer shorter or longer completions.
|
|
254
|
-
*/
|
|
255
|
-
length_penalty?: number;
|
|
256
|
-
/**
|
|
257
|
-
* Whether to return log probabilities of the output tokens or not. If true,
|
|
258
|
-
* returns the log probabilities of each output token returned in the `content` of
|
|
259
|
-
* `message`.
|
|
260
|
-
*/
|
|
261
|
-
logprobs?: boolean;
|
|
262
|
-
/**
|
|
263
|
-
* Maximum number of completion tokens the model should generate.
|
|
264
|
-
*/
|
|
265
|
-
max_tokens?: number;
|
|
266
|
-
/**
|
|
267
|
-
* This is an alternative to `top_p` that
|
|
268
|
-
* [many prefer](https://github.com/huggingface/transformers/issues/27670). Must be
|
|
269
|
-
* in [0, 1].
|
|
270
|
-
*/
|
|
271
|
-
min_p?: number;
|
|
272
|
-
/**
|
|
273
|
-
* The language model to chat with.
|
|
274
|
-
*/
|
|
275
|
-
model?: string;
|
|
276
|
-
/**
|
|
277
|
-
* This will return multiple choices for you instead of a single chat completion.
|
|
278
|
-
*/
|
|
279
|
-
n?: number;
|
|
280
|
-
/**
|
|
281
|
-
* Higher values will penalize the model from repeating the same output tokens.
|
|
282
|
-
*/
|
|
283
|
-
presence_penalty?: number;
|
|
284
|
-
/**
|
|
285
|
-
* Use this is you want to guarantee a JSON output without defining a schema. For
|
|
286
|
-
* control over the schema, use `guided_json`.
|
|
287
|
-
*/
|
|
288
|
-
response_format?: ChatCreateCompletionParams.ResponseFormat;
|
|
289
|
-
/**
|
|
290
|
-
* If specified, the system will make a best effort to sample deterministically,
|
|
291
|
-
* such that repeated requests with the same `seed` and parameters should return
|
|
292
|
-
* the same result.
|
|
293
|
-
*/
|
|
294
|
-
seed?: number;
|
|
295
|
-
/**
|
|
296
|
-
* Up to 4 sequences where the API will stop generating further tokens. The
|
|
297
|
-
* returned text will not contain the stop sequence.
|
|
298
|
-
*/
|
|
299
|
-
stop?: string | Array<string>;
|
|
300
|
-
/**
|
|
301
|
-
* Whether or not to stream data-only server-sent events as they become available.
|
|
302
|
-
*/
|
|
303
|
-
stream?: boolean;
|
|
304
|
-
/**
|
|
305
|
-
* Adjusts the "creativity" of the model. Lower values make the model more
|
|
306
|
-
* deterministic and repetitive, while higher values make the model more random and
|
|
307
|
-
* creative.
|
|
308
|
-
*/
|
|
309
|
-
temperature?: number;
|
|
310
|
-
tool_choice?: 'none' | 'auto' | 'required';
|
|
311
|
-
/**
|
|
312
|
-
* The `function` tool type follows the same schema as the
|
|
313
|
-
* [OpenAI Chat Completions API](https://platform.openai.com/docs/api-reference/chat).
|
|
314
|
-
* The `retrieval` tool type is unique to Telnyx. You may pass a list of
|
|
315
|
-
* [embedded storage buckets](https://developers.telnyx.com/api-reference/embeddings/embed-documents)
|
|
316
|
-
* for retrieval-augmented generation.
|
|
317
|
-
*/
|
|
318
|
-
tools?: Array<ChatCreateCompletionParams.Function | ChatCreateCompletionParams.Retrieval>;
|
|
319
|
-
/**
|
|
320
|
-
* This is used with `logprobs`. An integer between 0 and 20 specifying the number
|
|
321
|
-
* of most likely tokens to return at each token position, each with an associated
|
|
322
|
-
* log probability.
|
|
323
|
-
*/
|
|
324
|
-
top_logprobs?: number;
|
|
325
|
-
/**
|
|
326
|
-
* An alternative or complement to `temperature`. This adjusts how many of the top
|
|
327
|
-
* possibilities to consider.
|
|
328
|
-
*/
|
|
329
|
-
top_p?: number;
|
|
330
|
-
/**
|
|
331
|
-
* Setting this to `true` will allow the model to
|
|
332
|
-
* [explore more completion options](https://huggingface.co/blog/how-to-generate#beam-search).
|
|
333
|
-
* This is not supported by OpenAI.
|
|
334
|
-
*/
|
|
335
|
-
use_beam_search?: boolean;
|
|
336
|
-
}
|
|
337
|
-
export declare namespace ChatCreateCompletionParams {
|
|
338
|
-
interface Message {
|
|
339
|
-
content: string | Array<Message.TextAndImageArray>;
|
|
340
|
-
role: 'system' | 'user' | 'assistant' | 'tool';
|
|
341
|
-
}
|
|
342
|
-
namespace Message {
|
|
343
|
-
interface TextAndImageArray {
|
|
344
|
-
type: 'text' | 'image_url';
|
|
345
|
-
image_url?: string;
|
|
346
|
-
text?: string;
|
|
347
|
-
}
|
|
348
|
-
}
|
|
349
|
-
/**
|
|
350
|
-
* Use this is you want to guarantee a JSON output without defining a schema. For
|
|
351
|
-
* control over the schema, use `guided_json`.
|
|
352
|
-
*/
|
|
353
|
-
interface ResponseFormat {
|
|
354
|
-
type: 'text' | 'json_object';
|
|
355
|
-
}
|
|
356
|
-
interface Function {
|
|
357
|
-
function: Function.Function;
|
|
358
|
-
type: 'function';
|
|
359
|
-
}
|
|
360
|
-
namespace Function {
|
|
361
|
-
interface Function {
|
|
362
|
-
name: string;
|
|
363
|
-
description?: string;
|
|
364
|
-
parameters?: {
|
|
365
|
-
[key: string]: unknown;
|
|
366
|
-
};
|
|
367
|
-
}
|
|
368
|
-
}
|
|
369
|
-
interface Retrieval {
|
|
370
|
-
retrieval: ChatAPI.BucketIDs;
|
|
371
|
-
type: 'retrieval';
|
|
372
|
-
}
|
|
373
|
-
}
|
|
374
187
|
export declare namespace Chat {
|
|
375
|
-
export { type BucketIDs as BucketIDs, type ChatCompletionRequest as ChatCompletionRequest
|
|
188
|
+
export { type BucketIDs as BucketIDs, type ChatCompletionRequest as ChatCompletionRequest };
|
|
376
189
|
}
|
|
377
190
|
//# sourceMappingURL=chat.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chat.d.ts","sourceRoot":"","sources":["../../src/resources/ai/chat.ts"],"names":[],"mappings":"AAEA,OAAO,EAA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B,IAAI,EAAE,UAAU,CAAC;KAClB;IAED,UAAiB,QAAQ,CAAC;QACxB,UAAiB,QAAQ;YACvB,IAAI,EAAE,MAAM,CAAC;YAEb,WAAW,CAAC,EAAE,MAAM,CAAC;YAErB,UAAU,CAAC,EAAE;gBAAE,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;aAAE,CAAC;SACzC;KACF;IAED,UAAiB,SAAS;QACxB,SAAS,EAAE,OAAO,CAAC,SAAS,CAAC;QAE7B,IAAI,EAAE,WAAW,CAAC;KACnB;CACF;AAED,MAAM,CAAC,OAAO,WAAW,IAAI,CAAC;IAC5B,OAAO,EAAE,KAAK,SAAS,IAAI,SAAS,EAAE,KAAK,qBAAqB,IAAI,qBAAqB,EAAE,CAAC;CAC7F"}
|
package/resources/ai/chat.js
CHANGED
|
@@ -3,21 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
exports.Chat = void 0;
|
|
5
5
|
const resource_1 = require("../../core/resource.js");
|
|
6
|
-
/**
|
|
7
|
-
* Generate text with LLMs
|
|
8
|
-
*/
|
|
9
6
|
class Chat extends resource_1.APIResource {
|
|
10
|
-
/**
|
|
11
|
-
* **Deprecated**: Use `POST /v2/ai/openai/chat/completions` instead. Chat with a
|
|
12
|
-
* language model. This endpoint is consistent with the
|
|
13
|
-
* [OpenAI Chat Completions API](https://platform.openai.com/docs/api-reference/chat)
|
|
14
|
-
* and may be used with the OpenAI JS or Python SDK.
|
|
15
|
-
*
|
|
16
|
-
* @deprecated
|
|
17
|
-
*/
|
|
18
|
-
createCompletion(body, options) {
|
|
19
|
-
return this._client.post('/ai/chat/completions', { body, ...options });
|
|
20
|
-
}
|
|
21
7
|
}
|
|
22
8
|
exports.Chat = Chat;
|
|
23
9
|
//# sourceMappingURL=chat.js.map
|
package/resources/ai/chat.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chat.js","sourceRoot":"","sources":["../../src/resources/ai/chat.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;
|
|
1
|
+
{"version":3,"file":"chat.js","sourceRoot":"","sources":["../../src/resources/ai/chat.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAGlD,MAAa,IAAK,SAAQ,sBAAW;CAAG;AAAxC,oBAAwC"}
|
package/resources/ai/chat.mjs
CHANGED
|
@@ -1,19 +1,5 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
import { APIResource } from "../../core/resource.mjs";
|
|
3
|
-
/**
|
|
4
|
-
* Generate text with LLMs
|
|
5
|
-
*/
|
|
6
3
|
export class Chat extends APIResource {
|
|
7
|
-
/**
|
|
8
|
-
* **Deprecated**: Use `POST /v2/ai/openai/chat/completions` instead. Chat with a
|
|
9
|
-
* language model. This endpoint is consistent with the
|
|
10
|
-
* [OpenAI Chat Completions API](https://platform.openai.com/docs/api-reference/chat)
|
|
11
|
-
* and may be used with the OpenAI JS or Python SDK.
|
|
12
|
-
*
|
|
13
|
-
* @deprecated
|
|
14
|
-
*/
|
|
15
|
-
createCompletion(body, options) {
|
|
16
|
-
return this._client.post('/ai/chat/completions', { body, ...options });
|
|
17
|
-
}
|
|
18
4
|
}
|
|
19
5
|
//# sourceMappingURL=chat.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chat.mjs","sourceRoot":"","sources":["../../src/resources/ai/chat.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,gCAA4B;
|
|
1
|
+
{"version":3,"file":"chat.mjs","sourceRoot":"","sources":["../../src/resources/ai/chat.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAGlD,MAAM,OAAO,IAAK,SAAQ,WAAW;CAAG"}
|
package/resources/ai/index.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { AI, type ModelMetadata, type ModelsResponse, type
|
|
1
|
+
export { AI, type ModelMetadata, type ModelsResponse, type AIRetrieveConversationHistoriesResponse, type AISummarizeResponse, type AISummarizeParams, type AIRetrieveConversationHistoriesParams, } from "./ai.mjs";
|
|
2
2
|
export { Assistants, type ArithmeticExpression, type Assistant, type AssistantIntegration, type AssistantMcpServer, type AssistantTool, type AssistantsList, type AudioVisualizerConfig, type AuthenticationMethod, type BooleanOpExpression, type ComparisonExpression, type ConversationFlowReq, type EnabledFeatures, type Expression, type ExternalLlm, type ExternalLlmReq, type FallbackConfig, type FallbackConfigReq, type FlowEdge, type HangupTool, type HangupToolParams, type ImportMetadata, type InferenceEmbedding, type InferenceEmbeddingInterruptionSettings, type InferenceEmbeddingWebhookToolParams, type InsightSettings, type MessagingSettings, type NodePosition, type Observability, type ObservabilityReq, type ObservabilityStatus, type PostConversationSettings, type PostConversationSettingsReq, type PrivacySettings, type PromptSyncStatus, type RetrievalTool, type StartSpeakingPlan, type TelephonySettings, type TranscriptionEndpointingPlan, type TranscriptionSettings, type TranscriptionSettingsConfig, type TransferTool, type VoiceSettings, type WebhookTool, type WidgetSettings, type AssistantDeleteResponse, type AssistantChatResponse, type AssistantGetTexmlResponse, type AssistantSendSMSResponse, type AssistantCreateParams, type AssistantImportsParams, type AssistantRetrieveParams, type AssistantUpdateParams, type AssistantChatParams, type AssistantSendSMSParams, } from "./assistants/index.mjs";
|
|
3
3
|
export { Audio, type AudioTranscribeResponse, type AudioTranscribeParams } from "./audio.mjs";
|
|
4
|
-
export { Chat, type BucketIDs, type ChatCompletionRequest
|
|
4
|
+
export { Chat, type BucketIDs, type ChatCompletionRequest } from "./chat.mjs";
|
|
5
5
|
export { Clusters, type RecursiveCluster, type ClusterRetrieveResponse, type ClusterListResponse, type ClusterComputeResponse, type ClusterListParams, type ClusterComputeParams, type ClusterRetrieveParams, type ClusterFetchGraphParams, type ClusterListResponsesDefaultFlatPagination, } from "./clusters.mjs";
|
|
6
6
|
export { Conversations, type Conversation, type ConversationRetrieveResponse, type ConversationUpdateResponse, type ConversationListResponse, type ConversationRetrieveConversationsInsightsResponse, type ConversationListParams, type ConversationCreateParams, type ConversationUpdateParams, type ConversationAddMessageParams, } from "./conversations/index.mjs";
|
|
7
7
|
export { Embeddings, type BackgroundTaskStatus, type EmbeddingResponse, type EmbeddingRetrieveResponse, type EmbeddingListResponse, type EmbeddingSimilaritySearchResponse, type EmbeddingListParams, type EmbeddingCreateParams, type EmbeddingSimilaritySearchParams, type EmbeddingURLParams, } from "./embeddings/index.mjs";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../src/resources/ai/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,EAAE,EACF,KAAK,aAAa,EAClB,KAAK,cAAc,EACnB,KAAK,
|
|
1
|
+
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../src/resources/ai/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,EAAE,EACF,KAAK,aAAa,EAClB,KAAK,cAAc,EACnB,KAAK,uCAAuC,EAC5C,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,EACtB,KAAK,qCAAqC,GAC3C,iBAAa;AACd,OAAO,EACL,UAAU,EACV,KAAK,oBAAoB,EACzB,KAAK,SAAS,EACd,KAAK,oBAAoB,EACzB,KAAK,kBAAkB,EACvB,KAAK,aAAa,EAClB,KAAK,cAAc,EACnB,KAAK,qBAAqB,EAC1B,KAAK,oBAAoB,EACzB,KAAK,mBAAmB,EACxB,KAAK,oBAAoB,EACzB,KAAK,mBAAmB,EACxB,KAAK,eAAe,EACpB,KAAK,UAAU,EACf,KAAK,WAAW,EAChB,KAAK,cAAc,EACnB,KAAK,cAAc,EACnB,KAAK,iBAAiB,EACtB,KAAK,QAAQ,EACb,KAAK,UAAU,EACf,KAAK,gBAAgB,EACrB,KAAK,cAAc,EACnB,KAAK,kBAAkB,EACvB,KAAK,sCAA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4BAA4B,GAClC,kCAA8B;AAC/B,OAAO,EACL,UAAU,EACV,KAAK,oBAAoB,EACzB,KAAK,iBAAiB,EACtB,KAAK,yBAAyB,EAC9B,KAAK,qBAAqB,EAC1B,KAAK,iCAAiC,EACtC,KAAK,mBAAmB,EACxB,KAAK,qBAAqB,EAC1B,KAAK,+BAA+B,EACpC,KAAK,kBAAkB,GACxB,+BAA2B;AAC5B,OAAO,EAAE,UAAU,EAAE,gCAA4B;AACjD,OAAO,EAAE,YAAY,EAAE,KAAK,WAAW,EAAE,KAAK,uBAAuB,EAAE,iCAA6B;AACpG,OAAO,EACL,UAAU,EACV,KAAK,SAAS,EACd,KAAK,mBAAmB,EACxB,KAAK,qBAAqB,EAC1B,KAAK,qBAAqB,EAC1B,KAAK,4CAA4C,GAClD,0BAAsB;AACvB,OAAO,EACL,QAAQ,EACR,KAAK,kBAAkB,EACvB,KAAK,aAAa,EAClB,KAAK,WAAW,EAChB,KAAK,eAAe,EACpB,KAAK,2BAA2B,EAChC,KAAK,iBAAiB,EACtB,KAAK,mBAAmB,EACxB,KAAK,uBAAuB,EAC5B,KAAK,0BAA0B,EAC/B,KAAK,gCAAgC,GACtC,6BAAyB;AAC1B,OAAO,EAAE,MAAM,EAAE,KAAK,4BAA4B,EAAE,KAAK,0BAA0B,EAAE,2BAAuB;AAC5G,OAAO,EACL,KAAK,EACL,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,EACvB,KAAK,cAAc,EACnB,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACrB,KAAK,wCAAwC,GAC9C,oBAAgB"}
|
package/resources/ai/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { AI, type ModelMetadata, type ModelsResponse, type
|
|
1
|
+
export { AI, type ModelMetadata, type ModelsResponse, type AIRetrieveConversationHistoriesResponse, type AISummarizeResponse, type AISummarizeParams, type AIRetrieveConversationHistoriesParams, } from "./ai.js";
|
|
2
2
|
export { Assistants, type ArithmeticExpression, type Assistant, type AssistantIntegration, type AssistantMcpServer, type AssistantTool, type AssistantsList, type AudioVisualizerConfig, type AuthenticationMethod, type BooleanOpExpression, type ComparisonExpression, type ConversationFlowReq, type EnabledFeatures, type Expression, type ExternalLlm, type ExternalLlmReq, type FallbackConfig, type FallbackConfigReq, type FlowEdge, type HangupTool, type HangupToolParams, type ImportMetadata, type InferenceEmbedding, type InferenceEmbeddingInterruptionSettings, type InferenceEmbeddingWebhookToolParams, type InsightSettings, type MessagingSettings, type NodePosition, type Observability, type ObservabilityReq, type ObservabilityStatus, type PostConversationSettings, type PostConversationSettingsReq, type PrivacySettings, type PromptSyncStatus, type RetrievalTool, type StartSpeakingPlan, type TelephonySettings, type TranscriptionEndpointingPlan, type TranscriptionSettings, type TranscriptionSettingsConfig, type TransferTool, type VoiceSettings, type WebhookTool, type WidgetSettings, type AssistantDeleteResponse, type AssistantChatResponse, type AssistantGetTexmlResponse, type AssistantSendSMSResponse, type AssistantCreateParams, type AssistantImportsParams, type AssistantRetrieveParams, type AssistantUpdateParams, type AssistantChatParams, type AssistantSendSMSParams, } from "./assistants/index.js";
|
|
3
3
|
export { Audio, type AudioTranscribeResponse, type AudioTranscribeParams } from "./audio.js";
|
|
4
|
-
export { Chat, type BucketIDs, type ChatCompletionRequest
|
|
4
|
+
export { Chat, type BucketIDs, type ChatCompletionRequest } from "./chat.js";
|
|
5
5
|
export { Clusters, type RecursiveCluster, type ClusterRetrieveResponse, type ClusterListResponse, type ClusterComputeResponse, type ClusterListParams, type ClusterComputeParams, type ClusterRetrieveParams, type ClusterFetchGraphParams, type ClusterListResponsesDefaultFlatPagination, } from "./clusters.js";
|
|
6
6
|
export { Conversations, type Conversation, type ConversationRetrieveResponse, type ConversationUpdateResponse, type ConversationListResponse, type ConversationRetrieveConversationsInsightsResponse, type ConversationListParams, type ConversationCreateParams, type ConversationUpdateParams, type ConversationAddMessageParams, } from "./conversations/index.js";
|
|
7
7
|
export { Embeddings, type BackgroundTaskStatus, type EmbeddingResponse, type EmbeddingRetrieveResponse, type EmbeddingListResponse, type EmbeddingSimilaritySearchResponse, type EmbeddingListParams, type EmbeddingCreateParams, type EmbeddingSimilaritySearchParams, type EmbeddingURLParams, } from "./embeddings/index.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/ai/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,EAAE,EACF,KAAK,aAAa,EAClB,KAAK,cAAc,EACnB,KAAK,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/ai/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,EAAE,EACF,KAAK,aAAa,EAClB,KAAK,cAAc,EACnB,KAAK,uCAAuC,EAC5C,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,EACtB,KAAK,qCAAqC,GAC3C,gBAAa;AACd,OAAO,EACL,UAAU,EACV,KAAK,oBAAoB,EACzB,KAAK,SAAS,EACd,KAAK,oBAAoB,EACzB,KAAK,kBAAkB,EACvB,KAAK,aAAa,EAClB,KAAK,cAAc,EACnB,KAAK,qBAAqB,EAC1B,KAAK,oBAAoB,EACzB,KAAK,mBAAmB,EACxB,KAAK,oBAAoB,EACzB,KAAK,mBAAmB,EACxB,KAAK,eAAe,EACpB,KAAK,UAAU,EACf,KAAK,WAAW,EAChB,KAAK,cAAc,EACnB,KAAK,cAAc,EACnB,KAAK,iBAAiB,EACtB,KAAK,QAAQ,EACb,KAAK,UAAU,EACf,KAAK,gBAAgB,EACrB,KAAK,cAAc,EACnB,KAAK,kBAAkB,EACvB,KAAK,sCAAsC,EAC3C,KAAK,mCAAmC,EACxC,KAAK,eAAe,EACpB,KAAK,iBAAiB,EACtB,KAAK,YAAY,EACjB,KAAK,aAAa,EAClB,KAAK,gBAAgB,EACrB,KAAK,mBAAmB,EACxB,KAAK,wBAAwB,EAC7B,KAAK,2BAA2B,EAChC,KAAK,eAAe,EACpB,KAAK,gBAAgB,E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K,kBAAkB,GACxB,8BAA2B;AAC5B,OAAO,EAAE,UAAU,EAAE,+BAA4B;AACjD,OAAO,EAAE,YAAY,EAAE,KAAK,WAAW,EAAE,KAAK,uBAAuB,EAAE,gCAA6B;AACpG,OAAO,EACL,UAAU,EACV,KAAK,SAAS,EACd,KAAK,mBAAmB,EACxB,KAAK,qBAAqB,EAC1B,KAAK,qBAAqB,EAC1B,KAAK,4CAA4C,GAClD,yBAAsB;AACvB,OAAO,EACL,QAAQ,EACR,KAAK,kBAAkB,EACvB,KAAK,aAAa,EAClB,KAAK,WAAW,EAChB,KAAK,eAAe,EACpB,KAAK,2BAA2B,EAChC,KAAK,iBAAiB,EACtB,KAAK,mBAAmB,EACxB,KAAK,uBAAuB,EAC5B,KAAK,0BAA0B,EAC/B,KAAK,gCAAgC,GACtC,4BAAyB;AAC1B,OAAO,EAAE,MAAM,EAAE,KAAK,4BAA4B,EAAE,KAAK,0BAA0B,EAAE,0BAAuB;AAC5G,OAAO,EACL,KAAK,EACL,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,EACvB,KAAK,cAAc,EACnB,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACrB,KAAK,wCAAwC,GAC9C,mBAAgB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/ai/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/ai/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,8BAQc;AAPZ,wFAAA,EAAE,OAAA;AAQJ,+CAwD4B;AAvD1B,mGAAA,UAAU,OAAA;AAwDZ,oCAA0F;AAAjF,8FAAA,KAAK,OAAA;AACd,kCAA0E;AAAjE,4FAAA,IAAI,OAAA;AACb,0CAWoB;AAVlB,oGAAA,QAAQ,OAAA;AAWV,kDAW+B;AAV7B,sGAAA,aAAa,OAAA;AAWf,+CAW4B;AAV1B,mGAAA,UAAU,OAAA;AAWZ,gDAAiD;AAAxC,mGAAA,UAAU,OAAA;AACnB,iDAAoG;AAA3F,qGAAA,YAAY,OAAA;AACrB,gDAOuB;AANrB,yGAAA,UAAU,OAAA;AAOZ,6CAY0B;AAXxB,iGAAA,QAAQ,OAAA;AAYV,2CAA4G;AAAnG,+FAAA,MAAM,OAAA;AACf,oCAQiB;AAPf,8FAAA,KAAK,OAAA"}
|
package/resources/ai/index.mjs
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
export { AI, } from "./ai.mjs";
|
|
3
3
|
export { Assistants, } from "./assistants/index.mjs";
|
|
4
4
|
export { Audio } from "./audio.mjs";
|
|
5
|
-
export { Chat
|
|
5
|
+
export { Chat } from "./chat.mjs";
|
|
6
6
|
export { Clusters, } from "./clusters.mjs";
|
|
7
7
|
export { Conversations, } from "./conversations/index.mjs";
|
|
8
8
|
export { Embeddings, } from "./embeddings/index.mjs";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/resources/ai/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EACL,EAAE,
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/resources/ai/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EACL,EAAE,GAOH,iBAAa;AACd,OAAO,EACL,UAAU,GAuDX,+BAA2B;AAC5B,OAAO,EAAE,KAAK,EAA4D,oBAAgB;AAC1F,OAAO,EAAE,IAAI,EAA8C,mBAAe;AAC1E,OAAO,EACL,QAAQ,GAUT,uBAAmB;AACpB,OAAO,EACL,aAAa,GAUd,kCAA8B;AAC/B,OAAO,EACL,UAAU,GAUX,+BAA2B;AAC5B,OAAO,EAAE,UAAU,EAAE,gCAA4B;AACjD,OAAO,EAAE,YAAY,EAAkD,iCAA6B;AACpG,OAAO,EACL,UAAU,GAMX,0BAAsB;AACvB,OAAO,EACL,QAAQ,GAWT,6BAAyB;AAC1B,OAAO,EAAE,MAAM,EAAsE,2BAAuB;AAC5G,OAAO,EACL,KAAK,GAON,oBAAgB"}
|
package/resources/ai/tools.d.mts
CHANGED
|
@@ -87,6 +87,9 @@ export interface ToolListParams extends DefaultFlatPaginationParams {
|
|
|
87
87
|
export interface ToolCreateParams {
|
|
88
88
|
display_name: string;
|
|
89
89
|
type: string;
|
|
90
|
+
client_side_tool?: {
|
|
91
|
+
[key: string]: unknown;
|
|
92
|
+
};
|
|
90
93
|
function?: {
|
|
91
94
|
[key: string]: unknown;
|
|
92
95
|
};
|
|
@@ -106,6 +109,9 @@ export interface ToolCreateParams {
|
|
|
106
109
|
[k: string]: unknown;
|
|
107
110
|
}
|
|
108
111
|
export interface ToolUpdateParams {
|
|
112
|
+
client_side_tool?: {
|
|
113
|
+
[key: string]: unknown;
|
|
114
|
+
};
|
|
109
115
|
display_name?: string;
|
|
110
116
|
function?: {
|
|
111
117
|
[key: string]: unknown;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tools.d.mts","sourceRoot":"","sources":["../../src/resources/ai/tools.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,EAAE,UAAU,EAAE,mCAA+B;AACpD,OAAO,EAAE,qBAAqB,EAAE,KAAK,2BAA2B,EAAE,WAAW,EAAE,kCAA8B;AAC7G,OAAO,EAAE,cAAc,EAAE,2CAAuC;AAGhE;;GAEG;AACH,qBAAa,KAAM,SAAQ,WAAW;IACpC;;;;;;;;;;OAUG;IACH,IAAI,CACF,KAAK,GAAE,cAAc,GAAG,IAAI,GAAG,SAAc,EAC7C,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CAAC,wCAAwC,EAAE,kBAAkB,CAAC;IAO5E;;;;;;;;;;OAUG;IACH,MAAM,CAAC,IAAI,EAAE,gBAAgB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC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,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;KAAE,CAAC;IAErC,MAAM,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;KAAE,CAAC;IAEpC,SAAS,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;KAAE,CAAC;IAEvC,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd,OAAO,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;KAAE,CAAC;IAErC,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;CACtB;AAED,MAAM,CAAC,OAAO,WAAW,KAAK,CAAC;IAC7B,OAAO,EACL,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,wCAAwC,IAAI,wCAAwC,EACzF,KAAK,cAAc,IAAI,cAAc,EACrC,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,gBAAgB,IAAI,gBAAgB,GAC1C,CAAC;CACH"}
|
package/resources/ai/tools.d.ts
CHANGED
|
@@ -87,6 +87,9 @@ export interface ToolListParams extends DefaultFlatPaginationParams {
|
|
|
87
87
|
export interface ToolCreateParams {
|
|
88
88
|
display_name: string;
|
|
89
89
|
type: string;
|
|
90
|
+
client_side_tool?: {
|
|
91
|
+
[key: string]: unknown;
|
|
92
|
+
};
|
|
90
93
|
function?: {
|
|
91
94
|
[key: string]: unknown;
|
|
92
95
|
};
|
|
@@ -106,6 +109,9 @@ export interface ToolCreateParams {
|
|
|
106
109
|
[k: string]: unknown;
|
|
107
110
|
}
|
|
108
111
|
export interface ToolUpdateParams {
|
|
112
|
+
client_side_tool?: {
|
|
113
|
+
[key: string]: unknown;
|
|
114
|
+
};
|
|
109
115
|
display_name?: string;
|
|
110
116
|
function?: {
|
|
111
117
|
[key: string]: unknown;
|