Skip to content

Commit 83d8fb9

Browse files
authored
Add user_data as new purpose on Files API
OpenAI now supports `user_data` as an allowable purpose; updating the library to permit it. https://platform.openai.com/docs/api-reference/files/create#files-create-purpose
1 parent bc189bb commit 83d8fb9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/openai/files.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ class Files
55
batch
66
fine-tune
77
vision
8+
user_data
89
].freeze
910

1011
def initialize(client:)

0 commit comments

Comments
 (0)