fix: Do not append todo instructions when function calling is disabled

This commit is contained in:
Dark-Alex-17 committed 2026-05-08 12:06:07 -06:00
1 parent 70a251a7e2
commit 389d0b768f
2 files changed
+4 -3

No files matched your search

+1 -1
View File
@@ -548,7 +548,7 @@ impl RequestContext {
role
};
if self.agent.is_none() {
if self.agent.is_none() && self.app.config.function_calling_support {
let config = self.auto_continue_config();
if config.enabled && config.inject_instructions {
role.append_to_prompt(prompts::DEFAULT_TODO_INSTRUCTIONS);