Skip to content

Commit e53f0e7

Browse files
feat(api): api update
1 parent c64fc6d commit e53f0e7

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
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: 42
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/togetherai%2Ftogetherai-7bb11ed57c80e483748c1fbe854ed623e290bb60be3dfddf1a88833d8fe67163.yml
3-
openapi_spec_hash: f87078b271f0d9501b1b125f7455a1b8
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/togetherai%2Ftogetherai-eee41ccf2ac9eb601853ae1d06a9c9f92b13aa4dc7a588117c41032490d69b2d.yml
3+
openapi_spec_hash: c5bf431d30ef57c992ef0200f6396acd
44
config_hash: 50b86276412e927f8eb0e69e2857b1c7

chatcompletion.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -224,13 +224,15 @@ type ChatCompletionChunkChoiceDelta struct {
224224
Content string `json:"content,nullable"`
225225
// Deprecated: deprecated
226226
FunctionCall ChatCompletionChunkChoiceDeltaFunctionCall `json:"function_call,nullable"`
227+
Reasoning string `json:"reasoning,nullable"`
227228
TokenID int64 `json:"token_id"`
228229
ToolCalls []ToolChoice `json:"tool_calls"`
229230
// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
230231
JSON struct {
231232
Role respjson.Field
232233
Content respjson.Field
233234
FunctionCall respjson.Field
235+
Reasoning respjson.Field
234236
TokenID respjson.Field
235237
ToolCalls respjson.Field
236238
ExtraFields map[string]respjson.Field

completion.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -212,13 +212,15 @@ type CompletionChunkChoiceDelta struct {
212212
Content string `json:"content,nullable"`
213213
// Deprecated: deprecated
214214
FunctionCall CompletionChunkChoiceDeltaFunctionCall `json:"function_call,nullable"`
215+
Reasoning string `json:"reasoning,nullable"`
215216
TokenID int64 `json:"token_id"`
216217
ToolCalls []ToolChoice `json:"tool_calls"`
217218
// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
218219
JSON struct {
219220
Role respjson.Field
220221
Content respjson.Field
221222
FunctionCall respjson.Field
223+
Reasoning respjson.Field
222224
TokenID respjson.Field
223225
ToolCalls respjson.Field
224226
ExtraFields map[string]respjson.Field

0 commit comments

Comments
 (0)