Skip to content

Commit

Permalink
Merge pull request #13 from outl1ne/Add-threads-capability-to-openai
Browse files Browse the repository at this point in the history
refactor: swap assignment of message and thread IDs in MessageRespons…
  • Loading branch information
allantatter authored Mar 11, 2024
2 parents 5475e02 + 0e93a36 commit 464893c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Capabilities/Threads/Responses/MessageResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ public function __construct(
) {
$data = $response->json();

$this->threadId = $data['id'];
$this->messageId = $data['thread_id'];
$this->messageId = $data['id'];
$this->threadId = $data['thread_id'];
$this->appendMeta('id', $data['id']);
$this->appendMeta('object', $data['object']);
$this->appendMeta('created_at', $data['created_at']);
Expand Down

0 comments on commit 464893c

Please sign in to comment.