Skip to content

Commit

Permalink
Update default prompt tool use if visu enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
PopDaph committed Dec 4, 2024
1 parent 516c9e7 commit 2682659
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion front/lib/api/assistant/agent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,10 @@ async function* runMultiActionsAgent(
}

let fallbackPrompt = "You are a conversational assistant";
if (agentConfiguration.actions.length) {
if (
agentConfiguration.actions.length ||
agentConfiguration.visualizationEnabled
) {
fallbackPrompt += " with access to tool use.";
} else {
fallbackPrompt += ".";
Expand Down

0 comments on commit 2682659

Please sign in to comment.