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

Can not use beta version @anthropic-ai/vertex-sdk #606

Open
thuynt46 opened this issue Nov 13, 2024 · 4 comments
Open

Can not use beta version @anthropic-ai/vertex-sdk #606

thuynt46 opened this issue Nov 13, 2024 · 4 comments

Comments

@thuynt46
Copy link

thuynt46 commented Nov 13, 2024

I used this package, and it referred to this repository
image

I tried using the beta version, where the interface already defines messages as BetaContentBlockParam[].

image

However, when I attempted to send a PDF file with type = 'document', it returned an error stating:

image

Does anyone have any ideas on how to resolve this issue? Thank you

@x-ray-s
Copy link

x-ray-s commented Nov 24, 2024

source

{
  type: "image",
  source: {
    type: "base64",
    media_type: "image/png",
    data: "your_base64_raw"
  }
}

@thuynt46
Copy link
Author

@x-ray-s Thank you. But I want to send pdf file. Is it possible with type is "image" ?

@x-ray-s
Copy link

x-ray-s commented Nov 25, 2024

@thuynt46 try to use beta namespace and BetaBase64PDFBlock describe the types. and search in repo by "pdf" keyword to get more details.

@thuynt46
Copy link
Author

@x-ray-s Thank you. I did this, which is why I created this issue. Even when I use the model version that supports PDF vision. It is possible that the beta version of the Vertex API does not support all endpoints of the Anthropic beta. I am not sure exactly what the issue is. Anyway, thank you for supporting me.

image

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