> ## Documentation Index
> Fetch the complete documentation index at: https://openrouter-d02e98a0-mintlify-7021d5f4.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# BaseInputsUnion - Go SDK

> BaseInputsUnion type definition

<Warning>
  The Go SDK and docs are currently in beta.
  Report issues on [GitHub](https://github.com/OpenRouterTeam/go-sdk/issues).
</Warning>

## Supported Types

###

```go lines theme={null}
baseInputsUnion := components.CreateBaseInputsUnionStr(string{/* values here */})
```

###

```go lines theme={null}
baseInputsUnion := components.CreateBaseInputsUnionArrayOfBaseInputsUnion1([]components.BaseInputsUnion1{/* values here */})
```

###

```go lines theme={null}
baseInputsUnion := components.CreateBaseInputsUnionAny(any{/* values here */})
```

## Union Discrimination

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

```go lines theme={null}
switch baseInputsUnion.Type {
	case components.BaseInputsUnionTypeStr:
		// baseInputsUnion.Str is populated
	case components.BaseInputsUnionTypeArrayOfBaseInputsUnion1:
		// baseInputsUnion.ArrayOfBaseInputsUnion1 is populated
	case components.BaseInputsUnionTypeAny:
		// baseInputsUnion.Any is populated
}
```
