| Staff Ceo | d27c43b | 2025-07-26 13:07:10 +0400 | [diff] [blame] | 1 | package providers |
| 2 | |
| 3 | import ( |
| 4 | _ "github.com/iomodo/staff/llm/openai" // Register OpenAI provider |
| 5 | ) |
| 6 | |
| 7 | // RegisterAll registers all available LLM providers |
| 8 | func RegisterAll() { |
| 9 | // Import all provider packages to trigger their init() functions |
| 10 | // This ensures all providers are registered when this package is imported |
| 11 | _ = "import all providers" |
| 12 | } |
| 13 | |
| 14 | // EnsureRegistered ensures all providers are registered |
| 15 | // This function can be called from anywhere to ensure providers are available |
| 16 | func EnsureRegistered() { |
| 17 | // The blank imports below will trigger the init() functions |
| 18 | // which register the providers with the LLM factory |
| 19 | } |