Skip to main content

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

OpenRouter client for dart projects

0.1.1 #

  • Adds openRouterJsonDecoder, fusing DropLeadingWhitespaceConverter, utf8.decoder, and json.decoder for OpenRouter streamed response streams.

0.1.0 #

  • Updates monolib_dart dependency constraint to ^0.1.0.
  • Comprehensive documentation harmonization across streaming, JSON, and timeout utilities with zero analyzer or Dartdoc warnings.
  • Privatizes internal state and error handling in DropLeadingWhitespaceConverter and Utf8StreamStringSink.

0.0.2 #

  • Adds OnFuture extension with timeoutAsStream to turn a future into a stream that closes without emitting on timeout.
  • Adds OnStream extension with timeoutAndClose to close a stream on timeout instead of emitting a TimeoutException.

0.0.1 #

  • Initial package setup.
  • Adds DropLeadingWhitespaceConverter that strips leading ASCII whitespace bytes from a byte stream, with an optional onError callback.
  • Adds Utf8StreamStringSink, a StringSink that UTF-8 encodes written values into an EventSink<List<int>>, with an optional onError callback.
  • Adds OnFluentJson extension with assertNoTopLevelError to throw when json has a top level error element.
0
likes
140
points
887
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

OpenRouter client for dart projects

Repository (GitHub)
View/report issues

License

BSD-3-Clause (license)

Dependencies

monolib_dart

More

Packages that depend on monolib_openrouter