fix: free model logic
This commit is contained in:
parent
0400024d02
commit
a0472c0312
2 changed files with 4 additions and 2 deletions
|
|
@ -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}>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue