Documentation
¶
Overview ¶
Command providers constructs an agent with Gemini plus the six OpenAI-compatible targets (OpenAI, OpenCode Zen, xAI, Mistral, Qwen, z.ai) and routes one prompt by "<provider>/<model>" ref. Each provider is registered only when its API key is in the environment, so the program compiles and runs with any subset of keys.
Usage:
MODEL=xai/grok-3-mini XAI_API_KEY=… go run ./examples/providers GEMINI_API_KEY=… go run ./examples/providers # defaults to gemini/gemini-2.5-flash
Click to show internal directories.
Click to hide internal directories.