ai_sdk_openai_compatible 1.2.0 copy "ai_sdk_openai_compatible: ^1.2.0" to clipboard
ai_sdk_openai_compatible: ^1.2.0 copied to clipboard

Shared OpenAI Chat Completions base for AI SDK Dart providers. Implements tool calling, multimodal content, structured output, and SSE streaming once, behind a small per-provider config.

Use this package as a library

Depend on it

Run this command:

With Dart:

 $ dart pub add ai_sdk_openai_compatible

With Flutter:

 $ flutter pub add ai_sdk_openai_compatible

This will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get):

dependencies:
  ai_sdk_openai_compatible: ^1.2.0

Alternatively, your editor might support dart pub get or flutter pub get. Check the docs for your editor to learn more.

Import it

Now in your Dart code, you can use:

import 'package:ai_sdk_openai_compatible/ai_sdk_openai_compatible.dart';
0
likes
140
points
90
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

Shared OpenAI Chat Completions base for AI SDK Dart providers. Implements tool calling, multimodal content, structured output, and SSE streaming once, behind a small per-provider config.

Repository (GitHub)
View/report issues

License

MIT (license)

Dependencies

ai_sdk_provider, dio

More

Packages that depend on ai_sdk_openai_compatible