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

Image Recognition fix: ImageSource json value should be"source", not "image" #2

Merged
merged 1 commit into from
Apr 25, 2024

Conversation

weak4
Copy link
Contributor

@weak4 weak4 commented Apr 16, 2024

https://docs.anthropic.com/claude/reference/messages_post

Starting with Claude 3 models, you can also send image content blocks:

{"role": "user", "content": [
  {
    "type": "image",
    "source": {
      "type": "base64",
      "media_type": "image/jpeg",
      "data": "/9j/4AAQSkZJRg...",
    }
  },
  {"type": "text", "text": "What is in this image?"}
]}

@dleviminzi dleviminzi merged commit da6621f into dleviminzi:main Apr 25, 2024
3 checks passed
@dleviminzi
Copy link
Owner

Thank you!

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

Successfully merging this pull request may close these issues.

2 participants