AiProvider enum

Which LLM HTTP API the package should use to validate answers.

Pass one of these values to the Formless constructor's provider argument. Each provider uses its own default model; override with the model argument.

Inheritance
Available extensions

Values

groq → const AiProvider

Groq inference API. Default model: meta-llama/llama-4-scout-17b-16e-instruct. Fast and free-tier friendly. Get a key at https://console.groq.com.

deepSeek → const AiProvider

DeepSeek API. Default model: deepseek-chat. Cost-effective with strong instruction-following. Get a key at https://platform.deepseek.com.

gemini → const AiProvider

Google Gemini API. Default model: gemini-3.1-flash-lite-preview. Get a key at https://aistudio.google.com.

openAi → const AiProvider

OpenAI API. Default model: gpt-4o-mini. Get a key at https://platform.openai.com.

Properties

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

Constants

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