😎1、调整AI配置 2、修复AI实体大字符串定义问题 2、修复系统启动执行任务结束异常提示

This commit is contained in:
zuohuaijun 2025-06-19 12:00:27 +08:00
parent 9a080d02b1
commit 8625764be0
6 changed files with 15 additions and 15 deletions

View File

@ -1,16 +1,16 @@
{ {
"LLM": { "LLM": {
"ModelProvider": "DeepSeek", //使ProvidersProductName "ModelProvider": "DeepSeek", // 使ProvidersProductName
"InitSystemChatMessage": "你是一个经验丰富的Admin.pro人工智能助手,请根据用户的问题给出准确的回答。- **回答请以markdown格式输出**;- **适当加入emoji表达人类情感使内容更易于理解与传播。**", "InitSystemChatMessage": "你是一个经验丰富的 Admin.NET 人工智能助手,请根据用户的问题给出准确的回答。- **回答请以markdown格式输出**;- **适当加入emoji表达人类情感使内容更易于理解与传播。**",
"UserCanSwitchLLM": true, // "UserCanSwitchLLM": true, //
"TargetCount": 10, //TargetCount+ThresholdCounttoken "TargetCount": 10, // TargetCount+ThresholdCounttoken
"ThresholdCount": 3, //TargetCount+ThresholdCounttoken "ThresholdCount": 3, // TargetCount+ThresholdCounttoken
"IsUserProxy": false, //使openai,claudetruefalse,LLM "IsUserProxy": false, // 使openai,claudetruefalse,LLM
"ProxyUrl": "http://127.0.0.1:10809", //IsUserProxytrue "ProxyUrl": "http://127.0.0.1:10809", // IsUserProxytrue
"LogEnabled": false, //http. "LogEnabled": false, // http.
"Providers": [ "Providers": [
{ {
"ProductName": "OpenAI", //LLM "ProductName": "OpenAI", // LLM
"LLMType": "OpenAI_Compatible", "LLMType": "OpenAI_Compatible",
"ApiKey": "sk-proj-88vztr-6Tf6LwmtpvqAYQR-5q4XJaLW-6vmeeVunhycpsUuKMLGLJAhDGyodovkVJqXLba-HV_ST3BlbkFJghWQCgwt68t5Fv4AZSwoY0MX2K2c-HQPbBQLQYOrGcWfhX4yM9OJtqMYAmPedko4RRolifks8A", "ApiKey": "sk-proj-88vztr-6Tf6LwmtpvqAYQR-5q4XJaLW-6vmeeVunhycpsUuKMLGLJAhDGyodovkVJqXLba-HV_ST3BlbkFJghWQCgwt68t5Fv4AZSwoY0MX2K2c-HQPbBQLQYOrGcWfhX4yM9OJtqMYAmPedko4RRolifks8A",
"ApiEndpoint": "https://api.openai.com/v1", "ApiEndpoint": "https://api.openai.com/v1",

View File

@ -41,7 +41,7 @@ public class LLMChatHistory : EntityBaseId
/// <summary> /// <summary>
/// 内容 /// 内容
/// </summary> /// </summary>
[SugarColumn(ColumnDescription = "内容", ColumnDataType = "longtext")] [SugarColumn(ColumnDescription = "内容", ColumnDataType = StaticConfig.CodeFirst_BigString))]
public string? Content { get; set; } public string? Content { get; set; }
/// <summary> /// <summary>

View File

@ -29,7 +29,7 @@ public class LLMChatSummaryHistory : EntityBaseId
/// <summary> /// <summary>
/// 摘要 /// 摘要
/// </summary> /// </summary>
[SugarColumn(ColumnDescription = "摘要", Length = 4000)] [SugarColumn(ColumnDescription = "摘要", ColumnDataType = StaticConfig.CodeFirst_BigString)]
public string? Summary { get; set; } public string? Summary { get; set; }
/// <summary> /// <summary>

View File

@ -48,6 +48,6 @@ public class StartHostedService(IServiceScopeFactory serviceScopeFactory) : IHos
public Task StopAsync(CancellationToken cancellationToken) public Task StopAsync(CancellationToken cancellationToken)
{ {
throw new NotImplementedException(); return Task.CompletedTask;
} }
} }

View File

@ -43,7 +43,7 @@ public static class ProjectOptions
services.Configure<ClientRateLimitOptions>(App.Configuration.GetSection("ClientRateLimiting")); services.Configure<ClientRateLimitOptions>(App.Configuration.GetSection("ClientRateLimiting"));
services.Configure<ClientRateLimitPolicies>(App.Configuration.GetSection("ClientRateLimitPolicies")); services.Configure<ClientRateLimitPolicies>(App.Configuration.GetSection("ClientRateLimitPolicies"));
services.AddConfigurableOptions<LLMOptions>(); //基于Microsoft Semantic Kernel实现,也是本应用的默认实现 services.AddConfigurableOptions<LLMOptions>(); // 基于Microsoft Semantic Kernel实现,也是本应用的默认实现
return services; return services;
} }

View File

@ -56,7 +56,7 @@
"monaco-editor": "^0.52.2", "monaco-editor": "^0.52.2",
"mqtt": "^5.13.1", "mqtt": "^5.13.1",
"nprogress": "^0.2.0", "nprogress": "^0.2.0",
"ol": "^10.5.0", "ol": "^10.6.1",
"pinia": "^3.0.3", "pinia": "^3.0.3",
"print-js": "^1.6.0", "print-js": "^1.6.0",
"push.js": "^1.0.12", "push.js": "^1.0.12",
@ -84,7 +84,7 @@
"vue-signature-pad": "^3.0.2", "vue-signature-pad": "^3.0.2",
"vue3-tree-org": "^4.2.2", "vue3-tree-org": "^4.2.2",
"vxe-pc-ui": "^4.6.26", "vxe-pc-ui": "^4.6.26",
"vxe-table": "^4.13.42", "vxe-table": "^4.13.43",
"xe-utils": "^3.7.5", "xe-utils": "^3.7.5",
"xlsx-js-style": "^1.2.0" "xlsx-js-style": "^1.2.0"
}, },