openai
openai copied to clipboard
Dart/Flutter SDK for ChatGPT and all OpenAI APIs (GPT, Dall-e..)
I noticed the request Exception below and went searching. As discussed in the openai community forum [here](https://community.openai.com/t/image-url-for-gpt-4o-api-giving-error-expected-an-object-but-got-a-string-instead/748188) The `image_url` should be an object and not a string. In the current...
The latest published version (dart_openai: 5.1.0) is incompatible with the API due to an invalid JSON payload for a chat completion message with content of type "image_url". It appears that...
fixed typo
OpenAI recently introduced Structured outputs in their API. This is done by passing the desired JSON schema in the "response_format" parameter as described here: https://openai.com/index/introducing-structured-outputs-in-the-api/ Since the JSON schema is...
There was a case where a deadlock occurred because a timeout was not assigned to postStream, so this has been fixed.
it's just a trivial fix of typo
Hi, I'm wondering why this potienital json decode be ignored: https://github.com/anasfik/openai/blob/650ffbf93961962fec1554ba817c07d9700e2002/lib/src/core/networking/client.dart#L390-L392 I'm using a Microsoft Azure provided openai services behand a cloudflare worker. when I misspelled the model name, I...
#### Description In the recent update to the `dart_openai` library (version 5.0.0), the `content` field in the request body has been changed from `String` to `List`. While this change aligns...
I use whisper-1 to convert voice to text with a 22mb mp3 file and get this error. Does anyone have any solution for this case, if possible it would be...