Replies: 1 comment
-
|
This discussion was automatically locked because it has not been updated in over 30 days. If you still have questions about this topic, please ask us at community.vercel.com/ai-sdk |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I found an obstacle with the AI SDK.
I want to implement Excel analysis via Anthropic's Code Execution tools. For this to work, I believe that I have to upload files to Anthropic's storage via the Files API. I can do that perfectly with Anthropic's SDK.
The problem is that, when I need to give the AI the file id I want it to analyze with the user's prompt, the ModelMessage type is uncompatible with the input that Anthropic requires, which is as follows:
Anthropic's expected file attachment format:
AI SDK's expected file attachment format:
Is there anyone who knows how to solve this? I know that the AI SDK supports appending files, but I understand it applies to pdf files only.
Beta Was this translation helpful? Give feedback.
All reactions