Skip to content

Commit

Permalink
Merge pull request #1835 from solliancenet/aa-cosmos-di-fix-082
Browse files Browse the repository at this point in the history
(0.8.2) Fix Cosmos DB Service dependencies
  • Loading branch information
ciprianjichici authored Oct 10, 2024
2 parents def156e + 4cc768c commit 033b3b8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/dotnet/ManagementAPI/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,8 @@ public static void Main(string[] args)
builder.AddAttachmentResourceProvider();
builder.AddAIModelResourceProvider();

builder.AddAzureCosmosDBService();

// Add authentication configuration.
var e2ETestEnvironmentValue = Environment.GetEnvironmentVariable(EnvironmentVariables.FoundationaLLM_Environment) ?? string.Empty;
var isE2ETestEnvironment = e2ETestEnvironmentValue.Equals(EnvironmentTypes.E2ETest, StringComparison.CurrentCultureIgnoreCase);
Expand Down
4 changes: 3 additions & 1 deletion src/dotnet/OrchestrationAPI/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ public static void Main(string[] args)
options.Select(AppConfigurationKeyFilters.FoundationaLLM_ResourceProviders_AIModel_Storage);
options.Select(AppConfigurationKeyFilters.FoundationaLLM_ResourceProviders_Prompt_Storage);
options.Select(AppConfigurationKeyFilters.FoundationaLLM_ResourceProviders_AzureOpenAI_Storage);
options.Select(AppConfigurationKeyFilters.FoundationaLLM_APIEndpoints_CoreAPI_Configuration_CosmosDB);
options.Select(AppConfigurationKeyFilters.FoundationaLLM_APIEndpoints_AzureEventGrid_Essentials);
options.Select(AppConfigurationKeyFilters.FoundationaLLM_APIEndpoints_AzureEventGrid_Configuration);
options.Select(AppConfigurationKeys.FoundationaLLM_Events_Profiles_OrchestrationAPI);
Expand Down Expand Up @@ -134,6 +134,8 @@ public static void Main(string[] args)
builder.AddLLMOrchestrationServices();
builder.AddOrchestrationService();

builder.AddAzureCosmosDBService();

builder.Services
.AddApiVersioning(options =>
{
Expand Down

0 comments on commit 033b3b8

Please sign in to comment.