这是indexloc提供的服务,不要输入任何密码
Skip to content

fix: Replaced baseUrl with endpoint for AzureOpenAI #152

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

Conversation

anand-presidio
Copy link
Collaborator

@anand-presidio anand-presidio commented May 21, 2025

Description

The reason for replacing baseUrl with endpoint in AzureOpenAI is that when using baseUrl, users need to manually append /openai to the endpoint (e.g., https://<azure-domain>.com/openai). In contrast, when using endpoint, this is handled automatically and the additional path is not required.

Type of Change

  • 🐛 Bug fix (non-breaking change which fixes an issue)
  • ✨ New feature (non-breaking change which adds functionality)
  • 💥 Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • ♻️ Refactor Changes
  • 💅 Cosmetic Changes
  • 📚 Documentation update
  • 🏃 Workflow Changes

Pre-flight Checklist

  • Changes are limited to a single feature, bugfix or chore (split larger changes into separate PRs)
  • Tests are passing (npm test) and code is formatted and linted (npm run format && npm run lint)
  • I have created a changeset using npm run changeset (required for user-facing changes)
  • I have reviewed contributor guidelines

Copy link

changeset-bot bot commented May 21, 2025

🦋 Changeset detected

Latest commit: 65a0ecd

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
hai-build-code-generator Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@anand-presidio anand-presidio changed the title fix: Fixed deployment not being passed as separate parameter for the AzureOpenAI fix: Fixed deployment name not being passed as separate parameter for the AzureOpenAI May 21, 2025
@anand-presidio anand-presidio changed the title fix: Fixed deployment name not being passed as separate parameter for the AzureOpenAI fix: Replaced baseUrl with endpoint for AzureOpenAI May 21, 2025
Copy link
Collaborator

@magesh-presidio magesh-presidio left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@anand-presidio anand-presidio merged commit 46aecfa into presidio-oss:main May 21, 2025
3 checks passed
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.

2 participants