Skip to content

Commit b241ed1

Browse files
authored
Merge pull request #82 from togethercomputer/sanne/eng-26540-tci-add-file-upload-to-openapi-spec
TCI - add file upload to spec
2 parents 87b4853 + 76823cc commit b241ed1

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

openapi.yaml

+20
Original file line numberDiff line numberDiff line change
@@ -3241,6 +3241,26 @@ components:
32413241
description: "Code snippet to execute."
32423242
example: "print('Hello, world!')"
32433243
type: string
3244+
files:
3245+
description: Files to upload to the session. If present, files will be uploaded before executing the given code.
3246+
items:
3247+
properties:
3248+
content:
3249+
type: string
3250+
encoding:
3251+
description: Encoding of the file content. Use `string` for text files such as code, and `base64` for binary files, such as images.
3252+
enum:
3253+
- string
3254+
- base64
3255+
type: string
3256+
name:
3257+
type: string
3258+
required:
3259+
- name
3260+
- encoding
3261+
- content
3262+
type: object
3263+
type: array
32443264
language:
32453265
default: python
32463266
description: Programming language for the code to execute. Currently only supports Python, but more will be added.

0 commit comments

Comments
 (0)