From ec0e461b351d4b1ff388d3e4ffb8f898ddac141e Mon Sep 17 00:00:00 2001 From: Nick Anderson Date: Sat, 4 Nov 2023 22:58:09 -0500 Subject: [PATCH] gptel-curl: Increased curl timeout (#127) gptel-curl.arg (gptel-curl--get-args): Increase curl timeout. Often local LLMs will offload a query to CPU if there is not enough VRAM or in the case of an unsupported GPU. When a query is offloaded to the CPU responses can be significantly slower. If curl times out early the user will not get the response from the LLM back in Emacs. This change increases the timeout for curl from 60s to 300s to make gptel usable in slower environments. Closes #125 --- gptel-curl.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gptel-curl.el b/gptel-curl.el index 6a02117..ae4c993 100644 --- a/gptel-curl.el +++ b/gptel-curl.el @@ -55,7 +55,7 @@ PROMPTS is the data to send, TOKEN is a unique identifier." (list "--location" "--silent" "--compressed" "--disable" (format "-X%s" "POST") (format "-w(%s . %%{size_header})" token) - (format "-m%s" 60) + (format "-m%s" 300) "-D-" (format "-d%s" data)) (when (not (string-empty-p gptel-proxy))