I tried below but X is not what I expected so I cannot pass my api key from env.anthropicApiKey
const anthropicAdapter = extendAdapter(createAnthropicChat, [
createModel('my-fine-tuned-gpt4', ['text', 'image']),
]);
const ad2 = extendAdapter(anthropicText, [
createModel('my-fine-tuned-gpt4', ['text', 'image']),
]);
type Y = Parameters<typeof ad2>;
type X = Parameters<typeof anthropicAdapter>;
TanStack AI version
v0.9.1
Framework/Library version
none
Describe the bug and the steps to reproduce it
I tried below but X is not what I expected so I cannot pass my api key from env.anthropicApiKey
Your Minimal, Reproducible Example - (Sandbox Highly Recommended)
https://codesandbox.io/p/sandbox/new?file=%2Fsrc%2FApp.js%3A9%2C46
Screenshots or Videos (Optional)
No response
Do you intend to try to help solve this bug with your own PR?
Yes, I am also opening a PR that solves the problem along side this issue
Terms & Code of Conduct