Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to change xAI to azure open ai? #895

Open
angpao opened this issue Mar 31, 2025 · 2 comments
Open

How to change xAI to azure open ai? #895

angpao opened this issue Mar 31, 2025 · 2 comments

Comments

@angpao
Copy link

angpao commented Mar 31, 2025

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

@angpao
Copy link
Author

angpao commented Apr 1, 2025

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?

@tobiasbueschel
Copy link

tobiasbueschel commented Apr 1, 2025

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:

export const myProvider = isTestEnvironment

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: #751

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants