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

Fatal error: Cannot declare class OpenAI, because the name is already in use in E:\Xampp_8.2\htdocs\ia\vendor\openai-php\client\src\OpenAI.php on line 8 [Bug]: #378

Open
neutronixx opened this issue Apr 18, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@neutronixx
Copy link

Description

Installing and testing the repo I get this error: Fatal error: Cannot declare class OpenAI, because the name is already in use in E:\Xampp_8.2\htdocs\ia\vendor\openai-php\client\src\OpenAI.php on line 8

Steps To Reproduce

using the example code on home page i get this error

OpenAI PHP Client Version

v0.8.5

PHP Version

8.2

Notes

No response

@neutronixx neutronixx added the bug Something isn't working label Apr 18, 2024
@neutronixx neutronixx changed the title Fatal error: Cannot declare class OpenAI, because the name is already in use in E:\Xampp_8.2\htdocs\youtubeIA\vendor\openai-php\client\src\OpenAI.php on line 8 [Bug]: Fatal error: Cannot declare class OpenAI, because the name is already in use in E:\Xampp_8.2\htdocs\ia\vendor\openai-php\client\src\OpenAI.php on line 8 [Bug]: Apr 18, 2024
@NilsCJ
Copy link

NilsCJ commented Apr 21, 2024

I have the same issue, and I couldn't find the answer yet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants