Package bg.codexio.ai.openai.api.sdk.auth
-
Interface Summary Interface Description SdkAuth This interface provider an instance ofApiCredentials
It can have multiple implementations according to the way the api key is provided to the application
As easy for implementation it is, this library provides the following default implementation for immediate usage:FromDeveloperFromEnvironmentFromJsonAs this is aFunctionalInterfaceit can also be implemented as a lambda (supplier) in the notation of -
Class Summary Class Description FromDeveloper Use this for manually passing the credentials and still conforming theSdkAuthcontract.FromEnvironment When instantiated andFromEnvironment.credentials()is called, series of environment variables will be scanned to provide necessaryApiCredentials.FromJson When instantiated andFromJson.credentials()is called, already configured json file is scanned for credentials. -
Enum Summary Enum Description FromJson.AvailableKeys