File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
4
4
The format is based on [ Keep a Changelog] ( http://keepachangelog.com/ )
5
5
and this project adheres to [ Semantic Versioning] ( http://semver.org/ ) .
6
6
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
+
7
11
## v0.8.2 (2024-01-26)
8
12
### Fixed
9
13
- ThreadRunStep: "content" missing in response if result has not been submitted ([ #319 ] ( https://github.com/openai-php/client/pull/319 ) )
Original file line number Diff line number Diff line change @@ -1447,6 +1447,10 @@ $response->tools[0]->type; // 'code_interpreter'
1447
1447
$response->fileIds; // []
1448
1448
$response->metadata; // []
1449
1449
1450
+ $response->usage->promptTokens; // 25,
1451
+ $response->usage->completionTokens; // 32,
1452
+ $response->usage->totalTokens; // 57
1453
+
1450
1454
$response->toArray(); // ['id' => 'run_4RCYyYzX9m41WQicoJtUQAb8', ...]
1451
1455
```
1452
1456
You can’t perform that action at this time.
0 commit comments