Skip to content

gptel-backend #41

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

Draft
wants to merge 10 commits into
base: main
Choose a base branch
from
Draft
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
set user agent
  • Loading branch information
keegancsmith committed Sep 17, 2024
commit 5d9e28117e070845b9322b388f36e2e9feca0524
4 changes: 2 additions & 2 deletions gptel-cody.el
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ MAX-ENTRIES is the number of queries/responses to include for context."
`(("Authorization" . ,(concat "token " key))
("Content-Type" . "application/json")
("Accept-Encoding" . "gzip;q=0")
("User-Agent" . "edit / v1")))))
("User-Agent" . "Cody-Emacs-gptel/0.0.1-dev")))))
(host "sourcegraph.com")
(protocol "https")
(endpoint "/.api/completions/stream")
Expand Down Expand Up @@ -151,7 +151,7 @@ function that returns the key."
:protocol protocol
:endpoint endpoint
:stream stream
:url (concat protocol "://" host endpoint "?api-version=2&client-name=gptel&client-version=v1"))))
:url (concat protocol "://" host endpoint "?api-version=2&client-name=Cody-Emacs-gptel&client-version=0.0.1-dev"))))
(setf (alist-get name gptel--known-backends
nil nil #'equal)
backend)))
Expand Down