API reference
API reference
Select your platform
No SDKs available
No versions available

LlamaApiProvider Class

Properties

Indicates whether this provider prepares and sends image inputs for supported multimodal models.
Disable for pure-text models to reduce request overhead and validation checks.See IChatTask and your model's capabilities on the provider dashboard.
override InferenceType DefaultSupportedTypes[Get]
Unique identifier for this provider type (e.g., "OpenAI", "LlamaApi").
Used to store and retrieve credentials from the central CredentialStorage.
When true, this provider asset uses its own API key instead of the central storage.

Fields

float temperature[Get]
float topP[Get]
float repetitionPenalty[Get]
int maxCompletionTokens[Get]

Member Functions

Sends a chat request to Llama-API and extracts the assistant text, handling vision inputs when enabled.
Applies safe defaults for temperature and max tokens unless overridden.See IChatTask. API docs: https://llama.developer.meta.com/docs/overview/
Parameters
req
User message and optional images; validated against provider capabilities.
stream
Optional partial output callback; final text is still returned.
ct
Cancellation token for image prep and HTTP.
Returns
ChatResponse with assistant text and provider metadata.