From 6c70a13d8d7c2f9a0faab0d311871e1b886778e1 Mon Sep 17 00:00:00 2001 From: Adeniji Adekunle James Date: Fri, 4 Jul 2025 09:19:38 +0100 Subject: [PATCH 1/2] Moves model to 4o-mini as it is cheaper and typically better than 3.5 (#29) --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 8434328..3d6e4d3 100644 --- a/README.md +++ b/README.md @@ -46,7 +46,7 @@ Finally, you may use the `openai` service to access the OpenAI API: ```php $result = $container->get('openai')->completions()->create([ - 'model' => 'gpt-3.5-turbo-instruct', + 'model' => 'gpt-4o-mini', 'prompt' => 'PHP is', ]); From 8b548efd712b48cdc8e7f88442bf1099e99c1c5c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrgen?= Date: Tue, 12 Aug 2025 11:26:55 +0200 Subject: [PATCH 2/2] Bump openai-php/client to 0.15 (#30) --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 8a72cd7..2cb1e96 100644 --- a/composer.json +++ b/composer.json @@ -17,7 +17,7 @@ "require": { "php": "^8.2.0", "nyholm/psr7": "^1.8.2", - "openai-php/client": "^0.13.0", + "openai-php/client": "^0.15.0", "psr/http-client": "^1.0.3", "psr/http-factory": "^1.1.0", "symfony/config": "^5.4|^6.3|^7.1.1",