Skip to content
Open
Show file tree
Hide file tree
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
3 changes: 2 additions & 1 deletion Sources/AnyLanguageModel/LanguageModelSession.swift
Original file line number Diff line number Diff line change
Expand Up @@ -779,6 +779,7 @@ extension LanguageModelSession {
public struct Snapshot: Sendable where Content.PartiallyGenerated: Sendable {
public var content: Content.PartiallyGenerated
public var rawContent: GeneratedContent
var transcriptEntries: [Transcript.Entry] = []
}
}
}
Expand Down Expand Up @@ -851,7 +852,7 @@ extension LanguageModelSession.ResponseStream: AsyncSequence {
return LanguageModelSession.Response(
content: finalContent,
rawContent: last.rawContent,
transcriptEntries: []
transcriptEntries: ArraySlice(last.transcriptEntries)
)
}
}
Expand Down
Loading
Loading