Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added more generic exception message and summary #219

Merged
merged 1 commit into from
Aug 20, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion webapi/Extensions/SemanticKernelExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ private static void AddSemanticTextMemory(this IServiceCollection services)
case MemoryStoreOptions.MemoryStoreType.Postgres:
if (config.Postgres == null)
{
throw new InvalidOperationException("MemoryStore type is Cosmos and Cosmos configuration is null.");
throw new InvalidOperationException("MemoryStore type is Postgres and Postgres configuration is null.");
}

var dataSourceBuilder = new NpgsqlDataSourceBuilder(config.Postgres.ConnectionString);
Expand Down
4 changes: 2 additions & 2 deletions webapi/Options/MemoryStoreOptions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public enum MemoryStoreType
Chroma,

/// <summary>
/// Cosmos DB persistent memory store.
/// Postgres DB persistent memory store.
/// </summary>
Postgres,
}
Expand Down Expand Up @@ -64,7 +64,7 @@ public enum MemoryStoreType
public AzureCognitiveSearchOptions? AzureCognitiveSearch { get; set; }

/// <summary>
/// Gets or sets the configuration for the Cosmos memory store.
/// Gets or sets the configuration for the Postgres memory store.
/// </summary>
[RequiredOnPropertyValue(nameof(Type), MemoryStoreType.Postgres)]
public PostgresOptions? Postgres { get; set; }
Expand Down