Skip to content

Commit eda8517

Browse files
Merge pull request #400 from voideditor/model-selection
GPT 4.1 and Claude 3.7 Thinking with Tools
2 parents e77039e + 6ce37f7 commit eda8517

21 files changed

+1071
-920
lines changed

product.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"nameShort": "Void",
33
"nameLong": "Void",
4-
"voidVersion": "1.2.0",
4+
"voidVersion": "1.2.1",
55
"applicationName": "void",
66
"dataFolderName": ".void-editor",
77
"win32MutexName": "voideditor",

src/vs/workbench/contrib/void/browser/autocompleteService.ts

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ import { ILLMMessageService } from '../common/sendLLMMessageService.js';
2020
import { isWindows } from '../../../../base/common/platform.js';
2121
import { IVoidSettingsService } from '../common/voidSettingsService.js';
2222
import { FeatureName } from '../common/voidSettingsTypes.js';
23+
import { IConvertToLLMMessageService } from './convertToLLMMessageService.js';
2324
// import { IContextGatheringService } from './contextGatheringService.js';
2425

2526

@@ -791,18 +792,21 @@ export class AutocompleteService extends Disposable implements IAutocompleteServ
791792
const featureName: FeatureName = 'Autocomplete'
792793
const modelSelection = this._settingsService.state.modelSelectionOfFeature[featureName]
793794
const modelSelectionOptions = modelSelection ? this._settingsService.state.optionsOfModelSelection[featureName][modelSelection.providerName]?.[modelSelection.modelName] : undefined
794-
795+
const aiInstructions = this._settingsService.state.globalSettings.aiInstructions
795796

796797
// set parameters of `newAutocompletion` appropriately
797798
newAutocompletion.llmPromise = new Promise((resolve, reject) => {
798799

799800
const requestId = this._llmMessageService.sendLLMMessage({
800801
messagesType: 'FIMMessage',
801-
messages: {
802-
prefix: llmPrefix,
803-
suffix: llmSuffix,
804-
stopTokens: stopTokens,
805-
},
802+
messages: this._convertToLLMMessageService.prepareFIMMessage({
803+
messages: {
804+
prefix: llmPrefix,
805+
suffix: llmSuffix,
806+
stopTokens: stopTokens,
807+
},
808+
aiInstructions
809+
}),
806810
modelSelection,
807811
modelSelectionOptions,
808812
logging: { loggingName: 'Autocomplete' },
@@ -890,6 +894,7 @@ export class AutocompleteService extends Disposable implements IAutocompleteServ
890894
@IEditorService private readonly _editorService: IEditorService,
891895
@IModelService private readonly _modelService: IModelService,
892896
@IVoidSettingsService private readonly _settingsService: IVoidSettingsService,
897+
@IConvertToLLMMessageService private readonly _convertToLLMMessageService: IConvertToLLMMessageService
893898
// @IContextGatheringService private readonly _contextGatheringService: IContextGatheringService,
894899
) {
895900
super()

src/vs/workbench/contrib/void/browser/chatThreadService.ts

Lines changed: 67 additions & 98 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)