Skip to content

Commit

Permalink
Add default system_fingerprint to chat create response fixture
Browse files Browse the repository at this point in the history
  • Loading branch information
gehrisandro committed Dec 22, 2023
1 parent 57a9067 commit bc93450
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ final class CreateResponseFixture
'object' => 'chat.completion',
'created' => 1_677_652_288,
'model' => 'gpt-3.5-turbo',
'system_fingerprint' => null,
'choices' => [
[
'index' => 0,
Expand Down
2 changes: 2 additions & 0 deletions tests/Responses/Chat/CreateResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -104,10 +104,12 @@
],
],
],
'system_fingerprint' => 'fp_44709d6fcb',
]);

expect($response)
->id->toBe('chatcmpl-111')
->systemFingerprint->toBe('fp_44709d6fcb')
->and($response->choices[0])
->message->content->toBe('Hi, there!')
->message->role->toBe('assistant');
Expand Down

0 comments on commit bc93450

Please sign in to comment.