Skip to content

Commit

Permalink
Remove threads list endpoint from README.md
Browse files Browse the repository at this point in the history
Following the removal threads list endpoint. See openai-php#271
  • Loading branch information
arnebr committed Nov 25, 2023
1 parent ca9fd1f commit f5639d5
Showing 1 changed file with 0 additions and 22 deletions.
22 changes: 0 additions & 22 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -1213,28 +1213,6 @@ $response->deleted; // true
$response->toArray(); // ['id' => 'thread_tKFLqzRN9n7MnyKKvc1Q7868', ...]
```

#### `list`

Returns a list of threads.

```php
$response = $client->threads()->list([
'limit' => 10,
]);

$response->object; // 'list'
$response->firstId; // 'thread_tKFLqzRN9n7MnyKKvc1Q7868'
$response->lastId; // 'thread_qVpWfffa654XBdU3tl2iUdVy'
$response->hasMore; // true

foreach ($response->data as $result) {
$result->id; // 'thread_tKFLqzRN9n7MnyKKvc1Q7868'
// ...
}

$response->toArray(); // ['object' => 'list', ...]]
```

### `Threads Messages` Resource

#### `create`
Expand Down

0 comments on commit f5639d5

Please sign in to comment.