Skip to content

Commit bdf705c

Browse files
feat(api): manual updates
1 parent ef03895 commit bdf705c

File tree

5 files changed

+18
-16
lines changed

5 files changed

+18
-16
lines changed

.stats.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 35
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/togetherai%2Ftogetherai-8d6ba7446d70b6150ed7221156d602c6d9aa771d8c60b8899b4672f6e9eb3b5c.yml
3-
openapi_spec_hash: 2497e4d6c72eab9aa4c2781a62e00c1e
4-
config_hash: 04c94813abfa74e3782493335cafae33
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/togetherai%2Ftogetherai-ca671d5055f287d4227e745e91fa255f243cb63bd87108cce15e0d566de08879.yml
3+
openapi_spec_hash: dc327fb5fd01ace11ab86a37ca10960e
4+
config_hash: 5a533e1f6783d04ca24a49ea57fe06e4

api.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ Types:
2727
- <code><a href="./src/resources/chat/completions.ts">ChatCompletionStructuredMessageText</a></code>
2828
- <code><a href="./src/resources/chat/completions.ts">ChatCompletionStructuredMessageVideoURL</a></code>
2929
- <code><a href="./src/resources/chat/completions.ts">ChatCompletionUsage</a></code>
30+
- <code><a href="./src/resources/chat/completions.ts">ChatCompletionWarnings</a></code>
3031
- <code><a href="./src/resources/chat/completions.ts">ChatCompletionUserMessageParam</a></code>
3132

3233
Methods:

src/resources/chat/chat.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,11 @@ import {
1616
ChatCompletionStructuredMessageText,
1717
ChatCompletionStructuredMessageVideoURL,
1818
ChatCompletionUsage,
19-
ChatCompletionUserMessageParam,
2019
CompletionCreateParams,
2120
CompletionCreateParamsNonStreaming,
2221
CompletionCreateParamsStreaming,
2322
Completions,
23+
ChatCompletionWarnings,
2424
} from './completions';
2525

2626
export class Chat extends APIResource {
@@ -45,7 +45,7 @@ export declare namespace Chat {
4545
type ChatCompletionStructuredMessageText as ChatCompletionStructuredMessageText,
4646
type ChatCompletionStructuredMessageVideoURL as ChatCompletionStructuredMessageVideoURL,
4747
type ChatCompletionUsage as ChatCompletionUsage,
48-
type ChatCompletionUserMessageParam as ChatCompletionUserMessageParam,
48+
type ChatCompletionWarnings as ChatCompletionWarnings,
4949
type CompletionCreateParams as CompletionCreateParams,
5050
type CompletionCreateParamsNonStreaming as CompletionCreateParamsNonStreaming,
5151
type CompletionCreateParamsStreaming as CompletionCreateParamsStreaming,

src/resources/chat/completions.ts

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ export interface ChatCompletion {
5757

5858
usage?: ChatCompletionUsage | null;
5959

60-
warnings?: Array<ChatCompletion.Warning>;
60+
warnings?: ChatCompletionWarnings;
6161
}
6262

6363
export namespace ChatCompletion {
@@ -104,10 +104,6 @@ export namespace ChatCompletionAssistantMessageParam {
104104

105105
name: string;
106106
}
107-
108-
export interface Warning {
109-
message: string;
110-
}
111107
}
112108

113109
export interface ChatCompletionChunk {
@@ -125,7 +121,7 @@ export interface ChatCompletionChunk {
125121

126122
usage?: ChatCompletionUsage | null;
127123

128-
warnings?: Array<ChatCompletionChunk.Warning>;
124+
warnings?: ChatCompletionWarnings;
129125
}
130126

131127
export namespace ChatCompletionChunk {
@@ -168,10 +164,6 @@ export namespace ChatCompletionChunk {
168164
}
169165
}
170166
}
171-
172-
export interface Warning {
173-
message: string;
174-
}
175167
}
176168

177169
/**
@@ -302,6 +294,14 @@ export interface ChatCompletionUserMessageParam {
302294
name?: string;
303295
}
304296

297+
export type ChatCompletionWarnings = Array<ChatCompletionWarnings.ChatCompletionWarningItem>;
298+
299+
export namespace ChatCompletionWarnings {
300+
export interface ChatCompletionWarningItem {
301+
message: string;
302+
}
303+
}
304+
305305
export type CompletionCreateParams = CompletionCreateParamsNonStreaming | CompletionCreateParamsStreaming;
306306

307307
export interface CompletionCreateParamsBase {
@@ -628,7 +628,7 @@ export declare namespace Completions {
628628
type ChatCompletionStructuredMessageText as ChatCompletionStructuredMessageText,
629629
type ChatCompletionStructuredMessageVideoURL as ChatCompletionStructuredMessageVideoURL,
630630
type ChatCompletionUsage as ChatCompletionUsage,
631-
type ChatCompletionUserMessageParam as ChatCompletionUserMessageParam,
631+
type ChatCompletionWarnings as ChatCompletionWarnings,
632632
type CompletionCreateParams as CompletionCreateParams,
633633
type CompletionCreateParamsNonStreaming as CompletionCreateParamsNonStreaming,
634634
type CompletionCreateParamsStreaming as CompletionCreateParamsStreaming,

src/resources/chat/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ export {
1717
type ChatCompletionStructuredMessageText,
1818
type ChatCompletionStructuredMessageVideoURL,
1919
type ChatCompletionUsage,
20+
type ChatCompletionWarnings,
2021
type CompletionCreateParams,
2122
type CompletionCreateParamsNonStreaming,
2223
type CompletionCreateParamsStreaming,

0 commit comments

Comments
 (0)