Skip to content

Commit 5d0865a

Browse files
feat(api): api update
1 parent 24e6833 commit 5d0865a

File tree

3 files changed

+43
-8
lines changed

3 files changed

+43
-8
lines changed

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 29
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/togetherai%2Ftogetherai-1f9f08d53431133ec18d6a143dc148cd9707b4481d434ea72268b85fa09ace96.yml
3-
openapi_spec_hash: 6d66a86c8d4ec97cb4d98b57a4238bc5
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/togetherai%2Ftogetherai-2cc1d49fa13b7d4a5cd42cc7440c1d3ef74763891b077d2cc28a872a41abd61f.yml
3+
openapi_spec_hash: fa4a4788ab2d4438ef691c4b9f32a914
44
config_hash: 9c8f0f59a53f8837c6406b493a0c3db7

src/resources/chat/completions.ts

Lines changed: 41 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -461,16 +461,54 @@ export namespace CompletionCreateParams {
461461
content:
462462
| string
463463
| Array<
464-
| ChatCompletionsAPI.ChatCompletionStructuredMessageText
465-
| ChatCompletionsAPI.ChatCompletionStructuredMessageImageURL
466-
| ChatCompletionsAPI.ChatCompletionStructuredMessageVideoURL
464+
| ChatCompletionUserMessageParam.UnionMember0
465+
| ChatCompletionUserMessageParam.UnionMember1
466+
| ChatCompletionUserMessageParam.Video
467467
>;
468468

469469
role: 'user';
470470

471471
name?: string;
472472
}
473473

474+
export namespace ChatCompletionUserMessageParam {
475+
export interface UnionMember0 {
476+
text: string;
477+
478+
type: 'text';
479+
}
480+
481+
export interface UnionMember1 {
482+
image_url?: UnionMember1.ImageURL;
483+
484+
type?: 'image_url';
485+
}
486+
487+
export namespace UnionMember1 {
488+
export interface ImageURL {
489+
/**
490+
* The URL of the image
491+
*/
492+
url: string;
493+
}
494+
}
495+
496+
export interface Video {
497+
type: 'video_url';
498+
499+
video_url: Video.VideoURL;
500+
}
501+
502+
export namespace Video {
503+
export interface VideoURL {
504+
/**
505+
* The URL of the video
506+
*/
507+
url: string;
508+
}
509+
}
510+
}
511+
474512
export interface ChatCompletionAssistantMessageParam {
475513
role: 'assistant';
476514

src/resources/chat/index.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,6 @@ export {
1313
Completions,
1414
type ChatCompletion,
1515
type ChatCompletionChunk,
16-
type ChatCompletionStructuredMessageImageURL,
17-
type ChatCompletionStructuredMessageText,
18-
type ChatCompletionStructuredMessageVideoURL,
1916
type ChatCompletionUsage,
2017
type CompletionCreateParams,
2118
type CompletionCreateParamsNonStreaming,

0 commit comments

Comments
 (0)