AiProviderKind enum

Which wire protocol the configured endpoint speaks.

Inheritance
Available extensions

Values

openai → const AiProviderKind

Anything exposing POST {base-url}/chat/completions — OpenAI, OpenRouter, Groq, Together, DeepSeek, a local Ollama, and most gateways.

anthropic → const AiProviderKind

Anthropic's Messages API (POST {base-url}/v1/messages).

Properties

apiKeyEnvironmentVariable String
Environment variable consulted for the API key.
no setter
defaultBaseUrl String
Endpoint used when the configuration does not specify one.
no setter
defaultModel String
Model used when the configuration does not specify one.
no setter
hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
name String

Available on Enum, provided by the EnumName extension

The name of the enum value.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

parse(String? value) AiProviderKind
Parses the provider: key.

Constants

values → const List<AiProviderKind>
A constant List of the values in this enum, in order of their declaration.