CreateEmbeddingsResponse - Go SDK

CreateEmbeddingsResponse type definition

The Go SDK and docs are currently in beta. Report issues on GitHub.

Supported Types

CreateEmbeddingsResponseBody

1createEmbeddingsResponse := operations.CreateCreateEmbeddingsResponseCreateEmbeddingsResponseBody(operations.CreateEmbeddingsResponseBody{/* values here */})

1createEmbeddingsResponse := operations.CreateCreateEmbeddingsResponseStr(string{/* values here */})

Union Discrimination

Use the Type field to determine which variant is active, then access the corresponding field:

1switch createEmbeddingsResponse.Type {
2 case operations.CreateEmbeddingsResponseTypeCreateEmbeddingsResponseBody:
3 // createEmbeddingsResponse.CreateEmbeddingsResponseBody is populated
4 case operations.CreateEmbeddingsResponseTypeStr:
5 // createEmbeddingsResponse.Str is populated
6}