openai
openai copied to clipboard
Dart/Flutter SDK for ChatGPT and all OpenAI APIs (GPT, Dall-e..)
this is sample format from Openai Docs messages=[ { "role": "user", "content": [ {"type": "text", "text": "What’s in this image?"}, { "type": "image_url", "image_url": { "url": "https://placehold.co/600x400", }, }, ],...
Currently, the createSpeech function returns a File object. This implementation is not optimal for web environments and can be improved in terms of performance. It would be beneficial to add...
I have e build failure with the following errors: ```../../../../AppData/Local/Pub/Cache/hosted/pub.dev/dart_openai-5.1.0/lib/src/core/networking/client.dart:548:5: Error: Type 'Uint8List' not found. Uint8List? fileData, ^^^^^^^^^ ../../../../AppData/Local/Pub/Cache/hosted/pub.dev/dart_openai-5.1.0/lib/src/core/networking/client.dart:548:5: Error: 'Uint8List' isn't a type. Uint8List? fileData, ^^^^^^^^^ ../../../../AppData/Local/Pub/Cache/hosted/pub.dev/dart_openai-5.1.0/lib/src/core/networking/client.dart:563:5: Error: 'MultipartFile'...
When we use text to speech model: model: "tts-1"; it is returning .mpeg file, and i cannot listen it on app. it should return mp3, so that i can listen...
Added the ability to receive token usage based on this object in the OpenAI documentation: https://platform.openai.com/docs/api-reference/chat/streaming Added an optional parameter called `streamOptions` to the `createStream ` interface which passes the...
It looks like the key is a global setting via a static class setter `OpenAI.apiKey = 'foo'` Is there any way to create multiple OpenAI clients using different API keys?
For how long does the blob files last and is there some way to cache prompt for the same user?
As the [OpenAI API ref](https://platform.openai.com/docs/api-reference/chat/create), the body of `/chat/completions` can be: ```json { "model": "gpt-4o", "messages": [ { "role": "system", "content": "You are a helpful assistant." }, { "role": "user",...
This modifies the speech API to allow getting the bytes directly to play. This will allow platforms like web which cannot write files to play the audio, and will allow...