From ad929762be31f8c434edb97362c70b0c0de8bb79 Mon Sep 17 00:00:00 2001 From: Nuno Maduro Date: Tue, 5 Dec 2023 10:10:22 +0000 Subject: [PATCH 1/3] chore: updates tesitng --- .github/workflows/tests.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 40a99c4..6a24087 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -8,7 +8,7 @@ jobs: strategy: fail-fast: true matrix: - os: [ubuntu-latest] + os: [ubuntu-latest, macos-latest] php: [8.1, 8.2] symfony: [5.4.*, 6.3.*, 6.4.*, 7.0.*] dependency-version: [prefer-lowest, prefer-stable] From da74d650f5e38701e0a2b8b188f887cf4345a182 Mon Sep 17 00:00:00 2001 From: frithjof pfannstiel Date: Fri, 22 Dec 2023 12:44:52 +0100 Subject: [PATCH 2/3] add assistant beta header --- src/Resources/config/services.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Resources/config/services.php b/src/Resources/config/services.php index a4780b6..7dded7e 100644 --- a/src/Resources/config/services.php +++ b/src/Resources/config/services.php @@ -17,6 +17,7 @@ ->set(Factory::class) ->factory([OpenAI::class, 'factory']) ->call('withHttpClient', [service('openai.http_client')]) + ->call('withHttpHeader', ['OpenAI-Beta' , 'assistants=v1']) ->set(Client::class) ->factory([service(Factory::class), 'make']) From 4e03acc1e7f65f0412e0b7290dbb42a8628a6c54 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Tamarelle?= Date: Mon, 15 Jan 2024 18:18:44 +0100 Subject: [PATCH 3/3] Update src/Resources/config/services.php --- src/Resources/config/services.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Resources/config/services.php b/src/Resources/config/services.php index 7dded7e..42ad5b5 100644 --- a/src/Resources/config/services.php +++ b/src/Resources/config/services.php @@ -17,7 +17,7 @@ ->set(Factory::class) ->factory([OpenAI::class, 'factory']) ->call('withHttpClient', [service('openai.http_client')]) - ->call('withHttpHeader', ['OpenAI-Beta' , 'assistants=v1']) + ->call('withHttpHeader', ['OpenAI-Beta', 'assistants=v1']) ->set(Client::class) ->factory([service(Factory::class), 'make'])