feat: use new ui bubbletea
This commit is contained in:
@@ -163,10 +163,15 @@ func ValidateModelLanguage(providerName, modelID, langCode string) error {
|
||||
docsHint = fmt.Sprintf(" See %s for full list.", model.DocsURL)
|
||||
}
|
||||
|
||||
langLabel := LanguageLabel(langCode)
|
||||
if langLabel == "" {
|
||||
langLabel = fmt.Sprintf("language '%s'", langCode)
|
||||
}
|
||||
|
||||
return fmt.Errorf(
|
||||
"model %s does not support language '%s'.%s Supported: %s%s",
|
||||
"model %s does not support %s.%s Supported: %s%s",
|
||||
model.Name,
|
||||
langCode,
|
||||
langLabel,
|
||||
docsHint,
|
||||
strings.Join(supported, ", "),
|
||||
suffix,
|
||||
|
||||
Reference in New Issue
Block a user