Skip to content

Commit b003088

Browse files
committed
Don't fetch Requesty models on startup, only when opening settings
1 parent eeb73c3 commit b003088

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

src/core/webview/webviewMessageHandler.ts

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -152,20 +152,6 @@ export const webviewMessageHandler = async (provider: ClineProvider, message: We
152152
}
153153
})
154154

155-
getRequestyModels().then(async (requestyModels) => {
156-
if (Object.keys(requestyModels).length > 0) {
157-
await provider.writeModelsToCache(GlobalFileNames.requestyModels, requestyModels)
158-
await provider.postMessageToWebview({ type: "requestyModels", requestyModels })
159-
160-
const { apiConfiguration } = await provider.getState()
161-
162-
if (apiConfiguration.requestyModelId) {
163-
await updateGlobalState("requestyModelInfo", requestyModels[apiConfiguration.requestyModelId])
164-
await provider.postStateToWebview()
165-
}
166-
}
167-
})
168-
169155
provider.providerSettingsManager
170156
.listConfig()
171157
.then(async (listApiConfig) => {

0 commit comments

Comments
 (0)