From 7ac303befa9f7f2000f0689f1737f02782e54452 Mon Sep 17 00:00:00 2001 From: Bernhard Schmitt Date: Mon, 15 Jul 2024 10:59:00 +0200 Subject: [PATCH] Update to beta 2 --- Classes/OpenAiClientFactory.php | 2 +- composer.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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": {