ChatRequestImageConfig - Go SDK

ChatRequestImageConfig type definition

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

Supported Types

1chatRequestImageConfig := components.CreateChatRequestImageConfigStr(string{/* values here */})

1chatRequestImageConfig := components.CreateChatRequestImageConfigNumber(float64{/* values here */})

1chatRequestImageConfig := components.CreateChatRequestImageConfigArrayOfAny([]any{/* values here */})

Union Discrimination

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

1switch chatRequestImageConfig.Type {
2 case components.ChatRequestImageConfigTypeStr:
3 // chatRequestImageConfig.Str is populated
4 case components.ChatRequestImageConfigTypeNumber:
5 // chatRequestImageConfig.Number is populated
6 case components.ChatRequestImageConfigTypeArrayOfAny:
7 // chatRequestImageConfig.ArrayOfAny is populated
8}