summaryrefslogtreecommitdiffhomepage
path: root/packages/desktop/src/components
diff options
context:
space:
mode:
authorAdam <[email protected]>2025-12-11 15:24:26 -0600
committerAdam <[email protected]>2025-12-11 15:24:32 -0600
commita0472c0312d758c6477f00723c387645badd1272 (patch)
treef02e593dc35245e904fdaf882d21455598bcc5bf /packages/desktop/src/components
parent0400024d02effc6100fb194f903159081710e9cb (diff)
downloadopencode-a0472c0312d758c6477f00723c387645badd1272.tar.gz
opencode-a0472c0312d758c6477f00723c387645badd1272.zip
fix: free model logic
Diffstat (limited to 'packages/desktop/src/components')
-rw-r--r--packages/desktop/src/components/prompt-input.tsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/desktop/src/components/prompt-input.tsx b/packages/desktop/src/components/prompt-input.tsx
index 2c153ecc3..70ee0a739 100644
--- a/packages/desktop/src/components/prompt-input.tsx
+++ b/packages/desktop/src/components/prompt-input.tsx
@@ -537,7 +537,7 @@ export const PromptInput: Component<PromptInputProps> = (props) => {
{(i) => (
<div class="w-full flex items-center gap-x-2.5">
<span>{i.name}</span>
- <Show when={!i.cost || i.cost?.input === 0}>
+ <Show when={i.provider.id === "opencode" && (!i.cost || i.cost?.input === 0)}>
<Tag>Free</Tag>
</Show>
<Show when={i.latest}>