Skip to content
This repository was archived by the owner on Sep 30, 2024. It is now read-only.

Pick up CompletionsConfig.User for the AzureOpenAI API Provider#63621

Merged
chrsmith merged 2 commits into
mainfrom
chrsmith/account-for-azure-user
Jul 3, 2024
Merged

Pick up CompletionsConfig.User for the AzureOpenAI API Provider#63621
chrsmith merged 2 commits into
mainfrom
chrsmith/account-for-azure-user

Conversation

@chrsmith

@chrsmith chrsmith commented Jul 3, 2024

Copy link
Copy Markdown
Contributor

This PR fixes a small oversight when we convert the site config's "completions" configuration data into the modelconfig/types.SiteModelConfig object.

PR https://github.com/sourcegraph/sourcegraph/commit/8e37fcac2632692e430f6b53722a99528df6902a#diff-3c40fc45ac5714fdcbcfb874321044afe3ef449134adcf519d4fba5b966cf18fR71 added a new User field to the site configuration, which is used by the Azure OpenAI API provider.

So this piece of data needs to be put into the internal/modelconfig/types.AzureOpenAIProviderConfig field so it can available when we refactor the internal/completions/client/azureopenai package.
Since rather than pulling this information from the internal/completions.CompletionRequestParameters::User we will instead pass the internal/modelconfig/types.AzureOpenAIProviderConfig object, which will have all the Azure OpenAI-specific server-side configuration.

Test plan

NA

Changelog

NA

@chrsmith chrsmith requested review from arafatkatze and emidoots July 3, 2024 19:17
@cla-bot cla-bot Bot added the cla-signed label Jul 3, 2024
@chrsmith chrsmith merged commit da5968b into main Jul 3, 2024
@chrsmith chrsmith deleted the chrsmith/account-for-azure-user branch July 3, 2024 19:50
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants