We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4fe0b3c commit 5307cc7Copy full SHA for 5307cc7
webview-ui/src/components/chat/TaskHeader.tsx
@@ -122,13 +122,8 @@ const TaskHeader: React.FC<TaskHeaderProps> = ({
122
}, [task.text, windowWidth])
123
124
const isCostAvailable = useMemo(() => {
125
- return (
126
- apiConfiguration?.apiProvider !== "openai" &&
127
- apiConfiguration?.apiProvider !== "ollama" &&
128
- apiConfiguration?.apiProvider !== "lmstudio" &&
129
- apiConfiguration?.apiProvider !== "gemini"
130
- )
131
- }, [apiConfiguration?.apiProvider])
+ return totalCost > 0
+ }, [totalCost])
132
133
const shouldShowPromptCacheInfo = doesModelSupportPromptCache && apiConfiguration?.apiProvider !== "openrouter"
134
0 commit comments