openai-php / client

⚡️ OpenAI PHP is a supercharged community-maintained PHP API client that allows you to interact with OpenAI API.
MIT License
4.57k stars 466 forks source link

[Bug]: composer update 0.8.0 error #272

Closed ZhangKoven closed 7 months ago

ZhangKoven commented 7 months ago

Description

when i need to update openai-php/client to version 0.8.0,composer give me an error Root composer.json requires openai-php/client 0.8.0, found openai-php/client[dev-fix-fine-tuning-job-response-hyperparameters-nEpochs-can-be-string, ..., dev-add-assistant-api, v0.1.0, ..., 0.8.x-dev] but it does not match the constraint.

Steps To Reproduce

composer.json i set version 0.8.0 when i set version ^0.8.0,it run success.but the version is 0.8.0.beta.3

OpenAI PHP Client Version

v0.8.0

PHP Version

8.1.17

Notes

No response

gehrisandro commented 7 months ago

Hi @ZhangKoven

I am not able to reproduce the problem.

If the problem still persist, could you please provide your composer.json file?

ZhangKoven commented 7 months ago

"openai-php/client":"0.8.0" when i run composer openai-php/client update _[root@localhost Wuliangshen-2C-Api-Hyperf]# 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

Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions._ "openai-php/client":"^0.8.0" when i run composer openai-php/client update [root@localhost Wuliangshen-2C-Api-Hyperf]# composer update openai-php/client Loading composer repositories with package information Updating dependencies Lock file operations: 0 installs, 1 update, 0 removals

ZhangKoven commented 7 months ago

this is my composer.json composer.json

gehrisandro commented 7 months ago

I've used your composer.json file and it installed the correct version:

Installing openai-php/client (v0.8.0): Extracting archive

ZhangKoven commented 7 months ago

Unbelievable,let me try anain on my test server

ZhangKoven commented 7 months ago

i try it on my test server,it run success. but my vmware still run error

ZhangKoven commented 7 months ago

emmm, this question is my mistake. my composer source is aliyun i forgot it now, my vmware run success.