How to change xAI to azure open ai?
Default is xAI , right? How to config Azure open ai instead of xAi?
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?
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
ChatSDK uses Gateway now, should be a lot easier to add new models and providers 👍