Skip to content

Commit

Permalink
fix function
Browse files Browse the repository at this point in the history
  • Loading branch information
justschen committed Jan 17, 2025
1 parent 67f9df5 commit 3689da7
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions src/vs/workbench/contrib/chat/browser/chatInputPart.ts
Original file line number Diff line number Diff line change
Expand Up @@ -444,12 +444,9 @@ export class ChatInputPart extends Disposable implements IHistoryNavigationWidge
}
}

private supportsVision() {
if (this.currentLanguageModel) {
const model = this.languageModelsService.lookupLanguageModel(this.currentLanguageModel);
return model?.capabilities?.vision;
}
return false;
private supportsVision(): boolean {
const model = this.currentLanguageModel ? this.languageModelsService.lookupLanguageModel(this.currentLanguageModel) : undefined;
return model?.capabilities?.vision ?? false;
}

private setCurrentLanguageModelToDefault() {
Expand Down

0 comments on commit 3689da7

Please sign in to comment.