Comments (4)
Yes please, upvoting for that! Better error handling would be much appreciated!
from client.
Just to be clear, I have already done the needed changes in the codes on my local machine and the above test passes nicely.
I have achieved this with minimum changes necessary, though one may suggest bigger and more fundamental changes to the structure of the whole component, I found it not needed at presence.
Plus, I stopped using this component in favor of using the native Symfony Httpclient instead of this nice component, due to its entangled use of Guzzle.
from client.
Hi @ali-m2020
Thank you for input. But I can't see what the benefit of not throwing an exception should be, because in my opinion all the 4 things you mentioned should be possible with the current implementation.
Furthermore, not throwing an exception and returning a valid response object with a new "error" attribute would require an additional check after every request to ensure the returned response has no error.
With the current implementation this check is not required as the developer can be sure, that every response received is valid and no error has occurred.
If I misunderstand your request or there is a concrete error which you are not able to handle properly, please let us know.
@kamilbaranek Why did you upvote for this feature? What change would you expect?
from client.
closed due to inactivity
from client.
Related Issues (20)
- [Bug]: composer update 0.8.0 error HOT 7
- Get the ID of an assistant if we create it from the Open AI website HOT 2
- Obtain token consumption with the Assistants API? HOT 1
- [Bug]: Audio Speech for TTS with requestStream HOT 2
- Object binding HOT 1
- [Bug]: error OpenAI\Exceptions\UnserializableResponse HOT 8
- [Bug]: Expected type 'OpenAI\Contracts\TransporterContract'. Found 'OpenAI\Testing\ClientFake' HOT 1
- Add Auto function execution HOT 5
- [Bug]: Rate Limits not being returned HOT 2
- [Bug]: when i update openai-php,there is no funcion speechStream HOT 1
- [Bug]: GPT-4-Vision-Preview Warning - Undefined array key "finish_reason" in .../Responses/Chat/CreateResponseChoice.php on line 24. HOT 1
- [Bug]: when i update openai-php/client to v0.8.0, the function 'speechStream' doesn't existγ HOT 2
- Add Chat completion HOT 2
- [Bug]: Idle timeout reached for "https://api.openai.com/v1/chat/completions" HOT 6
- [Bug]: Metadata cannot be obtained properly when using Azure AI HOT 2
- Request Headers Meta information for 'x-request-id' HOT 2
- [Bug]: system_fingerprint is always null when using CreateResponse.fake HOT 1
- [Bug]: transcribe 3 times and did not succeed HOT 4
- [Bug]: Delete Thread Message Endpoint is now Admin-Only (assistants/threads API) HOT 1
- Error completions createStreamed : gpt-3.5-turbo-1106 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from client.