Skip to content

Commit

Permalink
feat: add data sources prompt to bot creation
Browse files Browse the repository at this point in the history
Initializes the `haveDataSourcesBeenAdded` flag to true when creating a new bot. This enables the bot to utilize data sources if they are available and ensures the chatbot is aware of their existence.
  • Loading branch information
n4ze3m committed Oct 2, 2024
1 parent c24f6b7 commit 4625df6
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/ui/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "app",
"private": true,
"version": "1.11.1",
"version": "1.11.2",
"type": "module",
"scripts": {
"dev": "vite",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "dialoqbase",
"version": "1.11.1",
"version": "1.11.2",
"description": "Create chatbots with ease",
"scripts": {
"ui:dev": "pnpm run --filter ui dev",
Expand Down
1 change: 1 addition & 0 deletions server/src/handlers/api/v1/bot/bot/api.handler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@ export const createBotAPIHandler = async (
qaPrompt: system_prompt || HELPFUL_ASSISTANT_WITH_CONTEXT_PROMPT,
questionGeneratorPrompt:
question_generator_prompt || QUESTION_GENERATOR_PROMPT,
haveDataSourcesBeenAdded: true
},
});

Expand Down

0 comments on commit 4625df6

Please sign in to comment.