(binary?: string | null)
| 24 | } |
| 25 | |
| 26 | export function getAvailableModels(binary?: string | null): string[] { |
| 27 | const output = runOpenCode(["models"], binary); |
| 28 | if (output === null) return []; |
| 29 | return output |
| 30 | .split("\n") |
| 31 | .map((l) => l.trim()) |
| 32 | .filter(Boolean); |
| 33 | } |
no test coverage detected