Skip to content

Chat Models

Forage supports multiple LLM providers. Select one with the model.kind property.

Available Providers

Name Description
azure-openai OpenAI models hosted on Microsoft Azure
openai OpenAI API-compatible models
ollama Locally-hosted models via Ollama (Llama, Mistral, etc.)
google-gemini Google Gemini models
anthropic Anthropic Claude models
bedrock Amazon Bedrock multi-model provider supporting Claude, Llama, Titan, Cohere, and Mistral
dashscope Alibaba Cloud Qwen models via DashScope
hugging-face Open-source models via HuggingFace Inference API
local-ai Self-hosted models via LocalAI (OpenAI-compatible)
mistral-ai Mistral AI models
watsonx-ai IBM Watsonx.ai models

Ollama

Locally-hosted models via Ollama.

forage.myAgent.agent.model.kind=ollama
forage.myAgent.agent.model.name=granite4:3b
forage.myAgent.agent.base.url=http://localhost:11434
Property Description Type Default Required
forage.ollama.base.url The base URL of the Ollama server String http://localhost:11434
forage.ollama.model.name The Ollama model to use String llama3.2
forage.ollama.temperature Temperature for response randomness (0.0-2.0) String
forage.ollama.num.ctx Context window size String
forage.ollama.timeout Request timeout duration in ISO-8601 format (e.g. PT120S for 120 seconds) String

Advanced

Property Description Type Default Required
forage.ollama.top.k Top-K sampling parameter String
forage.ollama.top.p Top-P (nucleus) sampling parameter (0.0-1.0) String
forage.ollama.min.p Minimum probability threshold (0.0-1.0) String
forage.ollama.log.requests Enable request logging String
forage.ollama.log.responses Enable response logging String

OpenAI

OpenAI API and compatible endpoints.

forage.myAgent.agent.model.kind=openai
forage.myAgent.agent.model.name=gpt-4o
forage.myAgent.agent.api.key=${OPENAI_API_KEY}
Property Description Type Default Required
forage.openai.model.name The specific OpenAI model to use String gpt-4o-mini Yes
forage.openai.base.url Custom base URL for OpenAI API String
forage.openai.temperature Temperature for response randomness (0.0-2.0) String

Security

Property Description Type Default Required
forage.openai.api.key OpenAI API key for authentication String Yes

Advanced

Property Description Type Default Required
forage.openai.max.tokens Maximum number of tokens to generate String
forage.openai.top.p Top-P (nucleus) sampling parameter (0.0-1.0) String
forage.openai.frequency.penalty Frequency penalty (-2.0 to 2.0) String
forage.openai.presence.penalty Presence penalty (-2.0 to 2.0) String
forage.openai.log.requests Enable request logging String
forage.openai.log.responses Enable response logging String
forage.openai.timeout Request timeout duration String
forage.openai.http1 Use HTTP/1.1 instead of HTTP/2 String

Google Gemini

Google's Gemini models.

forage.myAgent.agent.model.kind=google-gemini
forage.myAgent.agent.model.name=gemini-2.5-flash-lite
forage.myAgent.agent.api.key=${GOOGLE_API_KEY}
Property Description Type Default Required
forage.google.api.key Google AI API key for authentication password Yes
forage.google.model.name Google Gemini model name (e.g., gemini-pro, gemini-pro-vision, gemini-1.5-pro) string Yes
forage.google.temperature Temperature for response randomness (0.0-2.0) double

Advanced

Property Description Type Default Required
forage.google.timeout Request timeout in seconds String
forage.google.log.requests Enable request and response logging boolean
forage.google.max.output.tokens Maximum number of output tokens String
forage.google.top.p Top-p (nucleus sampling) parameter (0.0-1.0) double
forage.google.top.k Top-k sampling parameter String

Anthropic

Anthropic's Claude models.

forage.myAgent.agent.model.kind=anthropic
forage.myAgent.agent.model.name=claude-sonnet-4-20250514
forage.myAgent.agent.api.key=${ANTHROPIC_API_KEY}
Property Description Type Default Required
forage.anthropic.api.key Anthropic API key for authentication password Yes
forage.anthropic.model.name Claude model name (e.g., claude-sonnet-4-20250514, claude-haiku-4-5-20251001, claude-opus-4-20250115) string claude-sonnet-4-20250514
forage.anthropic.temperature Temperature for response generation (0.0-1.0): lower values are more deterministic, higher values are more creative double
forage.anthropic.max.tokens Maximum number of tokens in the model's response String

Advanced

Property Description Type Default Required
forage.anthropic.top.p Top-p (nucleus sampling) probability threshold (0.0-1.0) double
forage.anthropic.top.k Top-k sampling parameter: limits the model to consider only the top-k most probable tokens String
forage.anthropic.stop.sequences Comma-separated stop sequences that cause the model to stop generating further tokens string
forage.anthropic.timeout Request timeout in seconds String
forage.anthropic.max.retries Maximum number of retry attempts for failed requests String
forage.anthropic.log.requests.and.responses Enable logging of requests and responses (warning: may log sensitive data) boolean

Azure OpenAI

Azure-hosted OpenAI models.

forage.myAgent.agent.model.kind=azure-openai
forage.myAgent.agent.endpoint=https://my-resource.openai.azure.com
forage.myAgent.agent.deployment.name=my-deployment
forage.myAgent.agent.api.key=${AZURE_OPENAI_KEY}
Property Description Type Default Required
forage.azure.openai.api.key Azure OpenAI API key for authentication password Yes
forage.azure.openai.endpoint Azure OpenAI resource endpoint URL (e.g., https://your-resource.openai.azure.com/) String Yes
forage.azure.openai.deployment.name Azure OpenAI deployment name (e.g., gpt-35-turbo, gpt-4) String Yes
forage.azure.openai.service.version Azure OpenAI API service version (e.g., 2024-02-01) String
forage.azure.openai.temperature Temperature for response generation (0.0-2.0): lower values are more deterministic, higher values are more creative String
forage.azure.openai.max.tokens Maximum number of tokens in the model's response String

Advanced

Property Description Type Default Required
forage.azure.openai.top.p Top-p (nucleus sampling) probability threshold (0.0-1.0) String
forage.azure.openai.presence.penalty Presence penalty for discouraging new topic introduction (-2.0 to 2.0) String
forage.azure.openai.frequency.penalty Frequency penalty for discouraging token repetition (-2.0 to 2.0) String
forage.azure.openai.seed Seed for deterministic response generation (same seed + same input = similar output) String
forage.azure.openai.user User identifier for tracking and monitoring API usage String
forage.azure.openai.timeout Request timeout in seconds String
forage.azure.openai.max.retries Maximum number of retry attempts for failed requests String
forage.azure.openai.log.requests.and.responses Enable logging of requests and responses (warning: may log sensitive data) boolean

Amazon Bedrock

AWS Bedrock models.

forage.myAgent.agent.model.kind=bedrock
forage.myAgent.agent.model.name=anthropic.claude-v2
Property Description Type Default Required
forage.bedrock.region AWS region where Bedrock is available string us-east-1 Yes
forage.bedrock.model.id Bedrock model identifier (e.g., anthropic.claude-3-5-sonnet-20240620-v1:0) string
forage.bedrock.temperature Sampling temperature for response randomness (0.0-1.0) double Yes

Security

Property Description Type Default Required
forage.bedrock.access.key.id AWS access key ID (optional, uses default credential chain if not provided) String Yes
forage.bedrock.secret.access.key AWS secret access key (optional, uses default credential chain if not provided) String Yes
forage.bedrock.session.token AWS session token for temporary STS credentials (optional, used together with access key ID and secret access key) String Yes

Advanced

Property Description Type Default Required
forage.bedrock.max.tokens Maximum number of tokens to generate integer Yes
forage.bedrock.top.p Top-P (nucleus) sampling parameter (0.0-1.0) double Yes

WatsonX AI

IBM WatsonX AI models.

forage.myAgent.agent.model.kind=watsonx-ai
forage.myAgent.agent.model.name=ibm/granite-34b-code-instruct
forage.myAgent.agent.api.key=${WATSONX_API_KEY}
Property Description Type Default Required
forage.watsonxai.api.key IBM Cloud API key for authentication String Yes
forage.watsonxai.url The Watsonx.ai service URL (e.g., https://us-south.ml.cloud.ibm.com) String Yes
forage.watsonxai.project.id The Watsonx.ai project ID String Yes
forage.watsonxai.model.name The foundation model to use String llama-3-405b-instruct
forage.watsonxai.temperature Temperature for response generation (0.0-2.0) String

Advanced

Property Description Type Default Required
forage.watsonxai.max.new.tokens Maximum number of new tokens in response String
forage.watsonxai.top.p Top-p (nucleus sampling) parameter (0.0-1.0) String
forage.watsonxai.random.seed Random seed for reproducible results String
forage.watsonxai.stop.sequences Stop sequences for response generation (comma-separated) String
forage.watsonxai.log.requests.and.responses Enable request and response logging String

Mistral AI

forage.myAgent.agent.model.kind=mistral-ai
forage.myAgent.agent.model.name=mistral-large-latest
forage.myAgent.agent.api.key=${MISTRAL_API_KEY}
Property Description Type Default Required
forage.mistralai.api.key MistralAI API key for authentication password Yes
forage.mistralai.model.name The MistralAI model to use string mistral-large-latest
forage.mistralai.temperature Temperature for response generation (0.0-1.0) double

Advanced

Property Description Type Default Required
forage.mistralai.max.tokens Maximum number of tokens for model responses String
forage.mistralai.top.p Top-p (nucleus sampling) parameter (0.0-1.0) double
forage.mistralai.random.seed Random seed for reproducible results String
forage.mistralai.timeout Request timeout in seconds String
forage.mistralai.max.retries Maximum number of retry attempts String
forage.mistralai.log.requests.and.responses Enable request and response logging boolean

Hugging Face

forage.myAgent.agent.model.kind=hugging-face
forage.myAgent.agent.model.name=meta-llama/Llama-2-7b-chat-hf
forage.myAgent.agent.api.key=${HF_API_KEY}
Property Description Type Default Required
forage.huggingface.api.key HuggingFace API key for authentication password Yes
forage.huggingface.model.id The HuggingFace model ID to use (e.g., microsoft/DialoGPT-medium) string
forage.huggingface.temperature Temperature for response generation (0.0-2.0) double
forage.huggingface.max.new.tokens Maximum number of new tokens to generate integer

Advanced

Property Description Type Default Required
forage.huggingface.return.full.text Whether to return full text including input boolean
forage.huggingface.wait.for.model Whether to wait for the model to load if it's not ready boolean
forage.huggingface.timeout Request timeout in seconds integer

DashScope

Alibaba Cloud's DashScope models.

forage.myAgent.agent.model.kind=dashscope
forage.myAgent.agent.model.name=qwen-turbo
forage.myAgent.agent.api.key=${DASHSCOPE_API_KEY}
Property Description Type Default Required
forage.dashscope.api.key Alibaba Dashscope API key for authentication password Yes
forage.dashscope.model.name Qwen model name (e.g., qwen-turbo, qwen-plus, qwen-max, qwen-max-longcontext) string qwen-turbo
forage.dashscope.temperature Temperature for response generation (0.0-2.0): lower values are more deterministic, higher values are more creative double
forage.dashscope.max.tokens Maximum number of tokens in the model's response String

Advanced

Property Description Type Default Required
forage.dashscope.top.p Top-p (nucleus sampling) probability threshold (0.0-1.0) String
forage.dashscope.top.k Top-k sampling parameter: limits the model to consider only the top-k most probable tokens String
forage.dashscope.repetition.penalty Repetition penalty for discouraging token repetition (0.0-2.0) String
forage.dashscope.seed Seed for deterministic response generation (same seed + same input = similar output) String
forage.dashscope.enable.search Enable web search functionality to provide more up-to-date information boolean
forage.dashscope.timeout Request timeout in seconds String
forage.dashscope.max.retries Maximum number of retry attempts for failed requests String
forage.dashscope.log.requests.and.responses Enable logging of requests and responses (warning: may log sensitive data) boolean

LocalAI

Self-hosted models via LocalAI.

forage.myAgent.agent.model.kind=local-ai
forage.myAgent.agent.model.name=gpt-4
forage.myAgent.agent.base.url=http://localhost:8080
Property Description Type Default Required
forage.localai.base.url The LocalAI server endpoint URL String Yes
forage.localai.model.name The model to use (must be available on LocalAI server) String
forage.localai.temperature Temperature for response generation (0.0-2.0) String
forage.localai.user User identifier for tracking and monitoring String

Security

Property Description Type Default Required
forage.localai.api.key LocalAI API key for authentication (optional) password

Advanced

Property Description Type Default Required
forage.localai.max.tokens Maximum number of tokens for model responses String
forage.localai.top.p Top-p (nucleus sampling) probability threshold (0.0-1.0) String
forage.localai.presence.penalty Presence penalty for discouraging new topic introduction (-2.0 to 2.0) String
forage.localai.frequency.penalty Frequency penalty for discouraging token repetition (-2.0 to 2.0) String
forage.localai.seed Seed for deterministic response generation String
forage.localai.timeout Request timeout in seconds String
forage.localai.max.retries Maximum number of retry attempts for failed requests String
forage.localai.log.requests.and.responses Enable request and response logging boolean