ai_bridge_openai 0.1.0 copy "ai_bridge_openai: ^0.1.0" to clipboard
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

0
likes
150
points
54
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

OpenAI provider implementation for Flutter AI Bridge — GPT-4o, GPT-3.5, embeddings, Whisper STT, and TTS support.

Repository (GitHub)
View/report issues

License

MIT (license)

Dependencies

ai_bridge_core, http

More

Packages that depend on ai_bridge_openai