naturalGroove / laravel-filament-image-generator-field

A Laravel Filament plugin that generates images using AI
MIT License
8 stars 4 forks source link

require openai-php #2

Open rskonieczka opened 1 month ago

rskonieczka commented 1 month ago

Problem 1

naturalGroove commented 3 weeks ago

This error occurs due to a version conflict between the required OpenAI PHP client versions. First You should update composer packages:

composer update

Or You can try to update your OpenAI PHP client to match the required version. You can do this by running:

composer require openai-php/client:^0.8.5

naturalGroove commented 3 weeks ago

Let me know if you managed to solve the problem?

rskonieczka commented 1 week ago

Thanks for sending the solution. Unfortunately, some packages require a newer version of openai-php/client ^0.10. v. 0.8.5 you suggested is too outdated. I’m attaching the logs below.

./composer.json has been updated
Running composer update openai-php/client
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - Root composer.json requires openai-php/client ^0.8.5, found openai-php/client[v0.8.5, 0.8.x-dev] but these were not loaded, likely because it conflicts with another require.
  Problem 2
    - openai-php/laravel is locked to version v0.10.2 and an update of this package was not requested.
    - openai-php/laravel v0.10.2 requires openai-php/client ^0.10.2 -> found openai-php/client[v0.10.2, 0.10.x-dev] but it conflicts with your root composer.json require (^0.8.5).

Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions.
naturalGroove commented 1 week ago

Ok, I've upgraded the openai-client versions to support 0.9.x and 0.10.x