chore: format code
parent
2be8b2269f
commit
cbffbcdd3d
|
|
@ -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")
|
||||
|
|
|
|||
Loading…
Reference in New Issue