We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 33f4b04 commit ca98d1bCopy full SHA for ca98d1b
Tool/Sources/OpenAIService/ChatGPTService.swift
@@ -274,7 +274,7 @@ extension ChatGPTService {
274
do {
275
let (trunks, cancel) = try await api()
276
cancelTask = cancel
277
- let proposedId = UUID().uuidString
+ let proposedId = UUID().uuidString + String(Date().timeIntervalSince1970)
278
for try await trunk in trunks {
279
guard let delta = trunk.choices?.first?.delta else { continue }
280
@@ -290,7 +290,7 @@ extension ChatGPTService {
290
}
291
292
await memory.streamMessage(
293
- id: trunk.id ?? proposedId,
+ id: proposedId,
294
role: delta.role,
295
content: delta.content,
296
functionCall: functionCall
0 commit comments