client icon indicating copy to clipboard operation
client copied to clipboard

⚡️ OpenAI PHP is a supercharged community-maintained PHP API client that allows you to interact with OpenAI API.

Results 128 client issues
Sort by recently updated
recently updated
newest added

Hi, thank you for this library that is very easy to use. I created a Symfony bundle by copying things from the Laravel integration. You can find it here: https://github.com/GromNaN/openai-symfony...

[Symfony integration](https://github.com/openai-php/client/issues/64) would be complete if the `symfony/http-client` could be used. Instead of duplicating the `OpenAI::client()` factory, I think it is more simple to allow a custom instance of `Psr\Http\Client\ClientInterface`....

Since the open AI API is available in azure, is there a possibility to change to endpoint to azure. or will there be a plan to add this feature

Hope everyone is doing well. Currently the architecture of the component is such that the **src/Transporters/HttpTransporter.php** under its **requestObject** method, checks for presence of $response['error'], if there's none, it returns...

Brings [stream](https://beta.openai.com/docs/api-reference/completions/create#completions/create-stream) support to return partial progress with [server-sent events](https://developer.mozilla.org/en-US/docs/Web/API/Server-sent_events/Using_server-sent_events#event_stream_format). > ⚠️ requests with `best_of` option can't be streamed. You can think of it as the progress of AI typing....

The official Python library allows a timeout to be set on requests. It would be really helpful for production applications to be able to set up a timeout on requests...

Hello! I was attempting to replace some of the underlying concrete implementations of this project in order to send concurrent API requests to OpenAI to generate multiple completions at once,...

see: https://beta.openai.com/docs/api-reference/completions/create#completions/create-stream should we support stream response?

This solves #30. Please also see my comment here https://github.com/openai-php/client/issues/30#issuecomment-1367486440 `BaseUri::toString` will now check, if the given base URI starts with a protocol. If not, it adds `https://` as protocol...

Hi, what do you think about making the base URI configurable? At the moment, the base URI is hardcoded to `https://api.openai.com/v1`. Making it configurable would make end-to-end testing of applications...