Skip to content
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

(Claude) Error: all messages must have non-empty content #425

Closed
frmsaul opened this issue Oct 15, 2024 · 2 comments
Closed

(Claude) Error: all messages must have non-empty content #425

frmsaul opened this issue Oct 15, 2024 · 2 comments

Comments

@frmsaul
Copy link

frmsaul commented Oct 15, 2024

Sometimes i get:

Claude error: (HTTP/2 400) messages.4: all messages must have non-empty content except for the optional final assistant message

error with gptel-send even though i selected a region.

It's unclear when it works and when it doesn't. For instance:

It broke on:

// use disabled
function ViewProfileButton({ viewingProfile, setViewingProfile, disabled }) {
  return (
    <div
      className="flex items-center justify-center text-sm text-blue-500 mb-2 cursor-pointer"
      onClick={() => setViewingProfile(!viewingProfile)}
    >
      <span>{viewingProfile ? "Hide profile" : "View profile"}</span>
      <ChevronUp
        className={`w-4 h-4 ml-1 transition-transform duration-300 ${
          viewingProfile ? "transform rotate-180" : ""
        }`}
      />
    </div>
  );
}

But then worked on

// use disabled

\`\`\`jsx
function ViewProfileButton({ viewingProfile, setViewingProfile, disabled }) {
  return (
    <div
      className="flex items-center justify-center text-sm text-blue-500 mb-2 cursor-pointer"
      onClick={() => setViewingProfile(!viewingProfile)}
    >
      <span>{viewingProfile ? "Hide profile" : "View profile"}</span>
      <ChevronUp
        className={`w-4 h-4 ml-1 transition-transform duration-300 ${
          viewingProfile ? "transform rotate-180" : ""
        }`}
      />
    </div>
  );
}
\`\`\`
@karthink
Copy link
Owner

If you're not on the latest commit, please update and try.

@karthink karthink changed the title gptel-send gives error (Claude) Error: all messages must have non-empty content Oct 15, 2024
@karthink
Copy link
Owner

Closing since this is fixed in #409. Please use that thread (reopening it if necessary) if the problem still persists.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants