Skip to content

Commit 5bd35bb

Browse files
authored
Merge pull request #470 from alexrudall/7.0.1
7.0.1
2 parents 9ff065c + a589ea6 commit 5bd35bb

File tree

78 files changed

+6408
-190
lines changed

Some content is hidden

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

78 files changed

+6408
-190
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## [7.0.1] - 2024-04-30
9+
10+
### Fixed
11+
12+
- Update to v2 of Assistants in Messages, Runs, RunSteps and Threads - thanks to [@willywg](https://github.com/willywg) and others for pointing this out.
13+
814
## [7.0.0] - 2024-04-27
915

1016
### Added

Gemfile.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
PATH
22
remote: .
33
specs:
4-
ruby-openai (7.0.0)
4+
ruby-openai (7.0.1)
55
event_stream_parser (>= 0.3.0, < 2.0.0)
66
faraday (>= 1)
77
faraday-multipart (>= 1)

lib/openai/assistants.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
module 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

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: OpenAI::Assistants::BETA_VERSION)
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: OpenAI::Assistants::BETA_VERSION)
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: OpenAI::Assistants::BETA_VERSION)
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: OpenAI::Assistants::BETA_VERSION)
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: OpenAI::Assistants::BETA_VERSION)
55
end
66

77
def retrieve(id:)

lib/openai/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
module OpenAI
2-
VERSION = "7.0.0".freeze
2+
VERSION = "7.0.1".freeze
33
end

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.

0 commit comments

Comments
 (0)