Skip to content

Commit 322ea6a

Browse files
committed
Bump Assistants to v2
1 parent e96c046 commit 322ea6a

File tree

61 files changed

+3949
-312
lines changed

Some content is hidden

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

61 files changed

+3949
-312
lines changed

lib/openai.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ class Configuration
4949
DEFAULT_API_VERSION = "v1".freeze
5050
DEFAULT_URI_BASE = "https://api.openai.com/".freeze
5151
DEFAULT_REQUEST_TIMEOUT = 120
52-
DEFAULT_LOG_ERRORS = false
52+
DEFAULT_LOG_ERRORS = true
5353

5454
def initialize
5555
@access_token = nil

lib/openai/assistants.rb

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

77
def list

spec/fixtures/cassettes/assistants_create.yml

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

spec/fixtures/cassettes/assistants_delete.yml

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

spec/fixtures/cassettes/assistants_delete_setup.yml

Lines changed: 75 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)