chore: format code

fix/cli-clean-exit-on-model-errors
GitHub Action 2025-11-12 15:43:30 +00:00
parent 2be8b2269f
commit cbffbcdd3d
1 changed files with 1 additions and 3 deletions

View File

@ -11,9 +11,7 @@ export function FormatError(input: unknown) {
const { providerID, modelID, suggestions } = input.data
return [
`Model not found: ${providerID}/${modelID}`,
...(Array.isArray(suggestions) && suggestions.length
? ["Did you mean: " + suggestions.join(", ")]
: []),
...(Array.isArray(suggestions) && suggestions.length ? ["Did you mean: " + suggestions.join(", ")] : []),
`Try: \`opencode models\` to list available models`,
`Or check your config (opencode.json) provider/model names`,
].join("\n")