| package providers |
| |
| import ( |
| _ "github.com/iomodo/staff/llm/fake" // Register Fake provider for testing |
| _ "github.com/iomodo/staff/llm/openai" // Register OpenAI provider |
| ) |
| |
| // RegisterAll registers all available LLM providers |
| func RegisterAll() { |
| // Import all provider packages to trigger their init() functions |
| // This ensures all providers are registered when this package is imported |
| _ = "import all providers" |
| } |
| |
| // EnsureRegistered ensures all providers are registered |
| // This function can be called from anywhere to ensure providers are available |
| func EnsureRegistered() { |
| // The blank imports below will trigger the init() functions |
| // which register the providers with the LLM factory |
| } |