mirror of
https://github.com/marcominerva/SqlDatabaseVectorSearch.git
synced 2026-08-04 09:48:57 +00:00
Refactor models, update usage tracking, and clean citations
- Enabled additional C# code style suggestions in .editorconfig. - Removed citation rendering and extraction from Ask.razor. - Deleted Citation, ChatResponse, and TokenUsage models and references. - Updated TokenUsageResponse to use UsageDetails from Microsoft.Extensions.AI. - Refactored Response model: removed citations, added ConversationId, and adopted new token usage structure. - Updated HybridCacheSessionStoreService with new cache key format and DeleteSessionAsync method. - Refactored VectorSearchService to remove AppSettings dependency, update method signatures, and use UsageDetails for token tracking. - Updated NuGet package references in SqlDatabaseVectorSearch.csproj.
This commit is contained in:
@@ -124,6 +124,7 @@ csharp_style_prefer_null_check_over_type_check = true:suggestion
|
||||
|
||||
# Modifier preferences
|
||||
csharp_prefer_static_local_function = true:suggestion
|
||||
csharp_prefer_static_anonymous_function = true:suggestion
|
||||
csharp_preferred_modifier_order = public,private,protected,internal,static,extern,new,virtual,abstract,sealed,override,readonly,unsafe,volatile,async:silent
|
||||
|
||||
# Code-block preferences
|
||||
@@ -139,9 +140,11 @@ csharp_prefer_system_threading_lock = true:suggestion
|
||||
csharp_prefer_simple_default_expression = true:suggestion
|
||||
csharp_style_deconstructed_variable_declaration = false:suggestion
|
||||
csharp_style_inlined_variable_declaration = true:suggestion
|
||||
csharp_style_prefer_implicitly_typed_lambda_expression = true:suggestion
|
||||
csharp_style_pattern_local_over_anonymous_function = true:suggestion
|
||||
csharp_style_prefer_index_operator = true:suggestion
|
||||
csharp_style_prefer_range_operator = true:suggestion
|
||||
csharp_style_prefer_unbound_generic_type_in_nameof = true:suggestion
|
||||
csharp_style_throw_expression = true:suggestion
|
||||
csharp_style_unused_value_assignment_preference = discard_variable:none
|
||||
csharp_style_unused_value_expression_statement_preference = discard_variable:none
|
||||
|
||||
Reference in New Issue
Block a user