Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

require openai-php #2

Open
rskonieczka opened this issue Oct 2, 2024 · 4 comments
Open

require openai-php #2

rskonieczka opened this issue Oct 2, 2024 · 4 comments

Comments

@rskonieczka
Copy link

Problem 1
- naturalgroove/laravel-filament-image-generator-field[dev-master, 1.0, ..., 1.0.2] require openai-php/client ^0.8.5 -> found openai-php/client[v0.8.5, 0.8.x-dev] but the package is fixed to v0.10.1 (lock file version) by a partial update and that version does not match. Make sure you list it as an argument for the update command.
- Root composer.json requires naturalgroove/laravel-filament-image-generator-field * -> satisfiable by naturalgroove/laravel-filament-image-generator-field[dev-master, 1.0, 1.0.1, 1.0.2, 9999999-dev].

@naturalGroove
Copy link
Owner

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
Copy link
Owner

Let me know if you managed to solve the problem?

@rskonieczka
Copy link
Author

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
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants