Skip to content

Commit 4ad16ca

Browse files
authored
Merge pull request #312 from FiveSheepCo/upstream/error-finish-reason
Add `error` finish reason
2 parents 8f863d4 + 86d9cb0 commit 4ad16ca

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Sources/OpenAI/Public/Models/ChatResult.swift

+1
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,7 @@ public struct ChatResult: Codable, Equatable, Sendable {
158158
case toolCalls = "tool_calls"
159159
case contentFilter = "content_filter"
160160
case functionCall = "function_call"
161+
case error
161162
}
162163
}
163164

0 commit comments

Comments
 (0)