You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/// If the SSE `event` property is not specified by the provider service, our parser defaults it to "message" which is not a valid model response type.
62
+
/// In this case we check the `data.type` property for a valid model response type.
63
+
if eventType =="message" || eventType.isEmpty,
64
+
let payloadEventType = finalEvent.getPayloadType(){
Copy file name to clipboardExpand all lines: Tests/OpenAITests/MockServerSentEvent.swift
+14Lines changed: 14 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -20,4 +20,18 @@ struct MockServerSentEvent {
20
20
staticfunc chatCompletionError()->Data{
21
21
"{\n\"error\": {\n\"message\": \"The model `o3-mini` does not exist or you do not have access to it.\",\n\"type\": \"invalid_request_error\",\n\"param\": null,\n\"code\": \"model_not_found\"\n }\n}\n".data(using:.utf8)!
0 commit comments