gptel-autoloads.el (17769B)
1 ;;; gptel-autoloads.el --- automatically extracted autoloads (do not edit) -*- lexical-binding: t -*- 2 ;; Generated by the `loaddefs-generate' function. 3 4 ;; This file is part of GNU Emacs. 5 6 ;;; Code: 7 8 (add-to-list 'load-path (or (and load-file-name (directory-file-name (file-name-directory load-file-name))) (car load-path))) 9 10 11 12 ;;; Generated autoloads from gptel.el 13 14 (autoload 'gptel-mode "gptel" "\ 15 Minor mode for interacting with LLMs. 16 17 This is a minor mode. If called interactively, toggle the `GPTel 18 mode' mode. If the prefix argument is positive, enable the mode, 19 and if it is zero or negative, disable the mode. 20 21 If called from Lisp, toggle the mode if ARG is `toggle'. Enable 22 the mode if ARG is nil, omitted, or is a positive number. 23 Disable the mode if ARG is a negative number. 24 25 To check whether the minor mode is enabled in the current buffer, 26 evaluate `gptel-mode'. 27 28 The mode's hook is called both when the mode is enabled and when 29 it is disabled. 30 31 \\{gptel-mode-map} 32 33 (fn &optional ARG)" t) 34 (autoload 'gptel-send "gptel" "\ 35 Submit this prompt to the current LLM backend. 36 37 By default, the contents of the buffer up to the cursor position 38 are sent. If the region is active, its contents are sent 39 instead. 40 41 The response from the LLM is inserted below the cursor position 42 at the time of sending. To change this behavior or model 43 parameters, use prefix arg ARG activate a transient menu with 44 more options instead. 45 46 This command is asynchronous, you can continue to use Emacs while 47 waiting for the response. 48 49 (fn &optional ARG)" t) 50 (autoload 'gptel "gptel" "\ 51 Switch to or start a chat session with NAME. 52 53 Ask for API-KEY if `gptel-api-key' is unset. 54 55 If region is active, use it as the INITIAL prompt. Returns the 56 buffer created or switched to. 57 58 INTERACTIVEP is t when gptel is called interactively. 59 60 (fn NAME &optional _ INITIAL INTERACTIVEP)" t) 61 (register-definition-prefixes "gptel" '("gptel-")) 62 63 64 ;;; Generated autoloads from gptel-anthropic.el 65 66 (autoload 'gptel-make-anthropic "gptel-anthropic" "\ 67 Register an Anthropic API-compatible backend for gptel with NAME. 68 69 Keyword arguments: 70 71 CURL-ARGS (optional) is a list of additional Curl arguments. 72 73 HOST (optional) is the API host, \"api.anthropic.com\" by default. 74 75 MODELS is a list of available model names, as symbols. 76 Additionally, you can specify supported LLM capabilities like 77 vision or tool-use by appending a plist to the model with more 78 information, in the form 79 80 (model-name . plist) 81 82 For a list of currently recognized plist keys, see 83 `gptel--anthropic-models'. An example of a model specification 84 including both kinds of specs: 85 86 :models 87 \\='(claude-3-haiku-20240307 ;Simple specs 88 claude-3-opus-20240229 89 (claude-3-5-sonnet-20240620 ;Full spec 90 :description \"Balance of intelligence and speed\" 91 :capabilities (media tool json) 92 :mime-types 93 (\"image/jpeg\" \"image/png\" \"image/gif\" \"image/webp\"))) 94 95 STREAM is a boolean to toggle streaming responses, defaults to 96 false. 97 98 PROTOCOL (optional) specifies the protocol, https by default. 99 100 ENDPOINT (optional) is the API endpoint for completions, defaults to 101 \"/v1/messages\". 102 103 HEADER (optional) is for additional headers to send with each 104 request. It should be an alist or a function that retuns an 105 alist, like: 106 ((\"Content-Type\" . \"application/json\")) 107 108 KEY is a variable whose value is the API key, or function that 109 returns the key. 110 111 REQUEST-PARAMS (optional) is a plist of additional HTTP request 112 parameters (as plist keys) and values supported by the API. Use 113 these to set parameters that gptel does not provide user options 114 for. 115 116 (fn NAME &key CURL-ARGS STREAM KEY REQUEST-PARAMS (HEADER (lambda nil (when-let (key (gptel--get-api-key)) \\=`((\"x-api-key\" \\=\\, key) (\"anthropic-version\" . \"2023-06-01\") (\"anthropic-beta\" . \"pdfs-2024-09-25\") (\"anthropic-beta\" . \"prompt-caching-2024-07-31\"))))) (MODELS gptel--anthropic-models) (HOST \"api.anthropic.com\") (PROTOCOL \"https\") (ENDPOINT \"/v1/messages\"))") 117 (function-put 'gptel-make-anthropic 'lisp-indent-function 1) 118 (register-definition-prefixes "gptel-anthropic" '("gptel--anthropic-")) 119 120 121 ;;; Generated autoloads from gptel-context.el 122 123 (autoload 'gptel-add "gptel-context" "Add/remove regions or buffers from gptel's context." t) 124 (autoload 'gptel-add-file "gptel-context" "Add files to gptel's context." t) 125 (autoload 'gptel-context--wrap "gptel-context" "\ 126 Wrap MESSAGE with context string. 127 128 (fn MESSAGE)") 129 (autoload 'gptel-context--collect "gptel-context" "\ 130 Get the list of all active context overlays.") 131 (register-definition-prefixes "gptel-context" '("gptel-")) 132 133 134 ;;; Generated autoloads from gptel-curl.el 135 136 (autoload 'gptel-curl-get-response "gptel-curl" "\ 137 Retrieve response to prompt in INFO. 138 139 INFO is a plist with the following keys: 140 - :data (the data being sent) 141 - :buffer (the gptel buffer) 142 - :position (marker at which to insert the response). 143 144 Call CALLBACK with the response and INFO afterwards. If omitted 145 the response is inserted into the current buffer after point. 146 147 (fn INFO &optional CALLBACK)") 148 (register-definition-prefixes "gptel-curl" '("gptel-curl--")) 149 150 151 ;;; Generated autoloads from gptel-gemini.el 152 153 (autoload 'gptel-make-gemini "gptel-gemini" "\ 154 Register a Gemini backend for gptel with NAME. 155 156 Keyword arguments: 157 158 CURL-ARGS (optional) is a list of additional Curl arguments. 159 160 HOST (optional) is the API host, defaults to 161 \"generativelanguage.googleapis.com\". 162 163 MODELS is a list of available model names, as symbols. 164 Additionally, you can specify supported LLM capabilities like 165 vision or tool-use by appending a plist to the model with more 166 information, in the form 167 168 (model-name . plist) 169 170 For a list of currently recognized plist keys, see 171 `gptel--gemini-models'. An example of a model specification 172 including both kinds of specs: 173 174 :models 175 \\='(gemini-pro ;Simple specs 176 gemini-1.5-flash 177 (gemini-1.5-pro-latest ;Full spec 178 :description 179 \"Complex reasoning tasks, problem solving and data extraction\" 180 :capabilities (tool json) 181 :mime-types 182 (\"image/jpeg\" \"image/png\" \"image/webp\" \"image/heic\"))) 183 184 185 STREAM is a boolean to enable streaming responses, defaults to 186 false. 187 188 PROTOCOL (optional) specifies the protocol, \"https\" by default. 189 190 ENDPOINT (optional) is the API endpoint for completions, defaults to 191 \"/v1beta/models\". 192 193 HEADER (optional) is for additional headers to send with each 194 request. It should be an alist or a function that retuns an 195 alist, like: 196 ((\"Content-Type\" . \"application/json\")) 197 198 KEY (optional) is a variable whose value is the API key, or 199 function that returns the key. 200 201 REQUEST-PARAMS (optional) is a plist of additional HTTP request 202 parameters (as plist keys) and values supported by the API. Use 203 these to set parameters that gptel does not provide user options 204 for. 205 206 (fn NAME &key CURL-ARGS HEADER KEY REQUEST-PARAMS (STREAM nil) (HOST \"generativelanguage.googleapis.com\") (PROTOCOL \"https\") (MODELS gptel--gemini-models) (ENDPOINT \"/v1beta/models\"))") 207 (function-put 'gptel-make-gemini 'lisp-indent-function 1) 208 (register-definition-prefixes "gptel-gemini" '("gptel--gemini-")) 209 210 211 ;;; Generated autoloads from gptel-kagi.el 212 213 (autoload 'gptel-make-kagi "gptel-kagi" "\ 214 Register a Kagi FastGPT backend for gptel with NAME. 215 216 Keyword arguments: 217 218 CURL-ARGS (optional) is a list of additional Curl arguments. 219 220 HOST is the Kagi host (with port), defaults to \"kagi.com\". 221 222 MODELS is a list of available Kagi models: only fastgpt is supported. 223 224 STREAM is a boolean to toggle streaming responses, defaults to 225 false. Kagi does not support a streaming API yet. 226 227 PROTOCOL (optional) specifies the protocol, https by default. 228 229 ENDPOINT (optional) is the API endpoint for completions, defaults to 230 \"/api/v0/fastgpt\". 231 232 HEADER (optional) is for additional headers to send with each 233 request. It should be an alist or a function that retuns an 234 alist, like: 235 ((\"Content-Type\" . \"application/json\")) 236 237 KEY (optional) is a variable whose value is the API key, or 238 function that returns the key. 239 240 Example: 241 ------- 242 243 (gptel-make-kagi \"Kagi\" :key my-kagi-key) 244 245 (fn NAME &key CURL-ARGS STREAM KEY (HOST \"kagi.com\") (HEADER (lambda nil \\=`((\"Authorization\" \\=\\, (concat \"Bot \" (gptel--get-api-key)))))) (MODELS \\='((fastgpt :capabilities (nosystem)) (summarize:cecil :capabilities (nosystem)) (summarize:agnes :capabilities (nosystem)) (summarize:daphne :capabilities (nosystem)) (summarize:muriel :capabilities (nosystem)))) (PROTOCOL \"https\") (ENDPOINT \"/api/v0/\"))") 246 (function-put 'gptel-make-kagi 'lisp-indent-function 1) 247 248 249 ;;; Generated autoloads from gptel-ollama.el 250 251 (autoload 'gptel-make-ollama "gptel-ollama" "\ 252 Register an Ollama backend for gptel with NAME. 253 254 Keyword arguments: 255 256 CURL-ARGS (optional) is a list of additional Curl arguments. 257 258 HOST is where Ollama runs (with port), defaults to localhost:11434 259 260 MODELS is a list of available model names, as symbols. 261 Additionally, you can specify supported LLM capabilities like 262 vision or tool-use by appending a plist to the model with more 263 information, in the form 264 265 (model-name . plist) 266 267 Currently recognized plist keys are :description, :capabilities 268 and :mime-types. An example of a model specification including 269 both kinds of specs: 270 271 :models 272 \\='(mistral:latest ;Simple specs 273 openhermes:latest 274 (llava:13b ;Full spec 275 :description 276 \"Llava 1.6: Large Lanuage and Vision Assistant\" 277 :capabilities (media) 278 :mime-types (\"image/jpeg\" \"image/png\"))) 279 280 281 STREAM is a boolean to toggle streaming responses, defaults to 282 false. 283 284 PROTOCOL (optional) specifies the protocol, http by default. 285 286 ENDPOINT (optional) is the API endpoint for completions, defaults to 287 \"/api/generate\". 288 289 HEADER (optional) is for additional headers to send with each 290 request. It should be an alist or a function that retuns an 291 alist, like: 292 ((\"Content-Type\" . \"application/json\")) 293 294 KEY (optional) is a variable whose value is the API key, or 295 function that returns the key. This is typically not required 296 for local models like Ollama. 297 298 REQUEST-PARAMS (optional) is a plist of additional HTTP request 299 parameters (as plist keys) and values supported by the API. Use 300 these to set parameters that gptel does not provide user options 301 for. 302 303 Example: 304 ------- 305 306 (gptel-make-ollama 307 \"Ollama\" 308 :host \"localhost:11434\" 309 :models \\='(mistral:latest) 310 :stream t) 311 312 (fn NAME &key CURL-ARGS HEADER KEY MODELS STREAM REQUEST-PARAMS (HOST \"localhost:11434\") (PROTOCOL \"http\") (ENDPOINT \"/api/chat\"))") 313 (function-put 'gptel-make-ollama 'lisp-indent-function 1) 314 (register-definition-prefixes "gptel-ollama" '("gptel--ollama-")) 315 316 317 ;;; Generated autoloads from gptel-openai.el 318 319 (autoload 'gptel-make-openai "gptel-openai" "\ 320 Register an OpenAI API-compatible backend for gptel with NAME. 321 322 Keyword arguments: 323 324 CURL-ARGS (optional) is a list of additional Curl arguments. 325 326 HOST (optional) is the API host, typically \"api.openai.com\". 327 328 MODELS is a list of available model names, as symbols. 329 Additionally, you can specify supported LLM capabilities like 330 vision or tool-use by appending a plist to the model with more 331 information, in the form 332 333 (model-name . plist) 334 335 For a list of currently recognized plist keys, see 336 `gptel--openai-models'. An example of a model specification 337 including both kinds of specs: 338 339 :models 340 \\='(gpt-3.5-turbo ;Simple specs 341 gpt-4-turbo 342 (gpt-4o-mini ;Full spec 343 :description 344 \"Affordable and intelligent small model for lightweight tasks\" 345 :capabilities (media tool json url) 346 :mime-types 347 (\"image/jpeg\" \"image/png\" \"image/gif\" \"image/webp\"))) 348 349 STREAM is a boolean to toggle streaming responses, defaults to 350 false. 351 352 PROTOCOL (optional) specifies the protocol, https by default. 353 354 ENDPOINT (optional) is the API endpoint for completions, defaults to 355 \"/v1/chat/completions\". 356 357 HEADER (optional) is for additional headers to send with each 358 request. It should be an alist or a function that retuns an 359 alist, like: 360 ((\"Content-Type\" . \"application/json\")) 361 362 KEY (optional) is a variable whose value is the API key, or 363 function that returns the key. 364 365 REQUEST-PARAMS (optional) is a plist of additional HTTP request 366 parameters (as plist keys) and values supported by the API. Use 367 these to set parameters that gptel does not provide user options 368 for. 369 370 (fn NAME &key CURL-ARGS MODELS STREAM KEY REQUEST-PARAMS (HEADER (lambda nil (when-let (key (gptel--get-api-key)) \\=`((\"Authorization\" \\=\\, (concat \"Bearer \" key)))))) (HOST \"api.openai.com\") (PROTOCOL \"https\") (ENDPOINT \"/v1/chat/completions\"))") 371 (function-put 'gptel-make-openai 'lisp-indent-function 1) 372 (autoload 'gptel-make-azure "gptel-openai" "\ 373 Register an Azure backend for gptel with NAME. 374 375 Keyword arguments: 376 377 CURL-ARGS (optional) is a list of additional Curl arguments. 378 379 HOST is the API host. 380 381 MODELS is a list of available model names, as symbols. 382 383 STREAM is a boolean to toggle streaming responses, defaults to 384 false. 385 386 PROTOCOL (optional) specifies the protocol, https by default. 387 388 ENDPOINT is the API endpoint for completions. 389 390 HEADER (optional) is for additional headers to send with each 391 request. It should be an alist or a function that retuns an 392 alist, like: 393 ((\"Content-Type\" . \"application/json\")) 394 395 KEY (optional) is a variable whose value is the API key, or 396 function that returns the key. 397 398 REQUEST-PARAMS (optional) is a plist of additional HTTP request 399 parameters (as plist keys) and values supported by the API. Use 400 these to set parameters that gptel does not provide user options 401 for. 402 403 Example: 404 ------- 405 406 (gptel-make-azure 407 \"Azure-1\" 408 :protocol \"https\" 409 :host \"RESOURCE_NAME.openai.azure.com\" 410 :endpoint 411 \"/openai/deployments/DEPLOYMENT_NAME/completions?api-version=2023-05-15\" 412 :stream t 413 :models \\='(gpt-3.5-turbo gpt-4)) 414 415 (fn NAME &key CURL-ARGS HOST (PROTOCOL \"https\") (HEADER (lambda nil \\=`((\"api-key\" \\=\\, (gptel--get-api-key))))) (KEY \\='gptel-api-key) MODELS STREAM ENDPOINT REQUEST-PARAMS)") 416 (function-put 'gptel-make-azure 'lisp-indent-function 1) 417 (defalias 'gptel-make-gpt4all 'gptel-make-openai "\ 418 Register a GPT4All backend for gptel with NAME. 419 420 Keyword arguments: 421 422 CURL-ARGS (optional) is a list of additional Curl arguments. 423 424 HOST is where GPT4All runs (with port), typically localhost:4891 425 426 MODELS is a list of available model names, as symbols. 427 428 STREAM is a boolean to toggle streaming responses, defaults to 429 false. 430 431 PROTOCOL specifies the protocol, https by default. 432 433 ENDPOINT (optional) is the API endpoint for completions, defaults to 434 \"/api/v1/completions\" 435 436 HEADER (optional) is for additional headers to send with each 437 request. It should be an alist or a function that retuns an 438 alist, like: 439 ((\"Content-Type\" . \"application/json\")) 440 441 KEY (optional) is a variable whose value is the API key, or 442 function that returns the key. This is typically not required for 443 local models like GPT4All. 444 445 REQUEST-PARAMS (optional) is a plist of additional HTTP request 446 parameters (as plist keys) and values supported by the API. Use 447 these to set parameters that gptel does not provide user options 448 for. 449 450 Example: 451 ------- 452 453 (gptel-make-gpt4all 454 \"GPT4All\" 455 :protocol \"http\" 456 :host \"localhost:4891\" 457 :models \\='(mistral-7b-openorca.Q4_0.gguf))") 458 (register-definition-prefixes "gptel-openai" '("gptel--")) 459 460 461 ;;; Generated autoloads from gptel-org.el 462 463 (register-definition-prefixes "gptel-org" '("gptel-")) 464 465 466 ;;; Generated autoloads from gptel-privategpt.el 467 468 (autoload 'gptel-make-privategpt "gptel-privategpt" "\ 469 Register an Privategpt API-compatible backend for gptel with NAME. 470 471 Keyword arguments: 472 473 CURL-ARGS (optional) is a list of additional Curl arguments. 474 475 HOST (optional) is the API host, \"api.privategpt.com\" by default. 476 477 MODELS is a list of available model names. 478 479 STREAM is a boolean to toggle streaming responses, defaults to 480 false. 481 482 PROTOCOL (optional) specifies the protocol, https by default. 483 484 ENDPOINT (optional) is the API endpoint for completions, defaults to 485 \"/v1/messages\". 486 487 HEADER (optional) is for additional headers to send with each 488 request. It should be an alist or a function that retuns an 489 alist, like: 490 ((\"Content-Type\" . \"application/json\")) 491 492 KEY is a variable whose value is the API key, or function that 493 returns the key. 494 495 CONTEXT and SOURCES: if true (the default), use available context 496 and provide sources used by the model to generate the response. 497 498 REQUEST-PARAMS (optional) is a plist of additional HTTP request 499 parameters (as plist keys) and values supported by the API. Use 500 these to set parameters that gptel does not provide user options 501 for. 502 503 (fn NAME &key CURL-ARGS STREAM KEY REQUEST-PARAMS (HEADER (lambda nil (when-let (key (gptel--get-api-key)) \\=`((\"Authorization\" \\=\\, (concat \"Bearer \" key)))))) (HOST \"localhost:8001\") (PROTOCOL \"http\") (MODELS \\='(private-gpt)) (ENDPOINT \"/v1/chat/completions\") (CONTEXT t) (SOURCES t))") 504 (function-put 'gptel-make-privategpt 'lisp-indent-function 1) 505 (register-definition-prefixes "gptel-privategpt" '("gptel--privategpt-parse-sources")) 506 507 508 ;;; Generated autoloads from gptel-rewrite.el 509 510 (autoload 'gptel-rewrite "gptel-rewrite" nil t) 511 (register-definition-prefixes "gptel-rewrite" '("gptel-")) 512 513 514 ;;; Generated autoloads from gptel-transient.el 515 516 (autoload 'gptel-menu "gptel-transient" nil t) 517 (autoload 'gptel-system-prompt "gptel-transient" nil t) 518 (register-definition-prefixes "gptel-transient" '("gptel-")) 519 520 ;;; End of scraped data 521 522 (provide 'gptel-autoloads) 523 524 ;; Local Variables: 525 ;; version-control: never 526 ;; no-byte-compile: t 527 ;; no-update-autoloads: t 528 ;; no-native-compile: t 529 ;; coding: utf-8-emacs-unix 530 ;; End: 531 532 ;;; gptel-autoloads.el ends here