From 71cdf69f77f2874de8d1ff310dd06af7c4e01928 Mon Sep 17 00:00:00 2001 From: Adil Hafeez Date: Wed, 9 Oct 2024 17:43:02 -0700 Subject: [PATCH] dont send default target to archfc (#166) --- arch/src/stream_context.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/src/stream_context.rs b/arch/src/stream_context.rs index 0f9f9979..f9c4be65 100644 --- a/arch/src/stream_context.rs +++ b/arch/src/stream_context.rs @@ -554,6 +554,9 @@ impl StreamContext { info!("prompt_target name: {:?}", prompt_target_name); let mut chat_completion_tools: Vec = Vec::new(); for pt in self.prompt_targets.values() { + if pt.default.unwrap_or_default() { + continue; + } // only extract entity names let properties: HashMap = match pt.parameters { // Clone is unavoidable here because we don't want to move the values out of the prompt target struct.