Skip to content

Commit 628189f

Browse files
feat(api): api update
1 parent 9287c0d commit 628189f

File tree

3 files changed

+14
-3
lines changed

3 files changed

+14
-3
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: 35
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/togetherai%2Ftogetherai-ca671d5055f287d4227e745e91fa255f243cb63bd87108cce15e0d566de08879.yml
3-
openapi_spec_hash: dc327fb5fd01ace11ab86a37ca10960e
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/togetherai%2Ftogetherai-7d7d90647aab5086171c692e905111458f67092e1a424eb5fb13024579758c42.yml
3+
openapi_spec_hash: d9020f812eee9eb0d050c760bf97510b
44
config_hash: 5a533e1f6783d04ca24a49ea57fe06e4

api.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ 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">ChatCompletionUserMessageParam</a></code>
3130

3231
Methods:
3332

src/resources/chat/completions.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,8 @@ export interface ChatCompletion {
5656
object: 'chat.completion';
5757

5858
usage?: ChatCompletionUsage | null;
59+
60+
warnings?: Array<ChatCompletion.Warning>;
5961
}
6062

6163
export namespace ChatCompletion {
@@ -102,6 +104,10 @@ export namespace ChatCompletionAssistantMessageParam {
102104

103105
name: string;
104106
}
107+
108+
export interface Warning {
109+
message: string;
110+
}
105111
}
106112

107113
export interface ChatCompletionChunk {
@@ -118,6 +124,8 @@ export interface ChatCompletionChunk {
118124
system_fingerprint?: string;
119125

120126
usage?: ChatCompletionUsage | null;
127+
128+
warnings?: Array<ChatCompletionChunk.Warning>;
121129
}
122130

123131
export namespace ChatCompletionChunk {
@@ -160,6 +168,10 @@ export namespace ChatCompletionChunk {
160168
}
161169
}
162170
}
171+
172+
export interface Warning {
173+
message: string;
174+
}
163175
}
164176

165177
/**

0 commit comments

Comments
 (0)