OpenAIResource.WithApiKey
Method
type OpenAIResource interface { // ... omitted for brevity WithApiKey(apiKey ParameterResource) OpenAIResource}Signature
method
WithApiKey builderConfigures the API key for the OpenAI parent resource from a parameter.
WithApiKey(apiKey ParameterResource) OpenAIResourceParameters
apiKey ParameterResource Returns
OpenAIResource Returns a handle; failures surface later via Err().
Defined on
This method is defined on the following type: