Skip to content
Docs Try Aspire

OpenAIResource.withApiKey

Method
📦 Aspire.Hosting.OpenAI v13.2.0-preview.1.26159.1
interface OpenAIResource {
// ... omitted for brevity
withApiKey(apiKey: ParameterResource): OpenAIResource;
}

Signature

method withApiKey builder
Configures the API key for the OpenAI resource.
withApiKey(apiKey: ParameterResource): OpenAIResource
apiKey ParameterResource
OpenAIResource

Defined on

This method is defined on the following type: