LLM Configuration
Configure AI providers for workflows
Configure OpenAI or Anthropic as your LLM provider to enable AI features in workflows.
Supported Providers
Section titled “Supported Providers”| Provider | Models |
|---|---|
| OpenAI | GPT-4o, GPT-4, GPT-3.5 Turbo |
| Anthropic | Claude 3.5 Sonnet, Claude Opus 4.5 |
Configure LLM Provider
Section titled “Configure LLM Provider”-
Navigate to Settings > AI Configuration
-
Select your provider (OpenAI or Anthropic)
-
Enter your API key
-
Click Test Connection to verify and fetch available models
-
Save the configuration
Embedding Configuration
Section titled “Embedding Configuration”For knowledge base / RAG features, configure embeddings:
-
In Settings > AI Configuration, scroll to Embeddings
-
Choose to use the same provider as LLM or configure separately
-
For OpenAI, embeddings use
text-embedding-3-small(1536 dimensions)
Usage in Workflows
Section titled “Usage in Workflows”Once configured, use AI in your workflows:
from bifrost import ai
@workflowasync def summarize_ticket(description: str): response = await ai.complete(f"Summarize this ticket: {description}") return {"summary": response.content}Model Overrides
Section titled “Model Overrides”Override the default model per-request:
response = await ai.complete( "Complex analysis task", model="gpt-4o" # or "claude-3-5-sonnet-latest")Usage Tracking
Section titled “Usage Tracking”Bifrost tracks all AI usage:
- Input/output tokens per call
- Cost calculation based on configured pricing
- Aggregation by workflow, conversation, and organization
View usage reports in Settings > Usage Reports.
Pricing Configuration
Section titled “Pricing Configuration”Configure per-model pricing in Settings > AI Pricing:
| Field | Description |
|---|---|
| Provider | OpenAI or Anthropic |
| Model | Model display name |
| Input Price | Cost per 1M input tokens |
| Output Price | Cost per 1M output tokens |
Next Steps
Section titled “Next Steps”- Using AI in Workflows - Completions and streaming
- Knowledge Bases - RAG with vector search