Skip to content

Commit 0a4d2d7

Browse files
committed
Remove bad endpoint
1 parent b178236 commit 0a4d2d7

File tree

3 files changed

+10
-44
lines changed

3 files changed

+10
-44
lines changed

README.md

Lines changed: 10 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1103,6 +1103,16 @@ client.vector_store_file_batches.cancel(
11031103

11041104
The Conversations API enables you to create and manage persistent conversations with your models. This is useful for maintaining conversation state across multiple interactions.
11051105

1106+
**Supported Endpoints:**
1107+
- `POST /v1/conversations` - Create a conversation
1108+
- `GET /v1/conversations/{id}` - Retrieve a conversation
1109+
- `PATCH /v1/conversations/{id}` - Modify a conversation
1110+
- `DELETE /v1/conversations/{id}` - Delete a conversation
1111+
- `POST /v1/conversations/{id}/items` - Create items in a conversation
1112+
- `GET /v1/conversations/{id}/items` - List items in a conversation
1113+
- `GET /v1/conversations/{id}/items/{item_id}` - Get a specific item
1114+
- `DELETE /v1/conversations/{id}/items/{item_id}` - Delete an item
1115+
11061116
#### Creating a Conversation
11071117

11081118
To create a new conversation:
@@ -1116,23 +1126,6 @@ response = client.conversations.create(
11161126
conversation_id = response["id"]
11171127
```
11181128

1119-
#### Listing Conversations
1120-
1121-
To list all conversations:
1122-
1123-
```ruby
1124-
response = client.conversations.list
1125-
conversations = response["data"]
1126-
1127-
# With parameters
1128-
response = client.conversations.list(
1129-
parameters: {
1130-
limit: 20,
1131-
order: "desc"
1132-
}
1133-
)
1134-
```
1135-
11361129
#### Retrieving a Conversation
11371130

11381131
To retrieve a specific conversation:

lib/openai/conversations.rb

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,6 @@ def initialize(client:)
44
@client = client
55
end
66

7-
def list(parameters: {})
8-
@client.get(path: "/conversations", parameters: parameters)
9-
end
10-
117
def retrieve(id:)
128
@client.get(path: "/conversations/#{id}")
139
end

spec/openai/client/conversations_spec.rb

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -24,29 +24,6 @@
2424
end
2525
end
2626

27-
describe "#list" do
28-
let(:cassette) { "conversations list" }
29-
let(:response) { OpenAI::Client.new.conversations.list }
30-
31-
it "succeeds" do
32-
VCR.use_cassette(cassette) do
33-
expect(response["object"]).to eq("list")
34-
end
35-
end
36-
37-
context "with parameters" do
38-
let(:response) do
39-
OpenAI::Client.new.conversations.list(parameters: { limit: 10 })
40-
end
41-
42-
it "succeeds with parameters" do
43-
VCR.use_cassette(cassette) do
44-
expect(response["object"]).to eq("list")
45-
end
46-
end
47-
end
48-
end
49-
5027
describe "#retrieve" do
5128
let(:cassette) { "conversations retrieve" }
5229
let(:response) { OpenAI::Client.new.conversations.retrieve(id: conversation_id) }

0 commit comments

Comments
 (0)