Use the Type field to determine which variant is active, then access the corresponding field:
switch sendChatCompletionRequestResponse.Type { case operations.SendChatCompletionRequestResponseTypeChatResult: // sendChatCompletionRequestResponse.ChatResult is populated case operations.SendChatCompletionRequestResponseTypeEventStream: // sendChatCompletionRequestResponse.EventStream is populated}
⌘I
Assistant
Responses are generated using AI and may contain mistakes.