mirror of
https://github.com/Kilo-Org/kilocode.git
synced 2026-10-24 01:24:18 +08:00
fix(vscode): use parseAutocompleteResponse util in HoleFiller.getFromChat
This commit is contained in:
@@ -184,8 +184,7 @@ Return the COMPLETION tags`
|
||||
const usageInfo = await model.generateResponse(systemPrompt, userPrompt, onChunk)
|
||||
|
||||
// Extract just the text from the response - prefix/suffix are handled by the caller
|
||||
const completionMatch = response.match(/<COMPLETION>([\s\S]*?)<\/COMPLETION>/i)
|
||||
const suggestionText = completionMatch ? (completionMatch[1] || "").replace(/<\/?COMPLETION>/gi, "") : ""
|
||||
const { text: suggestionText } = _parseAutocompleteResponse(response, "", "")
|
||||
|
||||
const fillInAtCursorSuggestion = processSuggestion(suggestionText)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user