Dart client for the OpenAI API. Supports chat (GPT-4o, o1, etc.), completions, embeddings, images (DALL·E 3), assistants (threads, vector stores, etc.), batch, fine-tuning, etc.
More...
📣 Check out the releases page or the #announcements channel on the LangChain.dart Discord server for more details.
- DOCS: Fix typo in openai_dart. (e7ddd558)
- FEAT: Add OpenAI o1-preview and o1-mini to model catalog (#555). (9ceb5ff9)
- FEAT: Add support for maxCompletionTokens and reasoningTokens in openai_dart (#556). (37d75b61)
- FEAT: Option to include file search results in assistants API (#543). (e916ad3c)
- FEAT: Add support for Structured Outputs (#525). (c7574077)
- FEAT: Add log probabilities for refusal tokens (#534). (8470a24c)
- FEAT: Add gpt-4o-2024-08-06 to model catalog (#522). (563200e0)
- FEAT: Add chatgpt-4o-latest to model catalog (#527). (ec82c760)
- FEAT: Add support for disabling parallel tool calls in openai_dart (#492). (a91e0719)
- FEAT: Add GPT-4o-mini to model catalog (#497). (faa23aee)
- FEAT: Support chunking strategy in file_search tool in openai_dart (#496). (cfa974a9)
- FEAT: Add support for overrides in the file search tool in openai_dart (#491). (89605638)
- FEAT: Allow to customize OpenAI-Beta header in openai_dart (#502). (5fed8dbb)
- FEAT: Add support for service tier in openai_dart (#494). (0838e4b9)
- REFACTOR: Migrate conditional imports to js_interop (#453). (a6a78cfe)
- FEAT: Support FastChat OpenAI-compatible API (#444). (ddaf1f69)
- FIX: Make vector store name optional in openai_dart (#436). (29a46c7f)
- FIX: Fix deserialization of sealed classes (#435). (7b9cf223)
- FIX: Rename CreateRunRequestModel factories names (#429). (fd15793b)
- FIX: Make quote nullable in MessageContentTextAnnotationsFileCitation (#428). (75b95645)
- FEAT: Add GPT-4o to model catalog (#420). (96214307)
- FEAT: Add support for different content types in Assistants API and other fixes (#412). (97acab45)
- FEAT: Add support for completions and embeddings in batch API in openai_dart (#425). (16fe4c68)
- FEAT: Add incomplete status to RunObject in openai_dart (#424). (71b116e6)
- FEAT: Add support for stream_options in openai_dart (#405). (c15714ca)
- FIX: RunStepDetailsToolCalls deserialization in Assistants API v2 (#404). (d76c6aba)
Note: This release has breaking changes.
If you are using the Assistants API v1, please refer to the OpenAI docs to see how to migrate to v2.
- BREAKING FEAT: Migrate OpenAI Assistants API to v2 and add support for vector stores (#402). (45de29a1)
- FEAT: Add support for
ChatCompletionToolChoiceMode.required
(#402). (45de29a1)
- FEAT: Add temperature, top_p and response format to Assistants API (#384). (1d18290f)
- FEAT: Support for Batch API (#383). (6b89f4a2)
- FEAT: Streaming support for Assistant API (#379). (6ef68196)
- FEAT: Option to specify tool choice in Assistant API (#382). (97d7977a)
- FEAT: JSON mode in Assistant API (#381). (a864dae3)
- FEAT: Max tokens and truncation strategy in Assistant API (#380). (7153167b)
- FEAT: Updated models catalog with GPT-4 Turbo with Vision (#378). (88537540)
- FEAT: Weights & Biases integration for fine-tuning and seed options (#377). (a5fff1bf)
- FEAT: Support for checkpoints in fine-tuning jobs (#376). (69f8e2f9)
- FEAT: Sync OpenAI API (#347). (f296eef6)
- FIX: Have the == implementation use Object instead of dynamic (#334). (89f7b0b9)
- FEAT: Add
gpt-4-0125-preview
and gpt-4-turbo-preview
in model catalog (#309). (f5a78867)
- FEAT: Add
text-embedding-3-small
and text-embedding-3-large
in model catalog (#310). (fda16024)
- FEAT: Add support for shortening embeddings (#311). (c725db0b)
- FEAT: Support Anyscale API in openai_dart client (#303). (e0a3651c)
- FEAT: Support Together AI API (#296). (ca6f23d5)
- FEAT: Support Together AI Embeddings API in openai_dart client (#301). (4a6e1045)
- FEAT: Add usage to Run/RunStep in openai_dart client (#302). (cc6538b5)
- FIX: Make
ChatCompletionNamedToolChoice
fields required (#259). (4c7d0436)
- FEAT: Allow to update OpenAI key without having to recreate the wrapper (#246). (05739bd1)
- FIX: Fetch requests with big payloads dropping connection (#226). (1e771098)
- FIX: Add missing
name
param in ChatCompletionMessage (#222). (6f186775)
- FIX: Remove dependency on io.HttpException (#221). (95369e4c)
- DOCS: Add
public_member_api_docs
lint rule and document missing APIs (#223). (52380433)
Note: This release has breaking changes.
Migration guides: new factories and multi-modal
- BREAKING FEAT: Add multi-modal support (#218). (14c8e7ef)
- BREAKING FEAT: Rename factory const to more meaningful names (#215). (7e4602fa)
- FEAT: Add
gpt-3.5-turbo-1106
chat model (#217). (73f37915)
- REFACTOR: Improve request error handling (#214). (4a9f3d33)
- REFACTOR: Migrate to generated client stream methods (#208). (9122f551)
- FIX: Fix integer overflow when targeting web (#207). (eaf69f32)
- REFACTOR: Rename
ChatCompletionFunction
to FunctionObject
(#206). (0f06df3f)
- FEAT: Support new models API functionality (#203). (33ebe746)
- FEAT: Support new images API functionality (#202). (fcf21daf)
- FEAT: Support new fine-tuning API functionality (#201). (f5f44ad8)
- FEAT: Support new embeddings API functionality (#200). (9b43d85b)
- FEAT: Support new completion API functionality (#199). (f12f6f57)
- FEAT: Support new chat completion API functionality (#198). (01820d69)
- FIX: Handle nullable function call fields when streaming (#191). (8f23cf16)
- FIX: Fix static analysis warning (#187). (3fe91570)
- FIX: Several fixes and improvements (#182). (115e8bef)
- FEAT: Support different embedding response formats (#180). (4f676e87)
- FEAT: Implement openai_dart, a Dart client for OpenAI API (#178). (fa5d032a)