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

feat: support azure openai endpoint configuration #70

Merged
merged 2 commits into from
Oct 22, 2024

Conversation

tlaukkanen
Copy link
Contributor

Adds support for using Azure OpenAI deployment endpoint as micro-agent's OpenAI API endpoint. Uses OpenAI Javascript SDK's AzureOpenAI class to initialize the client.

image

@tlaukkanen tlaukkanen mentioned this pull request Oct 12, 2024
@steve8708 steve8708 merged commit 36554bb into BuilderIO:main Oct 22, 2024
2 checks passed
@vivtcjp
Copy link

vivtcjp commented Jan 8, 2025

I gave it a try , doesnot go through

https://xxxx.openai.azure.com/openai/deployments/gpt-4o/chat/completions

@tlaukkanen
Copy link
Contributor Author

@vivtcjp what error did you get? Did you copy the full Target URI for your endpoint so that it also contains the query string part with api-version parameter ...completions/?api-version=20... etc.?

@vivtcjp
Copy link

vivtcjp commented Jan 8, 2025

yep , i didn't work
Screenshot 2025-01-09 at 08 53 31

@tlaukkanen
Copy link
Contributor Author

@vivtcjp are you running latest code from this repository? Your screenshot indicates that you are using micro-agent v0.1.4 that doesn't have this feature yet. I'm not sure if new versions have been published yet to npm registry.

@couragecowardlydog
Copy link

couragecowardlydog commented Jan 9, 2025

Yea, It seems like new version is not published to npm registry . I cloned repo , its working fine

@tlaukkanen tlaukkanen deleted the azure-openai-endpoint-support branch January 16, 2025 05:42
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

Successfully merging this pull request may close these issues.

4 participants