File tree Expand file tree Collapse file tree 1 file changed +2
-8
lines changed
Sources/AnyLanguageModel/Models Expand file tree Collapse file tree 1 file changed +2
-8
lines changed Original file line number Diff line number Diff line change @@ -189,14 +189,8 @@ import Foundation
189189
190190 let generateParameters = toGenerateParameters ( options)
191191
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) )
192+ // Build chat history from full transcript
193+ let chat = convertTranscriptToMLXChat ( session: session, fallbackPrompt: prompt. description)
200194
201195 let userInput = MLXLMCommon . UserInput (
202196 chat: chat,
You can’t perform that action at this time.
0 commit comments