-
-
Notifications
You must be signed in to change notification settings - Fork 166
Is there any way to extend models but with createAnthropicChat rather than anthropicText? #407
Copy link
Copy link
Open
Description
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
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>;
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
- I agree to follow this project's Code of Conduct
- I understand that if my bug cannot be reliable reproduced in a debuggable environment, it will probably not be fixed and this issue may even be closed.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels