ai-chatbot icon indicating copy to clipboard operation
ai-chatbot copied to clipboard

How to change xAI to azure open ai?

Open angpao opened this issue 8 months ago • 2 comments

Default is xAI , right? How to config Azure open ai instead of xAi?

angpao avatar Mar 31 '25 11:03 angpao

I want to change from xAI groq to be "fastapi backend langgraph api ip address or url" , I can use this /lib/ai/providers.ts" How to do?

angpao avatar Apr 01 '25 07:04 angpao

Default is xAI , right? How to config Azure open ai instead of xAi?

To change providers have a read through the AI SDK documentation which explains how to manage providers and models: https://sdk.vercel.ai/docs/ai-sdk-core/provider-management#combining-custom-providers-provider-registry-and-middleware

You will then need to update this file in the ai-chatbot template: https://github.com/vercel/ai-chatbot/blob/235b0edb916be4eaba6ffa9465207d6a2373b8ad/lib/ai/providers.ts#L16

For using FastAPI as your backend, you can use this as a reference: https://github.com/vercel-labs/ai-sdk-preview-python-streaming. Linking the other issue you've created for other users who might be looking to use FastAPI: https://github.com/vercel/ai-chatbot/issues/751

tobiasbueschel avatar Apr 01 '25 07:04 tobiasbueschel

ChatSDK uses Gateway now, should be a lot easier to add new models and providers 👍

haydenbleasel avatar Nov 01 '25 04:11 haydenbleasel