-
Notifications
You must be signed in to change notification settings - Fork 201
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Undefine default ChatGPT backend #649
Comments
|
When using this in
When putting it outside of |
acceleratesage left a comment (karthink/gptel#649)
When using this in `:config` in `use-package`, it fails with:
```Error (use-package): gptel/:config: Symbol's function definition is void: \(setf\ gptel-get-backend\)```
Can you provide your full use-package declaration for gptel here?
|
(use-package gptel
:config
(gptel-make-openai "Groq"
:host "api.groq.com"
:endpoint "/openai/v1/chat/completions"
:key gptel-api-key
:stream t
:models '(deepseek-r1-distill-llama-70b llama-3.3-70b-versatile))
(gptel-make-openai "xAI"
:host "api.x.ai"
:key gptel-api-key
:endpoint "/v1/chat/completions"
:stream t
:models '(grok-2-1212 grok-2-vision-1212))
(setq gptel-default-mode 'org-mode
gptel-backend (gptel-get-backend "Groq")
gptel-model 'deepseek-r1-distill-llama-70b))
;; Only works outside of use-package
(setf (gptel-get-backend "ChatGPT") nil) |
This ideally goes into the README, it's not trivial to figure out this solution to undefine a backend. |
+1 My model menu is spammed with proprietary ChatGPT offerings as well, despite the fact that I configured GPTel to use Ollama: (with-eval-after-load 'gptel
(let ((models '(llama3.1:8b
phi4:14b
deepseek-r1:14b)))
(setq gptel-model (car models)
gptel-backend (gptel-make-ollama "Ollama"
:host "localhost:11434"
:stream t
:models models)))) Expected:
Actual:
|
For what it's worth, I think there should be no backend defined by default. Some might not even want the possibility of sending their data to OpenAI without explicitly enabling it. Making it easy to integrate and not having to list all the models is great though. |
@benma There appears to be a bug with |
@acceleratesage Most gptel users are still using ChatGPT, best I can tell. When they update gptel and it stops working, I'm going to have a rough time with the flood of support requests.
I'll settle for making the default backend easy to disable. |
Hi, is there a way to undefine the default backend and models? I'd like to only work with a selected list of backends.
The text was updated successfully, but these errors were encountered: