We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a25edaf commit 87d7c8aCopy full SHA for 87d7c8a
1 file changed
src/extension/prompts/node/panel/toolCalling.tsx
@@ -692,6 +692,10 @@ class PrimitiveToolResult<T extends IPrimitiveToolResultProps> extends PromptEle
692
}
693
694
protected async onImage(part: LanguageModelDataPart, _imageIndex?: number) {
695
+ if (!this.endpoint.supportsVision) {
696
+ return '[Image content is not available because vision is not supported by the current model or is disabled by your organization.]';
697
+ }
698
+
699
const githubToken = (await this.authService.getGitHubSession('any', { silent: true }))?.accessToken;
700
const uploadsEnabled = this.configurationService && this.experimentationService
701
? this.configurationService.getExperimentBasedConfig(ConfigKey.EnableChatImageUpload, this.experimentationService)
0 commit comments