Skip to content

Commit 32d9247

Browse files
committed
Bugfix: litellm models are now flushed before refetching
1 parent 3bfe2a3 commit 32d9247

File tree

1 file changed

+1
-0
lines changed
  • webview-ui/src/components/settings/providers

1 file changed

+1
-0
lines changed

webview-ui/src/components/settings/providers/LiteLLM.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ export const LiteLLM = ({ apiConfiguration, setApiConfigurationField }: LiteLLMP
7878
setRefreshError(t("settings:providers.refreshModels.missingConfig"))
7979
return
8080
}
81+
vscode.postMessage({ type: "flushRouterModels", text: "litellm" })
8182
vscode.postMessage({ type: "requestRouterModels", values: { litellmApiKey: key, litellmBaseUrl: url } })
8283
}, [apiConfiguration, setRefreshStatus, setRefreshError, t])
8384

0 commit comments

Comments
 (0)