😎1、调整AI配置 2、修复AI实体大字符串定义问题 2、修复系统启动执行任务结束异常提示
This commit is contained in:
parent
9a080d02b1
commit
8625764be0
@ -1,16 +1,16 @@
|
||||
{
|
||||
"LLM": {
|
||||
"ModelProvider": "DeepSeek", //当前使用模型,取值为下面Providers的ProductName
|
||||
"InitSystemChatMessage": "你是一个经验丰富的Admin.pro人工智能助手,请根据用户的问题给出准确的回答。- **回答请以markdown格式输出**;- **适当加入emoji表达人类情感,使内容更易于理解与传播。**",
|
||||
"UserCanSwitchLLM": true, //是否可以切换模型
|
||||
"TargetCount": 10, //用于消息截取配置,当消息超过TargetCount+ThresholdCount数量时,会进行截取操作,以避免token超出限制
|
||||
"ThresholdCount": 3, //用于消息截取配置,当消息超过TargetCount+ThresholdCount数量时,会进行截取操作,以避免token超出限制
|
||||
"IsUserProxy": false, //如果使用的是openai,claude等国内未授权的模型,并且在国内运行,请设置为true,否则设置为false,避免这些LLM被国内防火墙拦截
|
||||
"ProxyUrl": "http://127.0.0.1:10809", //如果IsUserProxy为true,请设置代理地址,否则设置为空
|
||||
"LogEnabled": false, //是否开启日志,如果开启,会记录用户与大模型交互的日志,以http协议的形式展示.
|
||||
"ModelProvider": "DeepSeek", // 当前使用模型,取值为下面Providers的ProductName
|
||||
"InitSystemChatMessage": "你是一个经验丰富的 Admin.NET 人工智能助手,请根据用户的问题给出准确的回答。- **回答请以markdown格式输出**;- **适当加入emoji表达人类情感,使内容更易于理解与传播。**",
|
||||
"UserCanSwitchLLM": true, // 是否可以切换模型
|
||||
"TargetCount": 10, // 用于消息截取配置,当消息超过TargetCount+ThresholdCount数量时,会进行截取操作,以避免token超出限制
|
||||
"ThresholdCount": 3, // 用于消息截取配置,当消息超过TargetCount+ThresholdCount数量时,会进行截取操作,以避免token超出限制
|
||||
"IsUserProxy": false, // 如果使用的是openai,claude等国内未授权的模型,并且在国内运行,请设置为true,否则设置为false,避免这些LLM被国内防火墙拦截
|
||||
"ProxyUrl": "http://127.0.0.1:10809", // 如果IsUserProxy为true,请设置代理地址,否则设置为空
|
||||
"LogEnabled": false, // 是否开启日志,如果开启,会记录用户与大模型交互的日志,以http协议的形式展示.
|
||||
"Providers": [
|
||||
{
|
||||
"ProductName": "OpenAI", //LLM产品名称
|
||||
"ProductName": "OpenAI", // LLM产品名称
|
||||
"LLMType": "OpenAI_Compatible",
|
||||
"ApiKey": "sk-proj-88vztr-6Tf6LwmtpvqAYQR-5q4XJaLW-6vmeeVunhycpsUuKMLGLJAhDGyodovkVJqXLba-HV_ST3BlbkFJghWQCgwt68t5Fv4AZSwoY0MX2K2c-HQPbBQLQYOrGcWfhX4yM9OJtqMYAmPedko4RRolifks8A",
|
||||
"ApiEndpoint": "https://api.openai.com/v1",
|
||||
|
||||
@ -41,7 +41,7 @@ public class LLMChatHistory : EntityBaseId
|
||||
/// <summary>
|
||||
/// 内容
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnDescription = "内容", ColumnDataType = "longtext")]
|
||||
[SugarColumn(ColumnDescription = "内容", ColumnDataType = StaticConfig.CodeFirst_BigString))]
|
||||
public string? Content { get; set; }
|
||||
|
||||
/// <summary>
|
||||
|
||||
@ -29,7 +29,7 @@ public class LLMChatSummaryHistory : EntityBaseId
|
||||
/// <summary>
|
||||
/// 摘要
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnDescription = "摘要", Length = 4000)]
|
||||
[SugarColumn(ColumnDescription = "摘要", ColumnDataType = StaticConfig.CodeFirst_BigString)]
|
||||
public string? Summary { get; set; }
|
||||
|
||||
/// <summary>
|
||||
|
||||
@ -48,6 +48,6 @@ public class StartHostedService(IServiceScopeFactory serviceScopeFactory) : IHos
|
||||
|
||||
public Task StopAsync(CancellationToken cancellationToken)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
return Task.CompletedTask;
|
||||
}
|
||||
}
|
||||
@ -43,7 +43,7 @@ public static class ProjectOptions
|
||||
services.Configure<ClientRateLimitOptions>(App.Configuration.GetSection("ClientRateLimiting"));
|
||||
services.Configure<ClientRateLimitPolicies>(App.Configuration.GetSection("ClientRateLimitPolicies"));
|
||||
|
||||
services.AddConfigurableOptions<LLMOptions>(); //基于Microsoft Semantic Kernel实现,也是本应用的默认实现
|
||||
services.AddConfigurableOptions<LLMOptions>(); // 基于Microsoft Semantic Kernel实现,也是本应用的默认实现
|
||||
|
||||
return services;
|
||||
}
|
||||
|
||||
@ -56,7 +56,7 @@
|
||||
"monaco-editor": "^0.52.2",
|
||||
"mqtt": "^5.13.1",
|
||||
"nprogress": "^0.2.0",
|
||||
"ol": "^10.5.0",
|
||||
"ol": "^10.6.1",
|
||||
"pinia": "^3.0.3",
|
||||
"print-js": "^1.6.0",
|
||||
"push.js": "^1.0.12",
|
||||
@ -84,7 +84,7 @@
|
||||
"vue-signature-pad": "^3.0.2",
|
||||
"vue3-tree-org": "^4.2.2",
|
||||
"vxe-pc-ui": "^4.6.26",
|
||||
"vxe-table": "^4.13.42",
|
||||
"vxe-table": "^4.13.43",
|
||||
"xe-utils": "^3.7.5",
|
||||
"xlsx-js-style": "^1.2.0"
|
||||
},
|
||||
|
||||
Loading…
Reference in New Issue
Block a user