Add backend provider and cost configuration
This commit is contained in:
12
internal/llm/provider.go
Normal file
12
internal/llm/provider.go
Normal file
@@ -0,0 +1,12 @@
|
||||
package llm
|
||||
|
||||
// SupportedProvider reports whether a normalized provider selection is supported.
|
||||
// An empty selection uses the generic OpenAI-compatible conventions.
|
||||
func SupportedProvider(provider string) bool {
|
||||
switch provider {
|
||||
case "", "openai-compatible", "openrouter", "vllm":
|
||||
return true
|
||||
default:
|
||||
return false
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user