Skip to content

Add option to use Azure OpenAI for translations #750

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

Merged
merged 1 commit into from
May 30, 2025

Conversation

bluebasher
Copy link
Contributor

@bluebasher bluebasher commented May 30, 2025

Summary & Motivation

Add support for Azure OpenAI as an alternative to standard OpenAI for translations in the Developer CLI.

  • Add Azure OpenAI client integration for custom endpoints
  • Enhance API key validation to support both standard OpenAI (sk-...) and Azure OpenAI keys
  • Add interactive prompt for Azure OpenAI endpoint URL when Azure key is detected
  • Store Azure OpenAI endpoint in secrets alongside the API key

Checklist

  • I have added tests, or done manual regression tests
  • I have updated the documentation, if necessary

@bluebasher bluebasher requested a review from tjementum May 30, 2025 19:08
@bluebasher bluebasher self-assigned this May 30, 2025
@bluebasher bluebasher added the Enhancement New feature or request label May 30, 2025
@tjementum tjementum force-pushed the translations-using-azure-openai branch 2 times, most recently from f54c1a2 to 74b4443 Compare May 30, 2025 21:05
Co-authored-by: Thomas Jespersen <tje@platformplatform.net>
@tjementum tjementum force-pushed the translations-using-azure-openai branch from 74b4443 to e532314 Compare May 30, 2025 21:06
@tjementum tjementum moved this to 🏗 In Progress in Kanban board May 30, 2025
@tjementum
Copy link
Member

@bluebasher I made a few improvements, tested, and merged.

PS: I always use the create-pull-request AI workflow to get better descriptions that "follow the conventions" :)

@tjementum tjementum merged commit d8dda38 into main May 30, 2025
3 checks passed
@tjementum tjementum deleted the translations-using-azure-openai branch May 30, 2025 21:12
@github-project-automation github-project-automation bot moved this from 🏗 In Progress to ✅ Done in Kanban board May 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement New feature or request
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants