chore: format code
This commit is contained in:
parent
2be8b2269f
commit
cbffbcdd3d
1 changed files with 1 additions and 3 deletions
|
|
@ -11,9 +11,7 @@ export function FormatError(input: unknown) {
|
||||||
const { providerID, modelID, suggestions } = input.data
|
const { providerID, modelID, suggestions } = input.data
|
||||||
return [
|
return [
|
||||||
`Model not found: ${providerID}/${modelID}`,
|
`Model not found: ${providerID}/${modelID}`,
|
||||||
...(Array.isArray(suggestions) && suggestions.length
|
...(Array.isArray(suggestions) && suggestions.length ? ["Did you mean: " + suggestions.join(", ")] : []),
|
||||||
? ["Did you mean: " + suggestions.join(", ")]
|
|
||||||
: []),
|
|
||||||
`Try: \`opencode models\` to list available models`,
|
`Try: \`opencode models\` to list available models`,
|
||||||
`Or check your config (opencode.json) provider/model names`,
|
`Or check your config (opencode.json) provider/model names`,
|
||||||
].join("\n")
|
].join("\n")
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue