[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/gptel 444a43134f 083/273: gptel-curl: Fix current-buffer f
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/gptel 444a43134f 083/273: gptel-curl: Fix current-buffer for Curl requests |
Date: |
Wed, 1 May 2024 10:01:49 -0400 (EDT) |
branch: elpa/gptel
commit 444a43134f40c351cb8698375636af88fb4d1ac5
Author: Karthik Chikmagalur <karthikchikmagalur@gmail.com>
Commit: Karthik Chikmagalur <karthikchikmagalur@gmail.com>
gptel-curl: Fix current-buffer for Curl requests
* gptel-curl.el (gptel-curl-get-response): Set buffer-local model
parameters in
the correct (i.e. gptel) buffer, not in Curl's process buffer. This fixes
#43.
---
gptel-curl.el | 14 +++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)
diff --git a/gptel-curl.el b/gptel-curl.el
index 58695c8c62..76f0368b34 100644
--- a/gptel-curl.el
+++ b/gptel-curl.el
@@ -72,13 +72,13 @@ INFO is a plist with the following keys:
Call CALLBACK with the response and INFO afterwards. If omitted
the response is inserted into the current buffer after point."
- (with-current-buffer (generate-new-buffer "*gptel-curl*")
- (let* ((token (md5 (format "%s%s%s%s"
- (random) (emacs-pid) (user-full-name)
- (recent-keys))))
- (args (gptel-curl--get-args (plist-get info :prompt) token))
- (process (apply #'start-process "gptel-curl" (current-buffer)
- "curl" args)))
+ (let* ((token (md5 (format "%s%s%s%s"
+ (random) (emacs-pid) (user-full-name)
+ (recent-keys))))
+ (args (gptel-curl--get-args (plist-get info :prompt) token))
+ (process (apply #'start-process "gptel-curl"
+ (generate-new-buffer "*gptel-curl*") "curl" args)))
+ (with-current-buffer (process-buffer process)
(set-process-query-on-exit-flag process nil)
(setf (alist-get process gptel-curl--process-alist)
(nconc (list :token token
- [nongnu] elpa/gptel cd22ea836c 045/273: Add autoload for gptel-send, (continued)
- [nongnu] elpa/gptel cd22ea836c 045/273: Add autoload for gptel-send, ELPA Syncer, 2024/05/01
- [nongnu] elpa/gptel f843614f5b 048/273: gptel: Set gptel-api-key if reading from minibuffer, ELPA Syncer, 2024/05/01
- [nongnu] elpa/gptel a500c76a68 053/273: Encode a lambda-provided API key as utf-8, ELPA Syncer, 2024/05/01
- [nongnu] elpa/gptel c22c59d20a 061/273: gptel: Add post-response hook and fix org converter, ELPA Syncer, 2024/05/01
- [nongnu] elpa/gptel 1cd0f58552 067/273: gptel-curl: Better error handling when streaming, ELPA Syncer, 2024/05/01
- [nongnu] elpa/gptel 44045be327 072/273: gptel: gptel-mode is local by default, ELPA Syncer, 2024/05/01
- [nongnu] elpa/gptel a43f5ac5fa 064/273: gptel: Rename stream-related vars and defuns, ELPA Syncer, 2024/05/01
- [nongnu] elpa/gptel 2e34981aa0 062/273: gptel: Rename :insert-marker, ELPA Syncer, 2024/05/01
- [nongnu] elpa/gptel 23332a9bc5 077/273: gptel-transient: Add outline-minor-mode support, ELPA Syncer, 2024/05/01
- [nongnu] elpa/gptel 00abbf7597 081/273: gptel-transient: More visual feedback, ELPA Syncer, 2024/05/01
- [nongnu] elpa/gptel 444a43134f 083/273: gptel-curl: Fix current-buffer for Curl requests,
ELPA Syncer <=
- [nongnu] elpa/gptel 37c381c2e5 092/273: README: Update with acknowledgments and more, ELPA Syncer, 2024/05/01
- [nongnu] elpa/gptel d13b0c4ab7 088/273: gptel-transient: Fix gptel-system-prompt, ELPA Syncer, 2024/05/01
- [nongnu] elpa/gptel 6202474a6e 080/273: README: Update with changes to gptel-menu, ELPA Syncer, 2024/05/01
- [nongnu] elpa/gptel 075609544a 085/273: README: Update instructions for setting key (#46), ELPA Syncer, 2024/05/01
- [nongnu] elpa/gptel a7207a3835 097/273: README: Add TOC, ELPA Syncer, 2024/05/01
- [nongnu] elpa/gptel f218388d4d 082/273: gptel-transient: Fix bug when sending in existing session, ELPA Syncer, 2024/05/01
- [nongnu] elpa/gptel 30700cc88a 096/273: README: Mention extensions, gptel-proxy, ELPA Syncer, 2024/05/01
- [nongnu] elpa/gptel 09729ee718 089/273: gptel: Create customization group, ELPA Syncer, 2024/05/01
- [nongnu] elpa/gptel ac754ceb2a 086/273: gptel: Handle read-only gptel-buffers, ELPA Syncer, 2024/05/01
- [nongnu] elpa/gptel cc6c5e7321 104/273: gptel: saving and restoring state, and limiting context, ELPA Syncer, 2024/05/01