ai_bridge_openai 0.1.0
ai_bridge_openai: ^0.1.0 copied to clipboard
OpenAI provider implementation for Flutter AI Bridge — GPT-4o, GPT-3.5, embeddings, Whisper STT, and TTS support.
ai_bridge_openai #
OpenAI provider for the ai_bridge_core framework — supports GPT-4o, GPT-4o-mini, Whisper (STT), TTS, DALL·E, and embeddings.
Features #
- Full OpenAI Chat Completions with streaming
- Tool/Function calling with automatic JSON parsing
- Image, audio, and document attachments
- Whisper speech-to-text and text-to-speech
- Token usage and cost tracking
Usage #
import 'package:ai_bridge_openai/ai_bridge_openai.dart';
final provider = OpenAIProvider(
config: AIConfig(apiKey: 'sk-...', model: 'gpt-4o'),
);
final response = await provider.complete([AIMessage.user('Hello!')]);
License #
MIT