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

Function WithAdminAPIKey

option/requestoption.go:280–285  ·  view source on GitHub ↗

WithAdminAPIKey returns a RequestOption that sets the client setting "admin_api_key".

(value string)

Source from the content-addressed store, hash-verified

278
279// WithAdminAPIKey returns a RequestOption that sets the client setting "admin_api_key".
280func WithAdminAPIKey(value string) RequestOption {
281 return requestconfig.RequestOptionFunc(func(r *requestconfig.RequestConfig) error {
282 r.SetAdminAPIKey(value)
283 return nil
284 })
285}
286
287// WithOrganization returns a RequestOption that sets the client setting "organization".
288func WithOrganization(value string) RequestOption {

Calls 2

RequestOptionFuncFuncType · 0.92
SetAdminAPIKeyMethod · 0.80

Used in the wild real call sites across dependent graphs

searching dependent graphs…