Skip to content

Commit f6b47ac

Browse files
committed
release: v0.8.3
1 parent 135a9b3 commit f6b47ac

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
44
The format is based on [Keep a Changelog](http://keepachangelog.com/)
55
and this project adheres to [Semantic Versioning](http://semver.org/).
66

7+
## v0.8.3 (2024-02-02)
8+
### Added
9+
- ThreadRun: Add "usage" property to the response ([#330](https://github.com/openai-php/client/pull/330))
10+
711
## v0.8.2 (2024-01-26)
812
### Fixed
913
- ThreadRunStep: "content" missing in response if result has not been submitted ([#319](https://github.com/openai-php/client/pull/319))

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1447,6 +1447,10 @@ $response->tools[0]->type; // 'code_interpreter'
14471447
$response->fileIds; // []
14481448
$response->metadata; // []
14491449

1450+
$response->usage->promptTokens; // 25,
1451+
$response->usage->completionTokens; // 32,
1452+
$response->usage->totalTokens; // 57
1453+
14501454
$response->toArray(); // ['id' => 'run_4RCYyYzX9m41WQicoJtUQAb8', ...]
14511455
```
14521456

0 commit comments

Comments
 (0)