mirror of
https://github.com/katanemo/plano.git
synced 2026-05-10 16:22:42 +02:00
Improve Gradio UI and fix arch_state bug (#227)
This commit is contained in:
parent
662a840ac5
commit
60299244b9
9 changed files with 209 additions and 262 deletions
|
|
@ -900,7 +900,11 @@ impl StreamContext {
|
|||
|
||||
// don't send tools message and api response to chat gpt
|
||||
for m in callout_context.request_body.messages.iter() {
|
||||
if m.role == TOOL_ROLE || m.content.is_none() {
|
||||
// don't send api response and tool calls to upstream LLMs
|
||||
if m.role == TOOL_ROLE
|
||||
|| m.content.is_none()
|
||||
|| (m.tool_calls.is_some() && !m.tool_calls.as_ref().unwrap().is_empty())
|
||||
{
|
||||
continue;
|
||||
}
|
||||
messages.push(m.clone());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue