Skip to content
Source
Sign inSign up
TanStack/ai

Is there any way to extend models but with `createAnthropicChat` rather than `anthropicText`? #407

Send to my agent
Closedliyown(GitHub profile, opens in a new tab) opened this issue 0 comments

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; type X = Parameters;

Image Image

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.
  1. tombeckenham closed this

Sign in to join this conversation.