OpenAIResource.withApiKey
Method
interface OpenAIResource { // ... omitted for brevity withApiKey(apiKey: ParameterResource): OpenAIResource;}Signature
method
withApiKey builder Configures the API key for the OpenAI resource.
withApiKey(apiKey: ParameterResource): OpenAIResourceParameters
apiKey ParameterResource Returns
OpenAIResource Defined on
This method is defined on the following type: