Skip to content

Commit b8a3808

Browse files
committed
fix Mac failing build
1 parent f18db3e commit b8a3808

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

tools/cli/cli-remote.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,8 @@ cli_backend_remote::cli_backend_remote(const std::string & url) : endpoint_url(u
7171
bool 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);

0 commit comments

Comments
 (0)