diff --git a/src/vs/workbench/contrib/void/common/sendLLMMessageService.ts b/src/vs/workbench/contrib/void/common/sendLLMMessageService.ts index 8004df64..fd13cac2 100644 --- a/src/vs/workbench/contrib/void/common/sendLLMMessageService.ts +++ b/src/vs/workbench/contrib/void/common/sendLLMMessageService.ts @@ -216,7 +216,7 @@ if (!isWeb) { @IVoidSettingsService private readonly voidSettingsService: IVoidSettingsService, ) { super(); } - sendLLMMessage(params: ServiceSendLLMMessageParams): string | null { + sendLLMMessage = (params: ServiceSendLLMMessageParams): string | null => { const { onText, onFinalMessage, onError, modelSelection } = params; if (modelSelection === null) { onError({ message: `Please add a provider in Void's Settings.`, fullError: null }); @@ -296,16 +296,16 @@ if (!isWeb) { return requestId; } - abort(requestId: string) { + abort = (requestId: string) => { this._abortControllers.get(requestId)?.abort(); this._abortControllers.delete(requestId); } - ollamaList(params: ServiceModelListParams) { + ollamaList = (params: ServiceModelListParams) => { params.onError({ error: 'Ollama not available in web mode' }); } - openAICompatibleList(params: ServiceModelListParams) { + openAICompatibleList = (params: ServiceModelListParams) => { const { settingsOfProvider } = this.voidSettingsService.state; const providerSettings = settingsOfProvider[params.providerName]; const apiKey = (providerSettings as any).apiKey as string | undefined;