Skip to content

Commit 2b8431c

Browse files
authored
Merge pull request #461 from alexrudall/assistants-v2
Assistants v2
2 parents e96c046 + b35c3ef commit 2b8431c

File tree

61 files changed

+3950
-313
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

+3950
-313
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -663,9 +663,9 @@ client.finetunes.list_events(id: fine_tune_id)
663663

664664
### Assistants
665665

666-
Assistants can call models to interact with threads and use tools to perform tasks (see [Assistant Overview](https://platform.openai.com/docs/assistants/overview)).
666+
Assistants are stateful actors that can have many conversations and use tools to perform tasks (see [Assistant Overview](https://platform.openai.com/docs/assistants/overview)).
667667

668-
To create a new assistant (see [API documentation](https://platform.openai.com/docs/api-reference/assistants/createAssistant)):
668+
To create a new assistant:
669669

670670
```ruby
671671
response = client.assistants.create(

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)