Use the Type field to determine which variant is active, then access the corresponding field:
switch createEmbeddingsResponse.Type { case operations.CreateEmbeddingsResponseTypeCreateEmbeddingsResponseBody: // createEmbeddingsResponse.CreateEmbeddingsResponseBody is populated case operations.CreateEmbeddingsResponseTypeStr: // createEmbeddingsResponse.Str is populated}
⌘I
Assistant
Responses are generated using AI and may contain mistakes.