Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 7 additions & 3 deletions core/nextEdit/NextEditProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -461,9 +461,13 @@ export class NextEditProvider {
// prompts[1] extracts the user prompt from the system-user prompt pair.
// NOTE: Stream is currently set to false, but this should ideally be a per-model flag.
// Mercury Coder currently does not support streaming.
const msg: ChatMessage = await llm.chat([prompts[1]], token, {
stream: false,
});
const msg: ChatMessage = await llm.chat(
this.endpointType === "fineTuned" ? [prompts[1]] : prompts,
token,
{
stream: false,
},
);

if (typeof msg.content !== "string") {
return undefined;
Expand Down
Loading