Skip to content

feat: use correct deployment for azure #6023

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 3 commits into from
Jun 9, 2025
Merged

feat: use correct deployment for azure #6023

merged 3 commits into from
Jun 9, 2025

Conversation

Patrick-Erichsen
Copy link
Collaborator

No description provided.

@Patrick-Erichsen Patrick-Erichsen requested a review from a team as a code owner June 6, 2025 19:08
@Patrick-Erichsen Patrick-Erichsen requested review from tomasz-stefaniak and removed request for a team June 6, 2025 19:08
Copy link

cubic-dev-ai bot commented Jun 6, 2025

Your cubic subscription is currently inactive. Please reactivate your subscription to receive AI reviews and use cubic.

@dosubot dosubot bot added the size:L This PR changes 100-499 lines, ignoring generated files. label Jun 6, 2025
// Default is `azure-openai` in docs, but previously was `azure`
if (this._isAzureOpenAI(config.env?.apiType)) {
if (!config.env?.deployment) {
throw new Error(
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Because we call constructLlmApi even if we aren't using openai-adapters, and in our LLM Azure class we set azure-openai as the default, this will throw for existing users that don't have deployment set. But the current behavior n LLM OpenAI would be failing anyways without this

https://github.com/continuedev/continue/blob/pe/watsonx-vi/core/llm/llms/OpenAI.ts#L423-L428

return new URL(
        `openai/deployments/${this.deployment}/embeddings?api-version=${this.apiVersion}`,
        this.apiBase,
      );

@sestinj sestinj merged commit dc803d8 into watsonx-vi Jun 9, 2025
1 check passed
@sestinj sestinj deleted the pe/watsonx-vi branch June 9, 2025 04:57
@github-project-automation github-project-automation bot moved this from Todo to Done in Issues and PRs Jun 9, 2025
@github-actions github-actions bot locked and limited conversation to collaborators Jun 9, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
size:L This PR changes 100-499 lines, ignoring generated files.
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants