mirror of
https://github.com/katanemo/plano.git
synced 2026-05-05 05:42:49 +02:00
Send per prompt target system prompt (#368)
* update prompt target name after arch_fc has identified tool * add test for currency exchange
This commit is contained in:
parent
a24d62af1a
commit
3fc21de60c
2 changed files with 20 additions and 2 deletions
|
|
@ -263,6 +263,10 @@ impl StreamContext {
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// update prompt target name from the tool call
|
||||||
|
callout_context.prompt_target_name =
|
||||||
|
Some(self.tool_calls.as_ref().unwrap()[0].function.name.clone());
|
||||||
|
|
||||||
self.schedule_api_call_request(callout_context);
|
self.schedule_api_call_request(callout_context);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -100,3 +100,17 @@ Content-Type: application/json
|
||||||
],
|
],
|
||||||
"stream": true
|
"stream": true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
### currency conversion test
|
||||||
|
POST {{prompt_endpoint}}/v1/chat/completions HTTP/1.1
|
||||||
|
Content-Type: application/json
|
||||||
|
|
||||||
|
{
|
||||||
|
"model": "--",
|
||||||
|
"messages": [
|
||||||
|
{
|
||||||
|
"role": "user",
|
||||||
|
"content": "can you please convert 100 jpy"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue