You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am encountering an error "Unsupported operand types: string * int" when trying to use the OpenAI PHP Client to upload files and create assistants. The error occurs in the following scenarios:
When calling the uploadFileToOpenAI method and other methods like creating assistants etc
Steps To Reproduce
Steps To Reproduce
Set up the environment:
Ensure you have the OpenAI PHP Client package installed.
Set the OPENAI_API_KEY in the .env file.
Create a Laravel service class:
Call the methods:
OpenAI PHP Client Version
v0.10.1
PHP Version
8.2.12
Notes
The issue seems to stem from the file handling or request payload preparation within the OpenAI PHP Client.
I have verified that the API key is correctly set and that the file path is valid.
Any additional insights or troubleshooting steps would be greatly appreciated.
The text was updated successfully, but these errors were encountered:
Description
I am encountering an error "Unsupported operand types: string * int" when trying to use the OpenAI PHP Client to upload files and create assistants. The error occurs in the following scenarios:
When calling the uploadFileToOpenAI method and other methods like creating assistants etc
Steps To Reproduce
Steps To Reproduce
Set up the environment:
Ensure you have the OpenAI PHP Client package installed.
Set the OPENAI_API_KEY in the .env file.
Create a Laravel service class:
Call the methods:
OpenAI PHP Client Version
v0.10.1
PHP Version
8.2.12
Notes
The issue seems to stem from the file handling or request payload preparation within the OpenAI PHP Client.
I have verified that the API key is correctly set and that the file path is valid.
Any additional insights or troubleshooting steps would be greatly appreciated.
The text was updated successfully, but these errors were encountered: