This commit is contained in:
Andrew Pareles 2025-01-15 18:23:33 -08:00
parent 471333ec16
commit 4e18dd4ac3
5 changed files with 7 additions and 7 deletions

View file

@ -88,7 +88,7 @@ export class LLMMessageService extends Disposable implements ILLMMessageService
sendLLMMessage(params: ServiceSendLLMMessageParams) {
const { onText, onFinalMessage, onError, ...proxyParams } = params;
const { featureName } = proxyParams
const { useProviderFor: featureName } = proxyParams
// end early if no provider
const modelSelection = this.voidSettingsService.state.modelSelectionOfFeature[featureName]

View file

@ -31,12 +31,12 @@ export type LLMMessage = {
}
export type ServiceSendLLMFeatureParams = {
featureName: 'Ctrl+K';
useProviderFor: 'Ctrl+K';
range: IRange;
} | {
featureName: 'Ctrl+L';
useProviderFor: 'Ctrl+L';
} | {
featureName: 'Autocomplete';
useProviderFor: 'Autocomplete';
range: IRange;
}

View file

@ -663,7 +663,7 @@ export class AutocompleteService extends Disposable implements IAutocompleteServ
newAutocompletion.status = 'error'
reject(message)
},
featureName: 'Autocomplete',
useProviderFor: 'Autocomplete',
range: { startLineNumber: position.lineNumber, startColumn: position.column, endLineNumber: position.lineNumber, endColumn: position.column },
})
newAutocompletion.requestId = requestId

View file

@ -217,7 +217,7 @@ class ChatThreadService extends Disposable implements IChatThreadService {
console.log('Void Chat Error:', error)
onDone(this.streamState[threadId]?.messageSoFar ?? '', error)
},
featureName: 'Ctrl+L',
useProviderFor: 'Ctrl+L',
})
if (llmCancelToken === null) return

View file

@ -1337,7 +1337,7 @@ class InlineDiffsService extends Disposable implements IInlineDiffsService {
const latestStreamInfo = { line: diffZone.startLine, addedSplitYet: false, col: 1, originalCodeStartLine: 1 }
streamRequestIdRef.current = this._llmMessageService.sendLLMMessage({
featureName,
useProviderFor: featureName,
logging: { loggingName: `startApplying - ${featureName}` },
messages,
onText: ({ newText, fullText }) => {