Replies: 16 comments 9 replies
-
Yeah, this is a problem with gptel that I don't know how to fix yet. You are probably modifying the responses from the model in some way, by doing something like filling the region, and that is causing the response to be split into a few separate responses separated by empty user prompts. Multiple fixes have been discussed (see #321) but all of them cause something else to break. If you're able to, try switching to the |
Beta Was this translation helpful? Give feedback.
-
I've pushed a fix, please try now. |
Beta Was this translation helpful? Give feedback.
-
I've installed like this:
Is there some way to check what revision is installed? |
Beta Was this translation helpful? Give feedback.
-
I don't have a straight-update-package command. I did find straight-pull-package, so now I'm on 0.9.6;). Thanks. I'll report back |
Beta Was this translation helpful? Give feedback.
-
I don't have a straight-update-package command. I did find straight-pull-package
That's the one, sorry.
|
Beta Was this translation helpful? Give feedback.
-
I have not seen this message after this fix;). Thanks a bunch. |
Beta Was this translation helpful? Give feedback.
-
Hmm, I haven't seen it since, but today I got it again;) Claude error: (HTTP/2 400) messages.6: all messages must have non-empty content except for the optional final assistant message If it's just one in a million, then I guess it's not biggie, but just to let you know;) Also, what is the proper way to reset? I mean, what I do now, is that I have to exit Emacs to be able to use gptel again. |
Beta Was this translation helpful? Give feedback.
-
Hmm, got a new one today. Claude error: (HTTP/2 400) messages: final assistant content cannot end with trailing whitespace |
Beta Was this translation helpful? Give feedback.
-
Hmm, got a new one today.
Claude error: (HTTP/2 400) messages: final assistant content cannot end with trailing whitespace
Thanks, looking into it.
|
Beta Was this translation helpful? Give feedback.
-
Is there supposed to be any debug info in this file? |
Beta Was this translation helpful? Give feedback.
-
Still getting that message now and then and right now;) I assume this is the same issue.
I use I also cannot reset it, by closing the buffer, so that means I cannot start any new chats. I have to restart the whole of Emacs, so any function to reset it would be great;) |
Beta Was this translation helpful? Give feedback.
-
Still getting that message now and then and right now;)
Please provide a reproducible recipe.
…On Wed, Jan 29, 2025, 3:28 AM madorian ***@***.***> wrote:
Reopened #406 <#406>.
—
Reply to this email directly, view it on GitHub
<#406>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACBVOLHKYJCSIRMUEYLFKJ32NC3PTAVCNFSM6AAAAABPIPW6K6VHI2DSMVQWIX3LMV45UABFIRUXGY3VONZWS33OIV3GK3TUHI5E433UNFTGSY3BORUW63R3GE3TKMJVG43A>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
It has happened five times today, but I cannot really give a reproducible recipe;) I think, first of all, I need to know what that error message is saying, cause I don't understand what the meaning is. It says it cannot end with a trailing whitespace; what does that even mean? It cannot have whitespace after the last character? |
Beta Was this translation helpful? Give feedback.
-
I think, first of all, I need to know what that error message is saying, cause I don't understand what the meaning is.
It says it cannot end with a trailing whitespace; what does that even mean? It cannot have whitespace after the last character?
I think it means that there is a user message that is only whitespace. This may or may not be the last message.
If you can save a chat where this happens to a file and include the file here I can take a look.
|
Beta Was this translation helpful? Give feedback.
-
Here's a chat where I got this message, so now I need to restart Emacs. A very small chat. It usually doesn't happen this fast.
EDIT: I had to put a '-' in front of lines starting with three "'" |
Beta Was this translation helpful? Give feedback.
-
For what it's worth, I'm getting a similar error from gptel: All I did was put a chunk of Python code in the prompt. It looks like this:
It's not reproducible, except in a chat where it actually happens. Once it happens, pasting code into the prompt pretty much stops working, but non-code prompts continue to work. I'm sorry, I cannot post this exact chat. |
Beta Was this translation helpful? Give feedback.
-
I get this message, like 10 times per day.
I don't really do anything weird;). I've tried to search and it seems there are lots of people who get this, but I haven't found it in relation to gptel. Is there anything I can do to avoid this?
Beta Was this translation helpful? Give feedback.
All reactions