-
Notifications
You must be signed in to change notification settings - Fork 150
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
No match data because no search succeeded #430
Comments
It will help to look at the response. Can you log it and add it here? |
I lcopy / pasted there what I receive in Message, is it what you meant?
|
No, I meant:
|
Hello Karthink, Sorry for the delay. I will try to be more responsive. Could it come from the fact that in windows, curl does not accept single quote? For instance
{ [ |
We don't use the shell to invoke Curl so this isn't an issue.
I see some encoding issues in the response but nothing that should cause the request to fail.
|
When I C-h v gptel-pre-response-hook i get: Its value is nil` On question 2 (setq gptel-use-curl nil) the good news is that it responds something in the log, the bad news is that i still get an error Good news in bold: we get a response { [ Bad news backtrace (I dropped all lines on certificates and replaced key by SECRET. Debugger entered--Lisp error: (wrong-type-argument stringp nil) |
Could you produce a backtrace? Run |
Yes, many thanks
|
Bug Description
Hello, when i throw gptel-send i receive this error:
Debugger entered--Lisp error: (error "No match data, because no search succeeded")
#f(compiled-function (backend info) #<bytecode -0x3b6bfcdf811e44b>)
(nil (:token "d3e321dc4e0079fc4d4bf0d656aaa9c9"
:backend #s(gptel-gemini
:name "Gemini"
:host "generativelanguage.googleapis.com"
:header nil
:protocol "https"
:stream t
:endpoint "/v1beta/models"
:key "SECRET"
:models (gemini-pro gemini-1.5-flash gemini-1.5-pro-latest)
:url #f(compiled-function () #<bytecode -0x12021f2cddcb5cce>)
:curl-args nil)
:parser #f(compiled-function (backend info) #<bytecode -0x3b6bfcdf811e44b>)
:callback gptel-curl--stream-insert-response
:transformer nil
:data (:contents [(
:role "user"
:parts [(:text "You are a large language model living in Emacs and...") (:text "my test")])]
:safetySettings [(:category "HARM_CATEGORY_HARASSMENT" :threshold "BLOCK_NONE")
(:category "HARM_CATEGORY_SEXUALLY_EXPLICIT" :threshold "BLOCK_NONE")
(:category "HARM_CATEGORY_DANGEROUS_CONTENT" :threshold "BLOCK_NONE")
(:category "HARM_CATEGORY_HATE_SPEECH" :threshold "BLOCK_NONE")]
:generationConfig (:temperature 1.0))
:buffer #<buffer Gemini>
:position #<marker at 8 in Gemini>
:http-status "200"
:status "HTTP/1.1 200 Connection established"))
gptel-curl--stream-filter(# "(d3e321dc4e0079fc4d4bf0d656aaa9c9 . 125)")
I installed it via
Backend
None
Steps to Reproduce
Install
package-install gpt-el
Setup with gemini
(gptel-make-gemini "Gemini" :key "YOUR_GEMINI_API_KEY" :stream t)
(setq
gptel-model 'gemini-pro
gptel-backend (gptel-make-gemini "Gemini"
:key "YOUR_GEMINI_API_KEY"
:stream t))
write "my test"
gptel-send
Additional Context
Emacs 28.2 installed on windows via msys2
curl on msys2
Log Information
No response
Backtrace
The text was updated successfully, but these errors were encountered: