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

[Feature] Support PDFs in input for anthropic #827

Closed
narengogi opened this issue Dec 19, 2024 · 0 comments
Closed

[Feature] Support PDFs in input for anthropic #827

narengogi opened this issue Dec 19, 2024 · 0 comments
Labels
enhancement New feature or request triage

Comments

@narengogi
Copy link
Collaborator

narengogi commented Dec 19, 2024

What Would You Like to See with the Gateway?

https://docs.anthropic.com/en/docs/build-with-claude/pdf-support
This can be supported with image_url param the same way it is done for bedrock

{
    "model": "claude-3-5-sonnet-20240620",
    "max_tokens": 200,
    "stream": false,
    "messages": [
        {
            "role": "system",
            "content": "Say Hi"
        },
        {
            "role": "user",
            "content": [
                {
                    "type": "text",
                    "text": "what does the following pdf say?"
                },
                {
                    "type": "image_url",
                    "image_url": {
                        "url": "data:application/pdf;base64,UklGRkacAABXRUJQVlA4IDqcAACQggKdASqpAn8BPm0uk0ckIqGqKPWc6UANiWMIcl33AqAiFYn3hHuobjH43nn9X+sxNwI+Ef/H/OG6q1IxXqHLz59fzvDX8p+uf2H+B/d/......"
                    }
                }
            ]
        }
    ]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request triage
Projects
None yet
Development

No branches or pull requests

1 participant