Guide
Overview
GoFlow supports multiple Large Language Model providers out of the box.
GoFlow provides a unified interface for working with various Large Language Models (LLMs). You can easily switch between providers or use multiple providers simultaneously within the same agent or workflow.
Supported Providers
| Provider | Package | Default Model | Streaming |
|---|---|---|---|
| OpenAI | pkg/llm/openai | gpt-4o | ✅ |
| Anthropic | pkg/llm/anthropic | claude-3-5-sonnet-20241022 | ✅ |
| Gemini | pkg/llm/gemini | gemini-1.5-flash | ✅ |
Configuration
Set your API keys before running your application. You can set these in your environment variables or in your .env file.
Quick Start
Initialize a provider and start using it immediately:
Using with Agents
Pass the initialized LLM to an agent:
