openai_dart 0.4.5 copy "openai_dart: ^0.4.5" to clipboard
openai_dart: ^0.4.5 copied to clipboard

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.

📣 Check out the releases page or the #announcements channel on the LangChain.dart Discord server for more details.


0.4.5 #

  • FEAT: Support Predicted Outputs in openai_dart (#613). (315fe0fd)
  • FEAT: Support streaming audio responses in chat completions in openai_dart (#615). (6da756a8)
  • FEAT: Add gpt-4o-2024-11-20 to model catalog in openai_dart (#614). (bf333081)
  • FIX: Default store field to null in openai_dart to support Azure and Groq APIs (#608). (21332960)
  • FIX: Make first_id and last_id nullable in list endpoints in openai_dart (#607). (7cfc4ddf)
  • DOCS: Update OpenAI endpoints descriptions (#612). (10c66888)
  • REFACTOR: Add new lint rules and fix issues (#621). (60b10e00)
  • REFACTOR: Upgrade api clients generator version (#610). (0c8750e8)

0.4.4 #

  • FEAT: Add five new voice types to Chat Completions API in openai_dart (#594). (543f2977)

0.4.3 #

  • FEAT: Add support for audio in chat completions (#577). (0fb058cd)
  • FEAT: Add support for storing outputs for model distillation and metadata (#578). (c9b8bdf4)
  • FEAT: Support multi-modal moderations (#576). (45b9f423)
  • FIX: submitThreadToolOutputsToRunStream not returning any events (#574). (00803ac7)
  • DOCS: Add xAI to list of OpenAI-compatible APIs (#582). (017cb74f)
  • DOCS: Fix assistants API outdated documentation (#579). (624c4128)

0.4.2+2 #

0.4.2+1 #

0.4.2 #

  • FEAT: Add OpenAI o1-preview and o1-mini to model catalog (#555). (9ceb5ff9)
  • FEAT: Add support for maxCompletionTokens and reasoningTokens (#556). (37d75b61)
  • FEAT: Option to include file search results in assistants API (#543). (e916ad3c)

0.4.1 #

  • 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)

0.4.0 #

  • FEAT: Add support for disabling parallel tool calls (#492). (a91e0719)
  • FEAT: Add GPT-4o-mini to model catalog (#497). (faa23aee)
  • FEAT: Support chunking strategy in file_search tool (#496). (cfa974a9)
  • FEAT: Add support for overrides in the file search tool (#491). (89605638)
  • FEAT: Allow to customize OpenAI-Beta header (#502). (5fed8dbb)
  • FEAT: Add support for service tier (#494). (0838e4b9)

0.3.3+1 #

  • REFACTOR: Migrate conditional imports to js_interop (#453). (a6a78cfe)

0.3.3 #

  • 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)

0.3.2+1 #

  • FIX: Rename CreateRunRequestModel factories names (#429). (fd15793b)
  • FIX: Make quote nullable in MessageContentTextAnnotationsFileCitation (#428). (75b95645)

0.3.2 #

  • 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)

0.3.1 #

  • FEAT: Add support for stream_options in openai_dart (#405). (c15714ca)
  • FIX: RunStepDetailsToolCalls deserialization in Assistants API v2 (#404). (d76c6aba)

0.3.0 #

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)

0.2.2 #

  • FEAT: Add temperature, top_p and response format to Assistants API (#384). (1d18290f)

0.2.1 #

  • 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)

0.2.0 #

  • FEAT: Sync OpenAI API (#347). (f296eef6)
  • FIX: Have the == implementation use Object instead of dynamic (#334). (89f7b0b9)

0.1.7 #

0.1.6+1 #

0.1.6 #

  • 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)

0.1.5 #

  • 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)

0.1.4 #

0.1.3 #

0.1.2+1 #

  • FIX: Make ChatCompletionNamedToolChoice fields required (#259). (4c7d0436)

0.1.2 #

  • FEAT: Allow to update OpenAI key without having to recreate the wrapper (#246). (05739bd1)

0.1.1+2 #

0.1.1+1 #

  • FIX: Fetch requests with big payloads dropping connection (#226). (1e771098)

0.1.1 #

0.1.0+1 #

  • 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)

0.1.0 #

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)

0.0.2+2 #

  • REFACTOR: Migrate to generated client stream methods (#208). (9122f551)
  • FIX: Fix integer overflow when targeting web (#207). (eaf69f32)

0.0.2+1 #

  • REFACTOR: Rename ChatCompletionFunction to FunctionObject (#206). (0f06df3f)

0.0.2 #

  • 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)

0.0.1 #

  • 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)

0.0.1-dev.1 #

  • Bootstrap project
71
likes
160
points
8.88k
downloads

Publisher

verified publisherlangchaindart.dev

Weekly Downloads

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.

Homepage
Repository (GitHub)
View/report issues
Contributing

Topics

#ai #nlp #llms #gpt

Documentation

Documentation
API reference

License

MIT (license)

Dependencies

fetch_client, freezed_annotation, http, json_annotation, meta

More

Packages that depend on openai_dart