You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit eeaa38e
Browse filesBrowse the repository at this point in the historyBrowse files
fix(settings): name the model when CodeBuddy answers with an empty result
A mistyped or unavailable model ID makes CodeBuddy stream the reason only in
an assistant text block ("400 model [x] service info not found") and finish
with an empty result payload, so the connection test classified it as a
generic MISSING_RESULT and told the user to retry. Keep the last assistant
text and pass it to the failure classifier, accept the bracketed model form,
and have the connection test name the model it could not use.
Co-Authored-By: Claude Code <noreply@anthropic.com>
varassistantModelMissingRe=regexp.MustCompile("(?i)\\bmodel\\s+[`'\"]?[^\\s`'\"]*[`'\"]?\\s*(?:does not exist|not found|is not available)")
165
+
// CodeBuddy reports an unknown model as `400 model [id] service info not found`
166
+
// and OpenAI-compatible providers as `The model `x` does not exist ...`, so the
167
+
// pattern accepts a bracketed, quoted or bare ID plus the provider's wording.
168
+
varassistantModelMissingRe=regexp.MustCompile("(?i)\\bmodel\\s*[`'\"]?(?:\\[[^\\]]+\\]|[^\\s`'\"]*)[`'\"]?\\s*(?:does not exist|not found|is not available|service info not found)")
0 commit comments