Skip to content

Commit

Permalink
release: v0.8.3
Browse files Browse the repository at this point in the history
  • Loading branch information
gehrisandro committed Feb 2, 2024
1 parent 135a9b3 commit f6b47ac
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/)
and this project adheres to [Semantic Versioning](http://semver.org/).

## v0.8.3 (2024-02-02)
### Added
- ThreadRun: Add "usage" property to the response ([#330](https://github.com/openai-php/client/pull/330))

## v0.8.2 (2024-01-26)
### Fixed
- ThreadRunStep: "content" missing in response if result has not been submitted ([#319](https://github.com/openai-php/client/pull/319))
Expand Down
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -1447,6 +1447,10 @@ $response->tools[0]->type; // 'code_interpreter'
$response->fileIds; // []
$response->metadata; // []

$response->usage->promptTokens; // 25,
$response->usage->completionTokens; // 32,
$response->usage->totalTokens; // 57

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

Expand Down

0 comments on commit f6b47ac

Please sign in to comment.