wip(desktop): progress

This commit is contained in:
Adam 2025-12-10 07:46:10 -06:00
parent f20d6e8555
commit 804ad5897f
No known key found for this signature in database
GPG key ID: 9CB48779AF150E75
3 changed files with 20 additions and 9 deletions

View file

@ -461,7 +461,8 @@ export const PromptInput: Component<PromptInputProps> = (props) => {
items={local.model.list()}
current={local.model.current()}
filterKeys={["provider.name", "name", "id"]}
groupBy={(x) => (local.model.recent().includes(x) ? "Recent" : x.provider.name)}
// groupBy={(x) => (local.model.recent().includes(x) ? "Recent" : x.provider.name)}
groupBy={(x) => x.provider.name}
sortGroupsBy={(a, b) => {
const order = ["opencode", "anthropic", "github-copilot", "openai", "google", "openrouter", "vercel"]
if (a.category === "Recent" && b.category !== "Recent") return -1