2023-05-26 01:36:15 +00:00
|
|
|
{
|
|
|
|
|
"Logging": {
|
|
|
|
|
"LogLevel": {
|
|
|
|
|
"Default": "Information",
|
|
|
|
|
"Microsoft.AspNetCore": "Warning"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"AllowedHosts": "*",
|
2024-02-19 14:26:36 +00:00
|
|
|
"AllowedOrigins": [
|
|
|
|
|
"http://localhost:5015",
|
|
|
|
|
"http://0.0.0.0:5015",
|
|
|
|
|
"https://botsharp.scisharpstack.org",
|
|
|
|
|
"https://chat.scisharpstack.org"
|
|
|
|
|
],
|
2023-06-11 23:46:02 +00:00
|
|
|
"Jwt": {
|
|
|
|
|
"Issuer": "botsharp",
|
|
|
|
|
"Audience": "botsharp",
|
2024-01-29 15:04:06 +00:00
|
|
|
"Key": "31ba6052aa6f4569901facc3a41fcb4adfd9b46dd00c40af8a753fbdc2b89869"
|
2023-05-27 01:58:31 +00:00
|
|
|
},
|
|
|
|
|
|
2024-02-14 23:45:28 +00:00
|
|
|
"OAuth": {
|
|
|
|
|
"GitHub": {
|
|
|
|
|
"ClientId": "",
|
|
|
|
|
"ClientSecret": ""
|
2024-02-16 01:47:02 +00:00
|
|
|
},
|
|
|
|
|
"Google": {
|
|
|
|
|
"ClientId": "",
|
|
|
|
|
"ClientSecret": ""
|
2024-02-17 13:13:02 +00:00
|
|
|
},
|
|
|
|
|
"Keycloak": {
|
|
|
|
|
"BaseAddress": "",
|
|
|
|
|
"Realm": "",
|
|
|
|
|
"ClientId": "",
|
|
|
|
|
"ClientSecret": "",
|
|
|
|
|
"Version": 22
|
2024-05-13 13:57:39 +00:00
|
|
|
},
|
|
|
|
|
"Weixin": {
|
|
|
|
|
"AppId": "",
|
|
|
|
|
"AppSecret": ""
|
2024-02-14 23:45:28 +00:00
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
|
2023-12-13 18:12:25 +00:00
|
|
|
"LlmProviders": [
|
|
|
|
|
{
|
|
|
|
|
"Provider": "azure-openai",
|
|
|
|
|
"Models": [
|
|
|
|
|
{
|
2024-02-22 12:22:26 +00:00
|
|
|
"Id": "gpt-3.5-turbo",
|
2023-12-13 18:12:25 +00:00
|
|
|
"Name": "gpt-35-turbo",
|
2024-02-22 12:22:26 +00:00
|
|
|
"Version": "1106",
|
2023-12-13 18:12:25 +00:00
|
|
|
"ApiKey": "",
|
2024-03-18 12:54:00 +00:00
|
|
|
"Endpoint": "https://gpt-35-turbo-instruct.openai.azure.com/",
|
2023-12-13 18:12:25 +00:00
|
|
|
"Type": "chat",
|
|
|
|
|
"PromptCost": 0.0015,
|
|
|
|
|
"CompletionCost": 0.002
|
|
|
|
|
},
|
|
|
|
|
{
|
2024-02-19 14:26:36 +00:00
|
|
|
"Name": "gpt-35-turbo-instruct",
|
2024-02-22 12:22:26 +00:00
|
|
|
"Version": "0914",
|
2023-12-13 18:12:25 +00:00
|
|
|
"ApiKey": "",
|
2024-02-19 14:26:36 +00:00
|
|
|
"Endpoint": "https://gpt-35-turbo-instruct.openai.azure.com/",
|
2023-12-13 18:12:25 +00:00
|
|
|
"Type": "text",
|
|
|
|
|
"PromptCost": 0.0015,
|
|
|
|
|
"CompletionCost": 0.002
|
|
|
|
|
}
|
|
|
|
|
]
|
2024-01-14 04:48:26 +00:00
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"Provider": "llama-sharp",
|
|
|
|
|
"Models": [
|
|
|
|
|
{
|
|
|
|
|
"Name": "llama-2-7b-guanaco-qlora.Q2_K.gguf",
|
|
|
|
|
"Type": "chat"
|
|
|
|
|
}
|
|
|
|
|
]
|
2024-01-18 11:30:28 +00:00
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"Provider": "huggingface",
|
|
|
|
|
"Models": [
|
|
|
|
|
{
|
|
|
|
|
"Name": "mistralai/Mistral-7B-v0.1",
|
|
|
|
|
"Type": "text"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"Name": "TinyLlama/TinyLlama-1.1B-Chat-v1.0",
|
|
|
|
|
"Type": "text"
|
|
|
|
|
}
|
|
|
|
|
]
|
2024-03-18 12:54:00 +00:00
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"Provider": "sparkdesk",
|
|
|
|
|
"Models": [
|
|
|
|
|
{
|
|
|
|
|
"Name": "gpt-35-turbo",
|
|
|
|
|
"Type": "chat",
|
|
|
|
|
"PromptCost": 0.0015,
|
|
|
|
|
"CompletionCost": 0.002
|
|
|
|
|
}
|
|
|
|
|
]
|
2024-03-28 06:37:07 +00:00
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"Provider": "metaglm",
|
|
|
|
|
"Models": [
|
|
|
|
|
{
|
|
|
|
|
"Name": "chatglm3_6b",
|
|
|
|
|
"Type": "chat",
|
|
|
|
|
"PromptCost": 0.0015,
|
|
|
|
|
"CompletionCost": 0.002
|
|
|
|
|
}
|
|
|
|
|
]
|
2023-12-13 18:12:25 +00:00
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
|
2023-08-30 02:48:59 +00:00
|
|
|
"Router": {
|
|
|
|
|
},
|
|
|
|
|
|
2023-10-18 11:58:36 +00:00
|
|
|
"Evaluator": {
|
2023-12-13 18:12:25 +00:00
|
|
|
"AgentId": "dfd9b46d-d00c-40af-8a75-3fbdc2b89869"
|
2023-10-18 11:58:36 +00:00
|
|
|
},
|
|
|
|
|
|
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",
|
2024-01-18 11:30:28 +00:00
|
|
|
"HostAgentId": "01e2fc5c-2c89-4ec7-8470-7688608b496c",
|
2024-05-28 15:45:13 +00:00
|
|
|
"EnableTranslator": false,
|
2023-12-13 23:16:34 +00:00
|
|
|
"LlmConfig": {
|
|
|
|
|
"Provider": "azure-openai",
|
2023-12-20 02:28:56 +00:00
|
|
|
"Model": "gpt-35-turbo"
|
2023-12-13 23:16:34 +00:00
|
|
|
}
|
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-11-29 16:40:27 +00:00
|
|
|
"ShowVerboseLog": false,
|
|
|
|
|
"EnableLlmCompletionLog": false,
|
2024-02-15 20:43:36 +00:00
|
|
|
"EnableExecutionLog": true,
|
|
|
|
|
"EnableContentLog": true,
|
2024-03-07 17:25:23 +00:00
|
|
|
"EnableStateLog": true,
|
2024-06-28 16:29:43 +00:00
|
|
|
"EnableTranslationMemory": false,
|
2024-03-07 17:25:23 +00:00
|
|
|
"CleanSetting": {
|
|
|
|
|
"Enable": true,
|
|
|
|
|
"BatchSize": 50,
|
|
|
|
|
"MessageLimit": 2,
|
|
|
|
|
"BufferHours": 12
|
2024-03-24 17:33:41 +00:00
|
|
|
},
|
|
|
|
|
"RateLimit": {
|
|
|
|
|
"MaxConversationPerDay": 100,
|
|
|
|
|
"MaxInputLengthPerRequest": 256,
|
|
|
|
|
"MinTimeSecondsBetweenMessages": 2
|
2024-03-07 17:25:23 +00:00
|
|
|
}
|
2023-06-19 16:33:27 +00:00
|
|
|
},
|
2024-02-02 22:36:05 +00:00
|
|
|
|
2024-04-29 14:13:17 +00:00
|
|
|
"WebBrowsing": {
|
|
|
|
|
"Driver": "Playwright"
|
|
|
|
|
},
|
|
|
|
|
|
2024-07-11 16:30:52 +00:00
|
|
|
"HttpHandler": {
|
2024-05-20 21:50:45 +00:00
|
|
|
"BaseAddress": "",
|
|
|
|
|
"Origin": ""
|
|
|
|
|
},
|
|
|
|
|
|
2024-01-31 15:15:41 +00:00
|
|
|
"Statistics": {
|
2024-01-29 04:18:40 +00:00
|
|
|
"DataDir": "stats"
|
|
|
|
|
},
|
2024-02-02 22:36:05 +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,
|
2024-01-14 04:48:26 +00:00
|
|
|
"NumberOfGpuLayer": 20
|
2023-05-28 16:30:27 +00:00
|
|
|
},
|
|
|
|
|
|
2023-06-07 01:10:09 +00:00
|
|
|
"AzureOpenAi": {
|
2023-06-03 02:07:30 +00:00
|
|
|
},
|
|
|
|
|
|
2024-05-03 18:17:14 +00:00
|
|
|
"AnthropicAi": {
|
|
|
|
|
"Claude": {
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
|
2023-10-08 20:46:42 +00:00
|
|
|
"GoogleAi": {
|
|
|
|
|
"PaLM": {
|
|
|
|
|
"Endpoint": "https://generativelanguage.googleapis.com",
|
|
|
|
|
"ApiKey": ""
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
|
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-11-09 20:02:57 +00:00
|
|
|
"Twilio": {
|
|
|
|
|
"PhoneNumber": "+1",
|
|
|
|
|
"AccountSID": "",
|
|
|
|
|
"AuthToken": "",
|
2024-01-13 21:17:40 +00:00
|
|
|
"CallbackHost": "https://",
|
|
|
|
|
"AgentId": "01fcc3e5-9af7-49e6-ad7a-a760bd12dc4a"
|
2023-11-09 20:02:57 +00:00
|
|
|
},
|
|
|
|
|
|
2023-06-03 02:07:30 +00:00
|
|
|
"Database": {
|
2024-02-19 14:45:17 +00:00
|
|
|
"Default": "FileRepository",
|
2023-09-13 08:23:59 +00:00
|
|
|
"TablePrefix": "BotSharp",
|
2024-02-19 14:45:17 +00:00
|
|
|
"BotSharpMongoDb": "",
|
2023-08-14 18:16:35 +00:00
|
|
|
"FileRepository": "data",
|
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",
|
|
|
|
|
"TextEmbedding": "fastTextEmbeddingProvider",
|
|
|
|
|
"TextCompletion": "AzureOpenAI.Providers.TextCompletionProvider",
|
2023-12-30 03:54:41 +00:00
|
|
|
"Pdf2TextConverter": "PigPdf2TextConverter"
|
2023-09-09 20:13:19 +00:00
|
|
|
},
|
2023-06-26 23:08:24 +00:00
|
|
|
|
2024-03-18 12:54:00 +00:00
|
|
|
"SparkDesk": {
|
|
|
|
|
"AppId": "",
|
|
|
|
|
"ApiKey": "",
|
|
|
|
|
"ApiSecret": "",
|
|
|
|
|
"ModelVersion": "V3_5"
|
|
|
|
|
},
|
2024-03-28 06:37:07 +00:00
|
|
|
"MetaGLM": {
|
|
|
|
|
"ApiKey": "6b6c8b3fca3e5da21d633e350980744d.938gruOqrK4BDqW8",
|
|
|
|
|
"BaseAddress": "http://localhost:8100/v1/",
|
|
|
|
|
"ModelId": "chatglm3_6b",
|
|
|
|
|
"Temperature": 0.7,
|
|
|
|
|
"TopP": 0.7
|
|
|
|
|
},
|
2024-03-18 12:54:00 +00:00
|
|
|
|
2024-03-19 22:32:17 +00:00
|
|
|
"GoogleApi": {
|
|
|
|
|
"ApiKey": "",
|
2024-03-20 22:59:38 +00:00
|
|
|
"Map": {
|
|
|
|
|
"Endpoint": "https://maps.googleapis.com/maps/api/geocode/json",
|
2024-03-28 06:37:07 +00:00
|
|
|
"Components": "country=US|country=CA"
|
2024-03-20 22:59:38 +00:00
|
|
|
},
|
|
|
|
|
"Youtube": {
|
|
|
|
|
"Endpoint": "https://www.googleapis.com/youtube/v3/search",
|
|
|
|
|
"RegionCode": "US",
|
2024-04-03 20:03:43 +00:00
|
|
|
"Part": "id,snippet",
|
|
|
|
|
"Channels": []
|
2024-03-20 22:59:38 +00:00
|
|
|
}
|
2024-03-19 22:32:17 +00:00
|
|
|
},
|
|
|
|
|
|
2023-06-17 02:42:35 +00:00
|
|
|
"PluginLoader": {
|
|
|
|
|
"Assemblies": [
|
2023-11-29 23:23:14 +00:00
|
|
|
"BotSharp.Core",
|
2024-01-29 18:08:49 +00:00
|
|
|
"BotSharp.Logger",
|
|
|
|
|
"BotSharp.Plugin.MongoStorage",
|
2024-01-29 04:18:40 +00:00
|
|
|
"BotSharp.Plugin.Dashboard",
|
2024-07-10 02:17:36 +00:00
|
|
|
"BotSharp.Plugin.OpenAI",
|
2023-06-17 13:32:39 +00:00
|
|
|
"BotSharp.Plugin.AzureOpenAI",
|
2024-05-03 18:17:14 +00:00
|
|
|
"BotSharp.Plugin.AnthropicAI",
|
2023-10-08 20:46:42 +00:00
|
|
|
"BotSharp.Plugin.GoogleAI",
|
2023-06-18 02:56:22 +00:00
|
|
|
"BotSharp.Plugin.MetaAI",
|
2023-12-26 03:16:41 +00:00
|
|
|
"BotSharp.Plugin.MetaMessenger",
|
2023-09-18 08:35:02 +00:00
|
|
|
"BotSharp.Plugin.HuggingFace",
|
2023-09-06 12:58:02 +00:00
|
|
|
"BotSharp.Plugin.KnowledgeBase",
|
2023-06-19 18:32:49 +00:00
|
|
|
"BotSharp.Plugin.Qdrant",
|
2023-11-27 02:04:05 +00:00
|
|
|
"BotSharp.Plugin.ChatHub",
|
2023-08-30 22:40:45 +00:00
|
|
|
"BotSharp.Plugin.WeChat",
|
2024-01-10 14:18:59 +00:00
|
|
|
"BotSharp.Plugin.PizzaBot",
|
2024-01-14 04:48:26 +00:00
|
|
|
"BotSharp.Plugin.WebDriver",
|
2024-03-18 12:54:00 +00:00
|
|
|
"BotSharp.Plugin.LLamaSharp",
|
2024-03-28 06:37:07 +00:00
|
|
|
"BotSharp.Plugin.SparkDesk",
|
2024-06-26 03:38:01 +00:00
|
|
|
"BotSharp.Plugin.MetaGLM",
|
|
|
|
|
"BotSharp.Plugin.HttpHandler"
|
2023-06-17 02:42:35 +00:00
|
|
|
]
|
2023-05-26 01:36:15 +00:00
|
|
|
}
|
|
|
|
|
}
|