Skip to content

Commit def2904

Browse files
authored
fix: don't make requests for empty list of llm models (#842)
1 parent 9ae9ccd commit def2904

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/extension.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,10 @@ export async function activate(context: vscode.ExtensionContext) {
170170
}
171171
}
172172
}
173+
174+
if (modelWithLoc.size === 0) {
175+
return;
176+
}
173177

174178
const modelCardsInfo = await llmAnalysis(Array.from(modelWithLoc.keys()));
175179
if (!modelCardsInfo) {

0 commit comments

Comments
 (0)