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-3-5-sonnet-20240620 supports PDFs #30

Closed
simonw opened this issue Dec 17, 2024 · 1 comment
Closed

claude-3-5-sonnet-20240620 supports PDFs #30

simonw opened this issue Dec 17, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@simonw
Copy link
Owner

simonw commented Dec 17, 2024

Spotted on https://docs.anthropic.com/en/docs/build-with-claude/pdf-support#supported-platforms-and-models

PDF support is currently available on both Claude 3.5 Sonnet models (claude-3-5-sonnet-20241022, claude-3-5-sonnet-20240620) via direct API access.

But in our code:

register(
ClaudeMessagesLong("claude-3-5-sonnet-20240620"),
AsyncClaudeMessagesLong("claude-3-5-sonnet-20240620"),
)
register(
ClaudeMessagesLong("claude-3-5-sonnet-20241022", supports_pdf=True),
AsyncClaudeMessagesLong("claude-3-5-sonnet-20241022", supports_pdf=True),
)

@simonw simonw added the bug Something isn't working label Dec 17, 2024
@simonw simonw closed this as completed in 8c08d56 Dec 17, 2024
@simonw
Copy link
Owner Author

simonw commented Dec 17, 2024

I manually tested like this:

llm -m claude-3-5-sonnet-20240620 -a 'https://static.simonwillison.net/static/2024/example-devday.pdf' ocr

Got back:

This image shows a ticket for the OpenAI DevDay event. Here are the key details:

  1. Event: OpenAI DevDay
  2. Date: Monday, Nov 6, 2023
  3. Time: 8:30AM
  4. Location: SVN West, 10 Van Ness Avenue
  5. Guest Name: Simon Willison
  6. Ticket Number: T882307-11011993-01-11114170-231006

The ticket includes a QR code, likely for easy scanning at the event entrance. There's also a note at the top asking attendees to print and bring the ticket with them.

At the bottom of the ticket, there's a website URL: events.openai.com/devday

The overall design is simple and clean, with the essential information clearly presented in a black and white format.

simonw added a commit to simonw/llm-anthropic that referenced this issue Dec 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant