File tree Expand file tree Collapse file tree 2 files changed +26
-2
lines changed Expand file tree Collapse file tree 2 files changed +26
-2
lines changed Original file line number Diff line number Diff line change 1
1
# -*- mode: org; -*-
2
2
3
+ * 0.9.9
4
+
5
+ ** New features and UI changes
6
+
7
+ - The new option ~gptel-curl-extra-args~ can be used to specify extra
8
+ arguments to the Curl command used for the request. This is the
9
+ global version of the gptel-backend-specific ~:curl-args~ slot,
10
+ which can be used to specify Curl arguments when using a specific
11
+ backend.
12
+
3
13
* 0.9.8 2025-03-13
4
14
5
15
Version 0.9.8 adds support for new Gemini, Anthropic, OpenAI,
@@ -36,8 +46,7 @@ feature and control of LLM "reasoning" content.
36
46
37
47
- Add support for Perplexity. While gptel supported Perplexity in
38
48
earlier releases by reusing its OpenAI support, there is now first
39
- class support for the Perplexity API, including citations. (This
40
- feature was added by @pirminj.)
49
+ class support for the Perplexity API, including citations.
41
50
42
51
- Add support for DeepSeek. While gptel supported DeepSeek in earlier
43
52
releases by reusing its OpenAI support, there is now first class
Original file line number Diff line number Diff line change 38
38
39
39
(declare-function gptel--stream-convert-markdown->org " gptel-org" )
40
40
41
+ (defcustom gptel-curl-extra-args nil
42
+ " Extra arguments to pass to Curl when sending queries.
43
+
44
+ This should be a list of strings, each one a Curl command line
45
+ argument. Note that these should not conflict with the options
46
+ in `gptel-curl--common-args' , which gptel requires for correct
47
+ functioning.
48
+
49
+ If you want to specify extra arguments only when using a specific
50
+ gptel backend, use the `:curl-args' slot of the backend instead.
51
+ See `gptel-backend' ."
52
+ :group 'gptel
53
+ :type '(repeat string))
54
+
41
55
(defconst gptel-curl--common-args
42
56
(if (memq system-type '(windows-nt ms-dos))
43
57
'(" --disable" " --location" " --silent" " -XPOST"
@@ -73,6 +87,7 @@ REQUEST-DATA is the data to send, TOKEN is a unique identifier."
73
87
(gptel--log data-json " request body" ))
74
88
(append
75
89
gptel-curl--common-args
90
+ gptel-curl-extra-args
76
91
(gptel-backend-curl-args gptel-backend)
77
92
(list (format " -w(%s . %% {size_header}) " token))
78
93
(if (length< data-json gptel-curl-file-size-threshold)
You can’t perform that action at this time.
0 commit comments