mirror of
https://github.com/katanemo/plano.git
synced 2026-06-20 15:28:07 +02:00
use shuguang's prompt targets
This commit is contained in:
parent
b960862baf
commit
8d59586dfb
2 changed files with 11 additions and 17 deletions
|
|
@ -322,16 +322,6 @@ impl StreamContext {
|
|||
|
||||
let (path, body) = match http_method {
|
||||
HttpMethod::Get => {
|
||||
let additional_params_query = additional_params
|
||||
.iter()
|
||||
.map(|(k, v)| format!("{}={}", k, v))
|
||||
.collect::<Vec<String>>()
|
||||
.join("&");
|
||||
let query_string = if query_string.is_empty() {
|
||||
additional_params_query
|
||||
} else {
|
||||
format!("{}&{}", query_string, additional_params_query)
|
||||
};
|
||||
(format!("{}?{}", path_with_params, query_string), None)
|
||||
}
|
||||
HttpMethod::Post => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue