mirror of
https://github.com/katanemo/plano.git
synced 2026-07-11 16:12:13 +02:00
Merge branch 'main' into adil/add_acm_demo
This commit is contained in:
commit
285a66fdb6
40 changed files with 5270 additions and 1124 deletions
|
|
@ -940,7 +940,7 @@ impl StreamContext {
|
|||
let endpoint = prompt_target.endpoint.unwrap();
|
||||
let path: String = endpoint.path.unwrap_or(String::from("/"));
|
||||
|
||||
// only add params that are of string and number type
|
||||
// only add params that are of string, number and bool type
|
||||
let url_params = tool_params
|
||||
.iter()
|
||||
.filter(|(_, value)| value.is_number() || value.is_string() || value.is_bool())
|
||||
|
|
@ -967,7 +967,7 @@ impl StreamContext {
|
|||
}
|
||||
};
|
||||
|
||||
let http_method = prompt_target.method.unwrap_or_default().to_string();
|
||||
let http_method = endpoint.method.unwrap_or_default().to_string();
|
||||
let mut headers = vec![
|
||||
(ARCH_UPSTREAM_HOST_HEADER, endpoint.name.as_str()),
|
||||
(":method", &http_method),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue