mirror of
https://github.com/anomalyco/opencode.git
synced 2026-08-07 22:43:19 +00:00
Apply PR #40845: feat(app): redesign non-modal settings
This commit is contained in:
commit
f7deeabdac
2 changed files with 594 additions and 760 deletions
|
|
@ -47,9 +47,15 @@ export const SettingsProvidersV2: Component<{
|
|||
}
|
||||
|
||||
const connected = createMemo(() => {
|
||||
return providers
|
||||
.connected()
|
||||
.filter((p) => p.id !== "opencode" || Object.values(p.models).find((m) => m.cost?.input))
|
||||
return providers.connected().filter(
|
||||
(provider) =>
|
||||
provider.id !== "opencode" ||
|
||||
Object.values(provider.models).some((model) => {
|
||||
if (typeof model !== "object" || model === null || !("cost" in model)) return false
|
||||
const cost = model.cost
|
||||
return typeof cost === "object" && cost !== null && "input" in cost
|
||||
}),
|
||||
)
|
||||
})
|
||||
|
||||
const popular = createMemo(() => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue