We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents b7cd129 + b8f2f74 commit ea9597fCopy full SHA for ea9597f
Core/Sources/CodeCompletionService/API/OpenAIService.swift
@@ -170,7 +170,7 @@ extension OpenAIService {
170
ChatCompletionsStreamDataChunk.self,
171
from: text.data(using: .utf8) ?? Data()
172
)
173
- return .init(chunk: chunk, done: chunk.choices?.first?.delta?.content != nil)
+ return .init(chunk: chunk, done: chunk.choices?.first?.finish_reason != nil)
174
} catch {
175
print(error)
176
throw error
0 commit comments