You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* gptel.el (gptel-backend, gptel-model, gptel-temperature,
gptel-max-tokens, gptel--num-messages-to-send,
gptel--system-message): Make all model/request paramters global
variables, i.e. not buffer-local by default. This is following
the discussion in #249.
* gptel-transient.el (gptel-menu, gptel-system-prompt--setup,
gptel-system-prompt, gptel--suffix-system-message,
gptel--infix-provider, gptel--infix-temperature, gptel--switches,
gptel--set-buffer-locally, gptel--set-with-scope): and associated
transient methods: add a toggle `gptel--set-buffer-locally` to
allow model parameters to be set buffer-locally. The function
`gptel--set-with-scope` can be used to reset a variable or set it
buffer-locally.
Reorder gptel-transient so all the custom classes, methods and
utility functions are at the top.
* README.org (all backend sections): Replace `setq-default` with
setq in the recommended configuration.
Copy file name to clipboardExpand all lines: README.org
+31-32
Original file line number
Diff line number
Diff line change
@@ -160,10 +160,10 @@ You can pick this backend from the menu when using gptel. (see [[#usage][Usage]]
160
160
161
161
***** (Optional) Set as the default gptel backend
162
162
163
-
The above code makes the backend available to select. If you want it to be the default backend for gptel, you can set this as the default value of =gptel-backend=. Use this instead of the above.
163
+
The above code makes the backend available to select. If you want it to be the default backend for gptel, you can set this as the value of =gptel-backend=. Use this instead of the above.
164
164
#+begin_src emacs-lisp
165
165
;; OPTIONAL configuration
166
-
(setq-default
166
+
(setq
167
167
gptel-model "gpt-3.5-turbo"
168
168
gptel-backend (gptel-make-azure "Azure-1"
169
169
:protocol "https"
@@ -192,10 +192,10 @@ You can pick this backend from the menu when using gptel (see [[#usage][Usage]])
192
192
193
193
***** (Optional) Set as the default gptel backend
194
194
195
-
The above code makes the backend available to select. If you want it to be the default backend for gptel, you can set this as the default value of =gptel-backend=. Use this instead of the above. Additionally you may want to increase the response token size since GPT4All uses very short (often truncated) responses by default.
195
+
The above code makes the backend available to select. If you want it to be the default backend for gptel, you can set this as the value of =gptel-backend=. Use this instead of the above. Additionally you may want to increase the response token size since GPT4All uses very short (often truncated) responses by default.
196
196
#+begin_src emacs-lisp
197
197
;; OPTIONAL configuration
198
-
(setq-default
198
+
(setq
199
199
gptel-max-tokens 500
200
200
gptel-model "mistral-7b-openorca.Q4_0.gguf"
201
201
gptel-backend (gptel-make-gpt4all "GPT4All"
@@ -223,10 +223,10 @@ You can pick this backend from the menu when using gptel (see [[#usage][Usage]])
223
223
224
224
***** (Optional) Set as the default gptel backend
225
225
226
-
The above code makes the backend available to select. If you want it to be the default backend for gptel, you can set this as the default value of =gptel-backend=. Use this instead of the above.
226
+
The above code makes the backend available to select. If you want it to be the default backend for gptel, you can set this as the value of =gptel-backend=. Use this instead of the above.
227
227
#+begin_src emacs-lisp
228
228
;; OPTIONAL configuration
229
-
(setq-default
229
+
(setq
230
230
gptel-model "mistral:latest"
231
231
gptel-backend (gptel-make-ollama "Ollama"
232
232
:host "localhost:11434"
@@ -251,10 +251,10 @@ You can pick this backend from the menu when using gptel (see [[#usage][Usage]])
251
251
252
252
***** (Optional) Set as the default gptel backend
253
253
254
-
The above code makes the backend available to select. If you want it to be the default backend for gptel, you can set this as the default value of =gptel-backend=. Use this instead of the above.
254
+
The above code makes the backend available to select. If you want it to be the default backend for gptel, you can set this as the value of =gptel-backend=. Use this instead of the above.
255
255
#+begin_src emacs-lisp
256
256
;; OPTIONAL configuration
257
-
(setq-default
257
+
(setq
258
258
gptel-model "gemini-pro"
259
259
gptel-backend (gptel-make-gemini "Gemini"
260
260
:key "YOUR_GEMINI_API_KEY"
@@ -285,10 +285,10 @@ You can pick this backend from the menu when using gptel (see [[#usage][Usage]])
285
285
286
286
***** (Optional) Set as the default gptel backend
287
287
288
-
The above code makes the backend available to select. If you want it to be the default backend for gptel, you can set this as the default value of =gptel-backend=. Use this instead of the above.
288
+
The above code makes the backend available to select. If you want it to be the default backend for gptel, you can set this as the value of =gptel-backend=. Use this instead of the above.
289
289
#+begin_src emacs-lisp
290
290
;; OPTIONAL configuration
291
-
(setq-default
291
+
(setq
292
292
gptel-model "test"
293
293
gptel-backend (gptel-make-openai "llama-cpp"
294
294
:stream t
@@ -319,10 +319,10 @@ You can pick this backend and the model (fastgpt/summarizer) from the transient
319
319
320
320
***** (Optional) Set as the default gptel backend
321
321
322
-
The above code makes the backend available to select. If you want it to be the default backend for gptel, you can set this as the default value of =gptel-backend=. Use this instead of the above.
322
+
The above code makes the backend available to select. If you want it to be the default backend for gptel, you can set this as the value of =gptel-backend=. Use this instead of the above.
323
323
#+begin_src emacs-lisp
324
324
;; OPTIONAL configuration
325
-
(setq-default
325
+
(setq
326
326
gptel-model "fastgpt"
327
327
gptel-backend (gptel-make-kagi "Kagi"
328
328
:key "YOUR_KAGI_API_KEY"))
@@ -352,10 +352,10 @@ You can pick this backend from the menu when using gptel (see [[#usage][Usage]])
352
352
353
353
***** (Optional) Set as the default gptel backend
354
354
355
-
The above code makes the backend available to select. If you want it to be the default backend for gptel, you can set this as the default value of =gptel-backend=. Use this instead of the above.
355
+
The above code makes the backend available to select. If you want it to be the default backend for gptel, you can set this as the value of =gptel-backend=. Use this instead of the above.
@@ -387,10 +387,10 @@ You can pick this backend from the menu when using gptel (see [[#usage][Usage]])
387
387
388
388
***** (Optional) Set as the default gptel backend
389
389
390
-
The above code makes the backend available to select. If you want it to be the default backend for gptel, you can set this as the default value of =gptel-backend=. Use this instead of the above.
390
+
The above code makes the backend available to select. If you want it to be the default backend for gptel, you can set this as the value of =gptel-backend=. Use this instead of the above.
@@ -424,10 +424,10 @@ You can pick this backend from the menu when using gptel (see [[#usage][Usage]])
424
424
425
425
***** (Optional) Set as the default gptel backend
426
426
427
-
The above code makes the backend available to select. If you want it to be the default backend for gptel, you can set this as the default value of =gptel-backend=. Use this instead of the above.
427
+
The above code makes the backend available to select. If you want it to be the default backend for gptel, you can set this as the value of =gptel-backend=. Use this instead of the above.
428
428
#+begin_src emacs-lisp
429
429
;; OPTIONAL configuration
430
-
(setq-default
430
+
(setq
431
431
gptel-model "pplx-7b-chat"
432
432
gptel-backend
433
433
(gptel-make-openai "Perplexity"
@@ -458,10 +458,10 @@ You can pick this backend from the menu when using gptel (see [[#usage][Usage]])
458
458
459
459
***** (Optional) Set as the default gptel backend
460
460
461
-
The above code makes the backend available to select. If you want it to be the default backend for gptel, you can set this as the default value of =gptel-backend=. Use this instead of the above.
461
+
The above code makes the backend available to select. If you want it to be the default backend for gptel, you can set this as the value of =gptel-backend=. Use this instead of the above.
462
462
#+begin_src emacs-lisp
463
463
;; OPTIONAL configuration
464
-
(setq-default
464
+
(setq
465
465
gptel-model "claude-3-sonnet-20240229" ; "claude-3-opus-20240229" also available
466
466
gptel-backend (gptel-make-anthropic "Claude"
467
467
:stream t :key "your-api-key"))
@@ -489,20 +489,19 @@ You can pick this backend from the menu when using gptel (see [[#usage][Usage]])
489
489
490
490
***** (Optional) Set as the default gptel backend
491
491
492
-
The above code makes the backend available to select. If you want it to be the default backend for gptel, you can set this as the default value of =gptel-backend=. Use this instead of the above.
492
+
The above code makes the backend available to select. If you want it to be the default backend for gptel, you can set this as the value of =gptel-backend=. Use this instead of the above.
0 commit comments