Skip to content

Commit 527632f

Browse files
feat(api): api update
1 parent 40719b5 commit 527632f

File tree

2 files changed

+36
-2
lines changed

2 files changed

+36
-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: 17
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/groqcloud%2Fgroqcloud-e50d4c9f3280c8aff14e4e4447f82f940d572399c36bcf9f3abf7235200955b3.yml
3-
openapi_spec_hash: f7ca0a8bb40cb5c7dacaae4f3ad847d3
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/groqcloud%2Fgroqcloud-a2ddf0c5cb796758690f28d02fef6ae46d2eab3fdc3e2d2cf99ef2b75cca4022.yml
3+
openapi_spec_hash: 0f3cd640ddd5f1f4e8ea20b9cfd86025
44
config_hash: 6b1c374dcc1ffa3165dd22f52a77ff89

src/resources/chat/completions.ts

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -332,6 +332,11 @@ export namespace ChatCompletionChunk {
332332
*/
333333
type: string;
334334

335+
/**
336+
* Array of code execution results
337+
*/
338+
code_results?: Array<ExecutedTool.CodeResult>;
339+
335340
/**
336341
* The output returned by the tool.
337342
*/
@@ -344,6 +349,18 @@ export namespace ChatCompletionChunk {
344349
}
345350

346351
export namespace ExecutedTool {
352+
export interface CodeResult {
353+
/**
354+
* Base64 encoded PNG image output from code execution
355+
*/
356+
png?: string;
357+
358+
/**
359+
* The text version of the code execution result
360+
*/
361+
text?: string;
362+
}
363+
347364
/**
348365
* The search results returned by the tool, if applicable.
349366
*/
@@ -623,6 +640,11 @@ export namespace ChatCompletionMessage {
623640
*/
624641
type: string;
625642

643+
/**
644+
* Array of code execution results
645+
*/
646+
code_results?: Array<ExecutedTool.CodeResult>;
647+
626648
/**
627649
* The output returned by the tool.
628650
*/
@@ -635,6 +657,18 @@ export namespace ChatCompletionMessage {
635657
}
636658

637659
export namespace ExecutedTool {
660+
export interface CodeResult {
661+
/**
662+
* Base64 encoded PNG image output from code execution
663+
*/
664+
png?: string;
665+
666+
/**
667+
* The text version of the code execution result
668+
*/
669+
text?: string;
670+
}
671+
638672
/**
639673
* The search results returned by the tool, if applicable.
640674
*/

0 commit comments

Comments
 (0)