open_responses_dart 0.1.1 copy "open_responses_dart: ^0.1.1" to clipboard
open_responses_dart: ^0.1.1 copied to clipboard

A Dart client library for the Open Responses API specification. Multi-provider, interoperable LLM interface for Flutter and Dart applications.

Changelog #

All notable changes to this project will be documented in this file.

The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.

0.1.1 #

  • Updated URL handling: Base URL now defaults to https://api.openai.com (host root), and the client automatically appends /v1/responses to the endpoint.
  • Made apiKey optional in Client and StreamingClient constructors to support local servers (e.g., LM Studio).
  • Improved support for custom base URLs by removing trailing slashes automatically.
  • Fixed TextFormatType serialization (snake_case).

0.1.0 - 2026-02-01 #

Added #

  • Initial release of the Dart client for Open Responses API

[Unreleased] #

  • Support for creating chat completions via OpenAI-compatible API
  • Streaming support with Server-Sent Events (SSE)
  • Function calling support with tools
  • Comprehensive type system for requests, responses, and events
  • Dot shorthand syntax examples (Dart 3.10+)

Features #

  • Client: Simple HTTP client for API interactions
  • StreamingClient: Real-time streaming with SSE
  • Types: Full type safety for all API entities
    • Input with support for text or items
    • Item types: MessageItem, FunctionCallItem, etc.
    • Content types: InputContent, OutputContent
    • Enums: MessageRole, ToolChoice, ImageDetail, etc.
  • Tools: Function tool creation with FunctionTool builder

Dependencies #

  • http: ^1.6.0 - HTTP client
  • json_annotation: ^4.10.0 - JSON serialization
  • freezed_annotation: ^3.1.0 - Immutable data classes
1
likes
140
points
21
downloads

Documentation

Documentation
API reference

Publisher

unverified uploader

Weekly Downloads

A Dart client library for the Open Responses API specification. Multi-provider, interoperable LLM interface for Flutter and Dart applications.

Repository (GitHub)
View/report issues

License

MIT (license)

Dependencies

build_runner, flutter_client_sse, freezed, freezed_annotation, http, json_annotation, json_serializable, mockito, test

More

Packages that depend on open_responses_dart