Documentation ¶
Overview ¶
Package authentication provides helpful authentication-related functions.
Index ¶
Constants ¶
View Source
const ( AuthHeaderKey = "Authorization" AuthHeaderPrefix = "Bearer " OrgHeaderKey = "OpenAI-Organization" )
Variables ¶
This section is empty.
Functions ¶
func APIKey ¶
func APIKey() string
APIKey returns the API key set by calling SetAPIKey. It is required for this to be set.
func DefaultOrganizationID ¶
func DefaultOrganizationID() string
DefaultOrganizationID returns the default organization ID set by SetDefaultOrganizationID. It is not required for this to be set.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.