From 97a115797261ea4ac8b567036e5c2dbcee9c2b3a Mon Sep 17 00:00:00 2001 From: Connor Tumbleson Date: Sun, 4 May 2025 19:34:58 -0400 Subject: [PATCH 1/5] docs: add release notes for 0.11 and 0.12 (#150) --- CHANGELOG.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 64cd014..32a8063 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,21 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/) and this project adheres to [Semantic Versioning](http://semver.org/). +## v0.12.0 (2025-05-04) +### Added +- Add facade for `fineTuning` ([#125](https://github.com/openai-php/laravel/pull/125)) +- Make base url configurable ([#144](https://github.com/openai-php/laravel/pull/144)) + +### Changed +- Changed underlying `openai/client` package version from 0.11.0 to 0.12.0 + +### Removed +- Removed support for PHP 8.1 + +## v0.11.0 (2025-02-24) +### Added +- Add support for Laravel 12 ([#137](https://github.com/openai-php/laravel/pull/137)) + ## v0.10.1 (2024-06-06) ### Changed - Changed underlying `openai/client` package version from 0.9.1 to v0.10.1 From 1b3a9a64ab8cdb16a0c3b15b7d8352fd333b62bf Mon Sep 17 00:00:00 2001 From: Connor Tumbleson Date: Sun, 4 May 2025 19:37:44 -0400 Subject: [PATCH 2/5] docs: update readme for php8.2 requirement (#151) --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 8e5143c..f68de3e 100644 --- a/README.md +++ b/README.md @@ -18,7 +18,7 @@ ## Get Started -> **Requires [PHP 8.1+](https://php.net/releases/)** +> **Requires [PHP 8.2+](https://www.php.net/releases/)** First, install OpenAI via the [Composer](https://getcomposer.org/) package manager: From 92b2412fdf42c85245e8137ad82158ca647394bd Mon Sep 17 00:00:00 2001 From: Connor Tumbleson Date: Wed, 14 May 2025 13:27:18 -0400 Subject: [PATCH 3/5] build: restore Laravel 11 support (#152) * build: restore Laravel 11 support * test: assert on L11 also in suite --- .github/workflows/tests.yml | 2 +- composer.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index bd48e7c..7ab8996 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -10,7 +10,7 @@ jobs: matrix: os: [ubuntu-latest] php: [8.2, 8.3, 8.4] - laravel: [12] + laravel: [11, 12] pest: [3, 4] dependency-version: [prefer-lowest, prefer-stable] exclude: diff --git a/composer.json b/composer.json index 5c1a174..4660d1b 100644 --- a/composer.json +++ b/composer.json @@ -12,7 +12,7 @@ "require": { "php": "^8.2.0", "guzzlehttp/guzzle": "^7.9.3", - "laravel/framework": "^12.12", + "laravel/framework": "^11.29|^12.12", "openai-php/client": "^0.12.0" }, "require-dev": { From fd959b415f7544c864fa03d789d496b0015596f3 Mon Sep 17 00:00:00 2001 From: Connor Tumbleson Date: Wed, 14 May 2025 17:52:39 -0400 Subject: [PATCH 4/5] feat: add Responses API to Facade + bump openai-php/client version (#147) * feat: add Responses API to Facade * chore: uses 0.13 of the client --- composer.json | 2 +- src/Facades/OpenAI.php | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 4660d1b..0a47652 100644 --- a/composer.json +++ b/composer.json @@ -13,7 +13,7 @@ "php": "^8.2.0", "guzzlehttp/guzzle": "^7.9.3", "laravel/framework": "^11.29|^12.12", - "openai-php/client": "^0.12.0" + "openai-php/client": "^0.13.0" }, "require-dev": { "laravel/pint": "^1.22.0", diff --git a/src/Facades/OpenAI.php b/src/Facades/OpenAI.php index 7ad1b02..94c69a4 100644 --- a/src/Facades/OpenAI.php +++ b/src/Facades/OpenAI.php @@ -23,6 +23,7 @@ * @method static \OpenAI\Resources\Images images() * @method static \OpenAI\Resources\Models models() * @method static \OpenAI\Resources\Moderations moderations() + * @method static \OpenAI\Resources\Responses responses() * @method static \OpenAI\Resources\Threads threads() * @method static \OpenAI\Resources\VectorStores vectorStores() */ From a06af65a4a5cacceea9778d2228c73e72de0a9e2 Mon Sep 17 00:00:00 2001 From: Connor Tumbleson Date: Wed, 14 May 2025 18:07:36 -0400 Subject: [PATCH 5/5] release: v0.13.0 (#153) --- CHANGELOG.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 32a8063..cd1c04c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,14 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/) and this project adheres to [Semantic Versioning](http://semver.org/). +## v0.13.0 (2025-05-14) +### Added +- Add facade for `responses` ([#147](https://github.com/openai-php/laravel/pull/147)) + +### Changed +- Changed underlying `openai/client` package version from 0.12.0 to 0.13.0 +- Restored Laravel 11 support. + ## v0.12.0 (2025-05-04) ### Added - Add facade for `fineTuning` ([#125](https://github.com/openai-php/laravel/pull/125))