Compatible with PHP versions 7.4? -> error #29
-
Hi I read that "Compatible with PHP versions 7.2 → 8.1¶" but when I try : composer require tectalic/openai I get the below error, requiring php 8?? What am I doing wrong ( running on debian 11 , php 7.2 )? ..../composer.json has been updated Problem 1 You can also try re-running composer require with an explicit version constraint, e.g. "composer require tectalic/openai:*" to figure out if any version is installable, or "composer require tectalic/openai:^2.1" if you know which you need. Installation failed, reverting ./composer.json and ./composer.lock to their original content. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hi @philippehenri , It appears you are having trouble installing the Tectalic OpenAI PHP SDK with Composer due to PHP version compatibility issues. According to your error log, your current PHP version is 7.4.33, compatible with the Tectalic OpenAI PHP SDK. However, it seems like there might be confusion between two different packages. Please try to install Here's what you can do:
If you continue to have issues, you might want to consider updating your PHP version to meet the requirements of all your dependencies. Best, Csaba |
Beta Was this translation helpful? Give feedback.
Hi @philippehenri ,
It appears you are having trouble installing the Tectalic OpenAI PHP SDK with Composer due to PHP version compatibility issues. According to your error log, your current PHP version is 7.4.33, compatible with the Tectalic OpenAI PHP SDK.
However, it seems like there might be confusion between two different packages.
Please try to install
tectalic/openai
, which should be compatible with your PHP version.Here's what you can do:
composer clear-cache
to clear your composer cache.openai-php/client
is not listed in yourcomposer.json
file; if it is, remove it.composer update
to ensure all your existing dependencies are up to date.c…