Skip to content

Commit 7370100

Browse files
committed
Attempt to call fetchModel on other providers
1 parent dc3c8e4 commit 7370100

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/core/environment/getEnvironmentDetails.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -220,9 +220,9 @@ export async function getEnvironmentDetails(cline: Task, includeFileDetails: boo
220220

221221
// kilocode_change start
222222
// Be sure to fetch the model information before we need it.
223-
if (cline.api instanceof OpenRouterHandler || cline.api instanceof NativeOllamaHandler) {
223+
if (cline.api instanceof OpenRouterHandler || ("fetchModel" in cline.api && cline.api.fetchModel)) {
224224
try {
225-
await cline.api.fetchModel()
225+
await (cline.api.fetchModel as () => Promise<unknown>)()
226226
} catch (e) {
227227
TelemetryService.instance.captureException(e, { context: "getEnvironmentDetails" })
228228
await cline.say(

0 commit comments

Comments
 (0)