branch: elpa/gptel commit 7acccf8a2d6f113b6ba3686d3b791a784f0d4554 Author: akṣaya śrīnivāsan <aks...@vakra.xyz> Commit: Karthik Chikmagalur <karthikchikmaga...@gmail.com>
gptel-bedrock: Remove Curl stdout option in windows * gptel-bedrock.el (gptel-bedrock--curl-args): Don't output from Curl to stdout when using Windows, as this causes issues (#867). --- gptel-bedrock.el | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/gptel-bedrock.el b/gptel-bedrock.el index 63829583bc..411cdb7838 100644 --- a/gptel-bedrock.el +++ b/gptel-bedrock.el @@ -586,8 +586,10 @@ REGION is one of apac, eu or us." (nconc (list "--user" (format "%s:%s" key-id secret) - "--aws-sigv4" (format "aws:amz:%s:bedrock" region) - "--output" "/dev/stdout") ;; Without this curl swallows the output + "--aws-sigv4" (format "aws:amz:%s:bedrock" region)) + (unless (memq system-type '(windows-nt ms-dos)) + ;; Without this curl swallows the output + (list "--output" "/dev/stdout")) (when token (list (format "-Hx-amz-security-token: %s" token))))))