providers

command
v0.12.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 18, 2026 License: MIT Imports: 9 Imported by: 0

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL