File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -71,7 +71,8 @@ cli_backend_remote::cli_backend_remote(const std::string & url) : endpoint_url(u
7171bool cli_backend_remote::connect () {
7272 // query /props to get server metadata
7373 try {
74- auto [cli, parts] = common_http_client (endpoint_url);
74+ auto http_res = common_http_client (endpoint_url);
75+ httplib::Client & cli = http_res.first ;
7576 cli.set_connection_timeout (5 , 0 );
7677 cli.set_read_timeout (10 , 0 );
7778
@@ -161,7 +162,8 @@ std::string cli_backend_remote::generate_completion(
161162 bool is_thinking = false ;
162163
163164 try {
164- auto [cli, parts] = common_http_client (endpoint_url);
165+ auto http_res = common_http_client (endpoint_url);
166+ httplib::Client cli = std::move (http_res.first );
165167 cli.set_connection_timeout (10 , 0 );
166168 cli.set_read_timeout (600 , 0 ); // 10 min read timeout for long generations
167169 cli.set_write_timeout (10 , 0 );
You can’t perform that action at this time.
0 commit comments