We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2db5fd1 commit 3565c1eCopy full SHA for 3565c1e
1 file changed
Sources/AnyLanguageModel/Models/MLXLanguageModel.swift
@@ -189,14 +189,8 @@ import Foundation
189
190
let generateParameters = toGenerateParameters(options)
191
192
- var chat: [MLXLMCommon.Chat.Message] = []
193
-
194
- if let instructionSegments = extractInstructionSegments(from: session) {
195
- chat.append(convertSegmentsToMLXSystemMessage(instructionSegments))
196
- }
197
198
- let userSegments = extractPromptSegments(from: session, fallbackText: prompt.description)
199
- chat.append(convertSegmentsToMLXMessage(userSegments))
+ // Build chat history from full transcript
+ let chat = convertTranscriptToMLXChat(session: session, fallbackPrompt: prompt.description)
200
201
let userInput = MLXLMCommon.UserInput(
202
chat: chat,
0 commit comments