You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/// Adds an Azure OpenAI resource to the application model.
19
21
/// </summary>
@@ -103,14 +105,46 @@ public static IResourceBuilder<AzureOpenAIResource> AddAzureOpenAI(this IDistrib
103
105
}
104
106
105
107
/// <summary>
106
-
/// Adds an Azure OpenAI Deployment resource to the application model. This resource requires an <see cref="AzureOpenAIResource"/> to be added to the application model.
108
+
/// Adds an Azure OpenAI Deployment to the <see cref="AzureOpenAIResource"/> resource. This resource requires an <see cref="AzureOpenAIResource"/> to be added to the application model.
/// Injects the environment variables from the source <see cref="AzureOpenAIResource" /> into the destination resource, using the source resource's name as the connection string name (if not overridden).
122
+
/// The format of the connection environment variable will be "ConnectionStrings__{sourceResourceName}={connectionString}".
123
+
/// Each deployment will be injected using the format "Aspire__Azure__AI__OpenAI__{sourceResourceName}__Models__{deploymentName}={modelName}".
/// <param name="builder">The resource where connection string will be injected.</param>
127
+
/// <param name="source">The resource from which to extract the connection string.</param>
128
+
/// <param name="resourceName">An override of the source resource's name for the connection string. The resulting connection string will be "ConnectionStrings__connectionName" if this is not null.</param>
129
+
/// <returns>A reference to the <see cref="IResourceBuilder{T}"/>.</returns>
/// Injects a connection string as an environment variable from the source resource into the destination resource, using the source resource's name as the connection string name (if not overridden).
326
-
/// The format of the environment variable will be "ConnectionStrings__{sourceResourceName}={connectionString}."
326
+
/// The format of the environment variable will be "ConnectionStrings__{sourceResourceName}={connectionString}".
327
327
/// <para>
328
328
/// Each resource defines the format of the connection string value. The
329
329
/// underlying connection string value can be retrieved using <see cref="IResourceWithConnectionString.GetConnectionStringAsync(CancellationToken)"/>.
@@ -359,7 +359,7 @@ public static IResourceBuilder<TDestination> WithReference<TDestination>(this IR
359
359
360
360
/// <summary>
361
361
/// Injects service discovery information as environment variables from the project resource into the destination resource, using the source resource's name as the service name.
362
-
/// Each endpoint defined on the project resource will be injected using the format "services__{sourceResourceName}__{endpointName}__{endpointIndex}={uriString}."
362
+
/// Each endpoint defined on the project resource will be injected using the format "services__{sourceResourceName}__{endpointName}__{endpointIndex}={uriString}".
/// <param name="deploymentName">Optionally specifies which model deployment to use. If not specified, a value will be taken from the connection string.</param>
26
23
/// <param name="configurePipeline">An optional method that can be used for customizing the <see cref="IChatClient"/> pipeline.</param>
27
24
/// <remarks>Reads the configuration from "Aspire.Azure.AI.OpenAI" section.</remarks>
/// <param name="serviceKey">The service key with which the <see cref="IChatClient"/> will be registered.</param>
42
-
/// <param name="deploymentName">Optionally specifies which model deployment to use. If not specified, a value will be taken from the connection string.</param>
43
41
/// <param name="configurePipeline">An optional method that can be used for customizing the <see cref="IChatClient"/> pipeline.</param>
44
42
/// <remarks>Reads the configuration from "Aspire.Azure.AI.OpenAI" section.</remarks>
thrownewInvalidOperationException($"An {nameof(IChatClient)} could not be configured. Ensure a '{DeploymentKey}' or '{ModelKey}' value is provided in 'ConnectionStrings:{connectionName}', or specify a '{DeploymentKey}' in the '{configurationSectionName}' configuration section, or specify a '{nameof(deploymentName)}' in the call to {nameof(AddChatClient)}.");
83
+
thrownewInvalidOperationException($"An {nameof(IChatClient)} could not be configured. Ensure the deployment name '{deploymentName}' was defined .");
0 commit comments