MCPcopy
hub / github.com/openai/openai-go / asAny

Method asAny

vectorstorefilebatch.go:315–324  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

313}
314
315func (u *VectorStoreFileBatchNewParamsAttributeUnion) asAny() any {
316 if !param.IsOmitted(u.OfString) {
317 return &u.OfString.Value
318 } else if !param.IsOmitted(u.OfFloat) {
319 return &u.OfFloat.Value
320 } else if !param.IsOmitted(u.OfBool) {
321 return &u.OfBool.Value
322 }
323 return nil
324}
325
326// The property FileID is required.
327type VectorStoreFileBatchNewParamsFile struct {

Callers

nothing calls this directly

Calls 1

IsOmittedFunction · 0.92

Tested by

no test coverage detected