Skip to content

Can connect to Azure Gov CLoud OpenAI Provider #2094

Answered by lgrammel
jorge3fernandes asked this question in Help
Discussion options

You must be logged in to vote

I see. This would need better support, agreed. For now you can use a fetch decorator and fix the URL.

See e.g. https://github.com/vercel/ai/blob/main/examples/ai-core/src/generate-text/azure-custom-fetch.ts

Inside the custom fetch, you would do a string replace on the url.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@jorge3fernandes
Comment options

@lgrammel
Comment options

Answer selected by lgrammel
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants