open_responses_dart 0.1.1
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/responsesto the endpoint. - Made
apiKeyoptional inClientandStreamingClientconstructors to support local servers (e.g., LM Studio). - Improved support for custom base URLs by removing trailing slashes automatically.
- Fixed
TextFormatTypeserialization (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
Inputwith support for text or itemsItemtypes:MessageItem,FunctionCallItem, etc.- Content types:
InputContent,OutputContent - Enums:
MessageRole,ToolChoice,ImageDetail, etc.
- Tools: Function tool creation with
FunctionToolbuilder
Dependencies #
http: ^1.6.0- HTTP clientjson_annotation: ^4.10.0- JSON serializationfreezed_annotation: ^3.1.0- Immutable data classes