fix: free model logic

This commit is contained in:
Adam 2025-12-11 15:24:26 -06:00
commit a0472c0312
No known key found for this signature in database
GPG key ID: 9CB48779AF150E75
2 changed files with 4 additions and 2 deletions

View file

@ -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}>