Package bg.codexio.ai.openai.api.sdk.auth
package bg.codexio.ai.openai.api.sdk.auth
-
ClassDescriptionUse this for manually passing the credentials and still conforming the
SdkAuthcontract.When instantiated andFromEnvironment.credentials()is called, series of environment variables will be scanned to provide necessaryApiCredentials.When instantiated andFromJson.credentials()is called, already configured json file is scanned for credentials.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