mirror of
https://github.com/katanemo/plano.git
synced 2026-05-04 05:12:55 +02:00
dont send default target to archfc (#166)
This commit is contained in:
parent
dc3a9813c3
commit
71cdf69f77
1 changed files with 3 additions and 0 deletions
|
|
@ -554,6 +554,9 @@ impl StreamContext {
|
||||||
info!("prompt_target name: {:?}", prompt_target_name);
|
info!("prompt_target name: {:?}", prompt_target_name);
|
||||||
let mut chat_completion_tools: Vec<ChatCompletionTool> = Vec::new();
|
let mut chat_completion_tools: Vec<ChatCompletionTool> = Vec::new();
|
||||||
for pt in self.prompt_targets.values() {
|
for pt in self.prompt_targets.values() {
|
||||||
|
if pt.default.unwrap_or_default() {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
// only extract entity names
|
// only extract entity names
|
||||||
let properties: HashMap<String, FunctionParameter> = match pt.parameters {
|
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.
|
// Clone is unavoidable here because we don't want to move the values out of the prompt target struct.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue