We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4238110 commit f95a46cCopy full SHA for f95a46c
crates/tabby-common/src/registry.rs
@@ -40,10 +40,9 @@ fn models_json_file(registry: &str) -> PathBuf {
40
}
41
42
async fn load_remote_registry(registry: &str) -> Result<Vec<ModelInfo>> {
43
- // Create a client with custom timeout.
44
- // There have been instances where requests did not adhere to the default timeout,
45
- // resulting in requests hanging indefinitely.
46
- // Therefore, it's necessary to specify a custom timeout.
+ // Create an HTTP client with a custom timeout.
+ // This is necessary because the default timeout settings can sometimes cause requests to hang indefinitely.
+ // To prevent such issues, we specify a custom timeout duration.
47
let client = reqwest::Client::builder()
48
.timeout(std::time::Duration::from_secs(5))
49
.build()
0 commit comments