dont send default target to archfc (#166)

This commit is contained in:
Adil Hafeez 2024-10-09 17:43:02 -07:00 committed by GitHub
parent dc3a9813c3
commit 71cdf69f77
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -554,6 +554,9 @@ impl StreamContext {
info!("prompt_target name: {:?}", prompt_target_name);
let mut chat_completion_tools: Vec<ChatCompletionTool> = Vec::new();
for pt in self.prompt_targets.values() {
if pt.default.unwrap_or_default() {
continue;
}
// only extract entity names
let properties: HashMap<String, FunctionParameter> = match pt.parameters {
// Clone is unavoidable here because we don't want to move the values out of the prompt target struct.