2023-05-26 01:36:15 +00:00
|
|
|
{
|
|
|
|
|
"Logging": {
|
|
|
|
|
"LogLevel": {
|
|
|
|
|
"Default": "Information",
|
|
|
|
|
"Microsoft.AspNetCore": "Warning"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"AllowedHosts": "*",
|
|
|
|
|
|
2023-06-11 23:46:02 +00:00
|
|
|
"Jwt": {
|
|
|
|
|
"Issuer": "botsharp",
|
|
|
|
|
"Audience": "botsharp",
|
|
|
|
|
"Key": "31ba6052aa6f4569901facc3a41fcb4a"
|
2023-05-27 01:58:31 +00:00
|
|
|
},
|
|
|
|
|
|
2023-08-30 02:48:59 +00:00
|
|
|
"Router": {
|
2023-08-30 22:40:45 +00:00
|
|
|
"RouterId": "01fcc3e5-9af7-49e6-ad7a-a760bd12dc4a",
|
|
|
|
|
"ReasonerId": "03d3fb55-9ada-423b-a6b4-f9ecddf4b26e"
|
2023-08-30 02:48:59 +00:00
|
|
|
},
|
|
|
|
|
|
|
|
|
|
"Agent": {
|
2023-08-18 02:44:49 +00:00
|
|
|
"DataDir": "agents",
|
2023-08-30 02:48:59 +00:00
|
|
|
"TemplateFormat": "liquid",
|
|
|
|
|
"MaxRecursiveDepth": 3
|
2023-07-22 11:35:30 +00:00
|
|
|
},
|
|
|
|
|
|
2023-06-19 16:33:27 +00:00
|
|
|
"Conversation": {
|
2023-08-10 04:54:50 +00:00
|
|
|
"DataDir": "conversations",
|
2023-09-09 15:37:38 +00:00
|
|
|
"ShowVerboseLog": false
|
2023-06-19 16:33:27 +00:00
|
|
|
},
|
|
|
|
|
|
2023-05-27 01:58:31 +00:00
|
|
|
"LlamaSharp": {
|
2023-05-29 01:06:05 +00:00
|
|
|
"Interactive": true,
|
2023-09-18 08:35:02 +00:00
|
|
|
"ModelDir": "C:/Users/haipi/Downloads",
|
|
|
|
|
"DefaultModel": "llama-2-7b-chat.Q8_0.gguf",
|
2023-06-27 23:36:50 +00:00
|
|
|
"MaxContextLength": 1024,
|
2023-09-18 08:35:02 +00:00
|
|
|
"NumberOfGpuLayer": 10
|
2023-05-28 16:30:27 +00:00
|
|
|
},
|
|
|
|
|
|
2023-06-07 01:10:09 +00:00
|
|
|
"AzureOpenAi": {
|
2023-05-28 16:30:27 +00:00
|
|
|
"ApiKey": "",
|
|
|
|
|
"Endpoint": "",
|
2023-06-19 18:32:49 +00:00
|
|
|
"DeploymentModel": {
|
|
|
|
|
"ChatCompletionModel": "",
|
|
|
|
|
"TextCompletionModel": ""
|
|
|
|
|
}
|
2023-06-03 02:07:30 +00:00
|
|
|
},
|
|
|
|
|
|
2023-09-18 08:35:02 +00:00
|
|
|
"HuggingFace": {
|
|
|
|
|
"Endpoint": "https://api-inference.huggingface.co",
|
|
|
|
|
"Model": "tiiuae/falcon-180B-chat",
|
|
|
|
|
"Token": ""
|
|
|
|
|
},
|
|
|
|
|
|
2023-09-01 15:42:16 +00:00
|
|
|
"MetaAi": {
|
|
|
|
|
"fastText": {
|
|
|
|
|
"ModelPath": "dbpedia.ftz"
|
|
|
|
|
}
|
|
|
|
|
},
|
2023-08-31 15:48:59 +00:00
|
|
|
|
2023-09-01 15:42:16 +00:00
|
|
|
"RoutingSpeeder": {
|
|
|
|
|
},
|
2023-06-17 13:32:39 +00:00
|
|
|
|
2023-08-07 10:21:31 +00:00
|
|
|
"MetaMessenger": {
|
|
|
|
|
"Endpoint": "https://graph.facebook.com",
|
|
|
|
|
"ApiVersion": "v17.0",
|
|
|
|
|
"PageId": "",
|
|
|
|
|
"PageAccessToken": ""
|
|
|
|
|
},
|
|
|
|
|
|
2023-06-03 02:07:30 +00:00
|
|
|
"Database": {
|
2023-08-10 04:54:50 +00:00
|
|
|
"Default": "FileRepository",
|
2023-09-13 08:23:59 +00:00
|
|
|
"TablePrefix": "BotSharp",
|
2023-09-01 22:33:36 +00:00
|
|
|
"MongoDb": "",
|
2023-08-01 00:57:11 +00:00
|
|
|
"BotSharp": {
|
2023-06-27 18:31:13 +00:00
|
|
|
"Master": "Data Source=(localdb)\\ProjectModels;Initial Catalog=BotSharp;Integrated Security=True;Connect Timeout=30;Encrypt=False;Trust Server Certificate=False;Application Intent=ReadWrite;Multi Subnet Failover=False",
|
2023-06-11 23:46:02 +00:00
|
|
|
"Slavers": []
|
|
|
|
|
},
|
2023-08-14 18:16:35 +00:00
|
|
|
"FileRepository": "data",
|
2023-06-07 00:59:32 +00:00
|
|
|
"UseCamelCase": true,
|
2023-06-03 02:07:30 +00:00
|
|
|
"Assemblies": [ "BotSharp.Core" ]
|
2023-06-11 23:46:02 +00:00
|
|
|
},
|
|
|
|
|
|
2023-06-18 02:56:22 +00:00
|
|
|
"Qdrant": {
|
|
|
|
|
"Url": "",
|
|
|
|
|
"ApiKey": ""
|
|
|
|
|
},
|
|
|
|
|
|
2023-06-26 23:12:38 +00:00
|
|
|
"WeChat": {
|
2023-07-03 01:02:33 +00:00
|
|
|
"AgentId": "437bed34-1169-4833-95ce-c24b8b56154a",
|
2023-06-26 23:12:38 +00:00
|
|
|
"Token": "#{Token}#",
|
|
|
|
|
"EncodingAESKey": "#{EncodingAESKey}#",
|
|
|
|
|
"WeixinAppId": "#{WeixinAppId}#",
|
|
|
|
|
"WeixinAppSecret": "#{WeixinAppSecret}#"
|
|
|
|
|
},
|
|
|
|
|
|
2023-09-09 20:13:19 +00:00
|
|
|
"KnowledgeBase": {
|
2023-09-18 08:35:02 +00:00
|
|
|
"VectorDb": "MemVectorDatabase",
|
|
|
|
|
// "VectorDb": "QdrantDb",
|
|
|
|
|
"TextEmbedding": "fastTextEmbeddingProvider",
|
|
|
|
|
// "TextEmbedding": "LLamaSharp.TextEmbeddingProvider",
|
|
|
|
|
"TextCompletion": "AzureOpenAI.Providers.TextCompletionProvider",
|
|
|
|
|
// "TextCompletion": "LLamaSharp.TextCompletionProvider",
|
|
|
|
|
"Pdf2TextConverter": "PaddleSharp.Providers.Pdf2TextConverter"
|
2023-09-09 20:13:19 +00:00
|
|
|
},
|
2023-06-26 23:08:24 +00:00
|
|
|
|
2023-06-17 02:42:35 +00:00
|
|
|
"PluginLoader": {
|
|
|
|
|
"Assemblies": [
|
2023-09-09 16:29:08 +00:00
|
|
|
"BotSharp.Plugin.MongoStorage",
|
2023-06-17 02:42:35 +00:00
|
|
|
"BotSharp.Core",
|
2023-06-17 13:32:39 +00:00
|
|
|
"BotSharp.Plugin.AzureOpenAI",
|
2023-06-18 02:56:22 +00:00
|
|
|
"BotSharp.Plugin.MetaAI",
|
2023-09-18 08:35:02 +00:00
|
|
|
"BotSharp.Plugin.HuggingFace",
|
2023-09-06 12:58:02 +00:00
|
|
|
"BotSharp.Plugin.LLamaSharp",
|
|
|
|
|
"BotSharp.Plugin.KnowledgeBase",
|
2023-06-19 18:32:49 +00:00
|
|
|
"BotSharp.Plugin.Qdrant",
|
2023-06-27 02:23:30 +00:00
|
|
|
"BotSharp.Plugin.PaddleSharp",
|
2023-08-30 22:40:45 +00:00
|
|
|
"BotSharp.Plugin.WeChat",
|
2023-09-06 12:58:02 +00:00
|
|
|
// "BotSharp.Plugin.RoutingSpeeder",
|
2023-08-30 22:40:45 +00:00
|
|
|
"BotSharp.Plugin.PizzaBot"
|
2023-06-17 02:42:35 +00:00
|
|
|
]
|
2023-05-26 01:36:15 +00:00
|
|
|
}
|
|
|
|
|
}
|