Aspire.Hosting.OpenAI
Official
📦 Aspire.Hosting.OpenAIv17.0.0Import path
apphost/modules/aspire5Functions
2Types
2 types, 5 functions and 0 members
Handles
Functions
DistributedApplicationBuilder
OpenAIModelResource
OpenAIResource
method
AddModelbuilderAdds an OpenAI Model child to the provided OpenAI resource.
AddModel(name string, model string) OpenAIModelResourcemethod
WithApiKeybuilderConfigures the API key for the OpenAI parent resource from a parameter.
WithApiKey(apiKey ParameterResource) OpenAIResourcemethod
WithEndpointbuilderSets a custom OpenAI-compatible service endpoint URI on the parent resource.
WithEndpoint(endpoint string) OpenAIResource