Skip to content

Commit a0d6a4b

Browse files
removing user hint when refreshing models (#7710)
1 parent ab0644d commit a0d6a4b

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

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

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,6 @@ export const Requesty = ({
3636
}: RequestyProps) => {
3737
const { t } = useAppTranslation()
3838

39-
const [didRefetch, setDidRefetch] = useState<boolean>()
40-
4139
const [requestyEndpointSelected, setRequestyEndpointSelected] = useState(!!apiConfiguration.requestyBaseUrl)
4240

4341
// This ensures that the "Use custom URL" checkbox is hidden when the user deletes the URL.
@@ -131,18 +129,12 @@ export const Requesty = ({
131129
onClick={() => {
132130
vscode.postMessage({ type: "flushRouterModels", text: "requesty" })
133131
refetchRouterModels()
134-
setDidRefetch(true)
135132
}}>
136133
<div className="flex items-center gap-2">
137134
<span className="codicon codicon-refresh" />
138135
{t("settings:providers.refreshModels.label")}
139136
</div>
140137
</Button>
141-
{didRefetch && (
142-
<div className="flex items-center text-vscode-errorForeground">
143-
{t("settings:providers.refreshModels.hint")}
144-
</div>
145-
)}
146138
<ModelPicker
147139
apiConfiguration={apiConfiguration}
148140
setApiConfigurationField={setApiConfigurationField}

0 commit comments

Comments
 (0)