File tree Expand file tree Collapse file tree 6 files changed +8
-6
lines changed Expand file tree Collapse file tree 6 files changed +8
-6
lines changed Original file line number Diff line number Diff line change 11module OpenAI
22 class Assistants
3+ BETA_VERSION = "v2" . freeze
4+
35 def initialize ( client :)
4- @client = client . beta ( assistants : "v2" )
6+ @client = client . beta ( assistants : OpenAI :: Assistants :: BETA_VERSION )
57 end
68
79 def list
Original file line number Diff line number Diff line change 11module OpenAI
22 class Batches
33 def initialize ( client :)
4- @client = client . beta ( assistants : "v2" )
4+ @client = client . beta ( assistants : OpenAI :: Assistants :: BETA_VERSION )
55 end
66
77 def list
Original file line number Diff line number Diff line change 11module OpenAI
22 class Messages
33 def initialize ( client :)
4- @client = client . beta ( assistants : "v2" )
4+ @client = client . beta ( assistants : OpenAI :: Assistants :: BETA_VERSION )
55 end
66
77 def list ( thread_id :, parameters : { } )
Original file line number Diff line number Diff line change 11module OpenAI
22 class RunSteps
33 def initialize ( client :)
4- @client = client . beta ( assistants : "v2" )
4+ @client = client . beta ( assistants : OpenAI :: Assistants :: BETA_VERSION )
55 end
66
77 def list ( thread_id :, run_id :, parameters : { } )
Original file line number Diff line number Diff line change 11module OpenAI
22 class Runs
33 def initialize ( client :)
4- @client = client . beta ( assistants : "v2" )
4+ @client = client . beta ( assistants : OpenAI :: Assistants :: BETA_VERSION )
55 end
66
77 def list ( thread_id :, parameters : { } )
Original file line number Diff line number Diff line change 11module OpenAI
22 class Threads
33 def initialize ( client :)
4- @client = client . beta ( assistants : "v2" )
4+ @client = client . beta ( assistants : OpenAI :: Assistants :: BETA_VERSION )
55 end
66
77 def retrieve ( id :)
You can’t perform that action at this time.
0 commit comments