diff --git a/packages/basic.gblib/services/DialogKeywords.ts b/packages/basic.gblib/services/DialogKeywords.ts index 4294e617..50765405 100644 --- a/packages/basic.gblib/services/DialogKeywords.ts +++ b/packages/basic.gblib/services/DialogKeywords.ts @@ -1391,7 +1391,9 @@ export class DialogKeywords { const conversation = min['apiConversations'][pid]; const client = await GBUtil.getDirectLineClient(min); conversation.client = client; - const response = await client.apis.Conversations.Conversations_StartConversation(); + const response = await client.apis.Conversations.Conversations_StartConversation( + + ); conversation.conversationId = response.obj.conversationId; return await GBVMService.callVM('start', min, null, pid); diff --git a/packages/llm.gblib/services/ChatServices.ts b/packages/llm.gblib/services/ChatServices.ts index a6d2373a..4fc69ee6 100644 --- a/packages/llm.gblib/services/ChatServices.ts +++ b/packages/llm.gblib/services/ChatServices.ts @@ -285,7 +285,7 @@ export class ChatServices { return { answer: undefined, questionId: 0 }; } - const LLMMode = mode ?? answerMode; + const LLMMode = (mode ?? answerMode).toLowerCase(); const docsContext = min['vectorStore']; let memory; @@ -538,7 +538,6 @@ export class ChatServices { GBLogEx.info(min, `Answer Source = ${answerSource}.`); - let dataSource; if (answerSource === 'cache') { let sqliteFilePath = diff --git a/templates/llm-server.gbai/README.md b/templates/llm-server.gbai/README.md new file mode 100644 index 00000000..efd9b0b5 --- /dev/null +++ b/templates/llm-server.gbai/README.md @@ -0,0 +1,12 @@ +How to test (using api.pragmatismo.cloud as host): + +POST https://api.pragmatismo.cloud/llmservergbot/dialogs/start + +operator=123 +userSystemId=999 + + +POST https://api.pragmatismo.cloud/api/dk/messageBot + +pid=1237189231897 (returned) +text=soda