Capture provider policy in backend execution targets

This commit is contained in:
2026-11-22 18:13:17 +00:00
parent 6056f93e55
commit adc700f96e
14 changed files with 69 additions and 9 deletions

View File

@@ -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 {