together_ai_sdk library

Support for doing something awesome.

More dartdocs go here.

Classes

AuthenticationError
Represents an authentication error (HTTP 401).
BadRequest
Represents a bad request error (HTTP 403).
ConnectionTimeout
Represents a connection timeout error (HTTP 524).
EngineOverloaded
Represents an engine overloaded error (HTTP 503).
InvalidRequest
Represents an invalid request error (HTTP 500).
NotFound
Represents a not found error (HTTP 404).
RateLimitExceeded
Represents a rate limit exceeded error (HTTP 429).
ServerError
Represents a server error (HTTP 520).
Timeout
Represents a timeout error (HTTP 504).
TogetherAIError
This is a sealed class that represents an error that can occur when interacting with the Together AI API.
TogetherAISdk
TogetherAISdk provides access to the following methods.
UnknownServerError
Represents an unknown server error (HTTP 529).

Enums

ChatModel
ImageModel
These are the image models available for the Together AI API
LanguageModel
These are the language models available for the Together AI API, use these for text completion.

Functions

getTogetherAIError(String errorCode, String errorMessage) TogetherAIError
Returns a TogetherAIError instance based on the provided errorCode and errorMessage.