Skip to content

Commit 8680ba0

Browse files
committed
Update to assistants v2 everywhere
1 parent 9ff065c commit 8680ba0

File tree

58 files changed

+3135
-154
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

58 files changed

+3135
-154
lines changed

lib/openai/batches.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
module OpenAI
22
class Batches
33
def initialize(client:)
4-
@client = client.beta(assistants: "v1")
4+
@client = client.beta(assistants: "v2")
55
end
66

77
def list

lib/openai/messages.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
module OpenAI
22
class Messages
33
def initialize(client:)
4-
@client = client.beta(assistants: "v1")
4+
@client = client.beta(assistants: "v2")
55
end
66

77
def list(thread_id:, parameters: {})

lib/openai/run_steps.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
module OpenAI
22
class RunSteps
33
def initialize(client:)
4-
@client = client.beta(assistants: "v1")
4+
@client = client.beta(assistants: "v2")
55
end
66

77
def list(thread_id:, run_id:, parameters: {})

lib/openai/runs.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
module OpenAI
22
class Runs
33
def initialize(client:)
4-
@client = client.beta(assistants: "v1")
4+
@client = client.beta(assistants: "v2")
55
end
66

77
def list(thread_id:, parameters: {})

lib/openai/threads.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
module OpenAI
22
class Threads
33
def initialize(client:)
4-
@client = client.beta(assistants: "v1")
4+
@client = client.beta(assistants: "v2")
55
end
66

77
def retrieve(id:)

spec/fixtures/cassettes/batches_cancel.yml

Lines changed: 62 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

spec/fixtures/cassettes/batches_cancel_input.yml

Lines changed: 14 additions & 14 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

spec/fixtures/cassettes/batches_cancel_setup.yml

Lines changed: 86 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

spec/fixtures/cassettes/batches_create.yml

Lines changed: 86 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)