diff --git a/Classes/OpenAiClientFactory.php b/Classes/OpenAiClientFactory.php index 9987ae7..be022af 100644 --- a/Classes/OpenAiClientFactory.php +++ b/Classes/OpenAiClientFactory.php @@ -19,7 +19,7 @@ public function createClientForAccountRecord(AccountRecord $record): ClientContr $factory = (new Factory()) ->withHttpClient($this->httpClient) ->withApiKey($record->apiKey) - ->withHttpHeader('OpenAI-Beta', 'assistants=v1') + ->withHttpHeader('OpenAI-Beta', 'assistants=v2') ->withOrganization($record->organisation); return $factory->make(); } diff --git a/composer.json b/composer.json index ccbd89c..0a4e1e9 100644 --- a/composer.json +++ b/composer.json @@ -4,7 +4,7 @@ "name": "sitegeist/flow-openaiclientfactory", "require": { "neos/flow": "*", - "openai-php/client": "^0.8" + "openai-php/client": "^0.10.1" }, "autoload": { "psr-4": {