Capture provider policy in backend execution targets
This commit is contained in:
@@ -1,5 +1,13 @@
|
||||
package llm
|
||||
|
||||
// EffectiveProvider resolves an omitted provider to the generic conventions.
|
||||
func EffectiveProvider(provider string) string {
|
||||
if provider == "" {
|
||||
return "openai-compatible"
|
||||
}
|
||||
return provider
|
||||
}
|
||||
|
||||
// SupportedProvider reports whether a normalized provider selection is supported.
|
||||
// An empty selection uses the generic OpenAI-compatible conventions.
|
||||
func SupportedProvider(provider string) bool {
|
||||
|
||||
Reference in New Issue
Block a user