Skip to content

Commit

Permalink
Add openai-php/client v0.10.1 support
Browse files Browse the repository at this point in the history
  • Loading branch information
bytestream authored and MaximeThoonsen committed Sep 28, 2024
1 parent d7c5352 commit 9ac8a53
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"php": "^8.1.0",
"guzzlehttp/guzzle": "^7.4.5",
"guzzlehttp/psr7": "^2.7",
"openai-php/client": "^v0.7.7 || ^v0.8.4 || ^v0.9.2",
"openai-php/client": "^v0.7.7 || ^v0.8.4 || ^v0.9.2 || ^v0.10.1",
"phpoffice/phpword": "^1.3.0",
"psr/http-message": "^2.0",
"smalot/pdfparser": "^2.7"
Expand Down
6 changes: 6 additions & 0 deletions tests/Unit/Chat/MockOpenAIClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
use OpenAI\Contracts\Resources\ModelsContract;
use OpenAI\Contracts\Resources\ModerationsContract;
use OpenAI\Contracts\Resources\ThreadsContract;
use OpenAI\Contracts\Resources\VectorStoresContract;

class MockOpenAIClient implements ClientContract
{
Expand Down Expand Up @@ -89,4 +90,9 @@ public function batches(): BatchesContract
{
// TODO: Implement batches() method.
}

public function vectorStores(): VectorStoresContract
{
// TODO: Implement vectorStores() method.
}
}

0 comments on commit 9ac8a53

Please sign in to comment.