infro 0.1.3 copy "infro: ^0.1.3" to clipboard
infro: ^0.1.3 copied to clipboard

The official Dart client for the INFRO API — one endpoint for text, image, video and audio models, with routing, fallbacks and estimated provider cost.

Changelog #

All three INFRO SDKs share one version line: a customer reading a changelog should not have to work out which of three independent version numbers applies to them.

0.1.3 #

  • Remove the last prepaid-era wording: a 402 budget_exceeded means a budget you set was reached, so raise it or wait for its period to reset; there is no balance to top up.
  • Document that responses name the provider and connection of yours that served, beside route. They were always on the wire; the docs said the opposite.
  • routing.policy is ignored by the gateway and is marked deprecated. It is still accepted, so existing callers keep working.
  • keys.retrieve() documents the fields GET /v1/key returns, and the example prints them instead of a balance field that does not exist.

0.1.2 #

  • Correct the runtime version reported in the SDK user agent and enforce the package version in tests.

0.1.1 #

  • Link the package metadata to its public GitHub repository and issue tracker.

0.1.0 #

First release.

  • chat.completions.create and createStream for text, streaming as a Stream that throws rather than completing quietly when the gateway closes without [DONE].
  • images.generate, video.create / retrieve / wait, audio.speech and audio.transcribe, each carrying usage.cost on the response.
  • models.list, models.retrieve and key.retrieve.
  • The documented error taxonomy as exception classes, so "should I retry this?" is a branch on a type rather than a substring match on a message.
  • Retries only on 408, 429, 502 and 503, always carrying the Idempotency-Key sent with the first attempt — except no_provider_connected, the one 503 a retry can never clear, which fails immediately so the advice in its message arrives without a backoff in front of it. A stream is never retried.
  • request() as an escape hatch for endpoints this client does not yet model.
1
likes
160
points
146
downloads

Documentation

Documentation
API reference

Publisher

verified publisherinfro.io

Weekly Downloads

The official Dart client for the INFRO API — one endpoint for text, image, video and audio models, with routing, fallbacks and estimated provider cost.

Homepage
Repository (GitHub)
View/report issues

Topics

#ai #llm #openai #api

License

MIT (license)

Dependencies

http

More

Packages that depend on infro