fix: allow Azure OpenAI API version override - #1650
Merged
Merged
Conversation
Member
|
Thanks for this, please sign the DCO @Zakharden |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1650 +/- ##
===========================================
+ Coverage 34.76% 45.84% +11.08%
===========================================
Files 94 121 +27
Lines 6342 7518 +1176
===========================================
+ Hits 2205 3447 +1242
+ Misses 4046 3836 -210
- Partials 91 235 +144 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Zakharden
force-pushed
the
fix-azure-openai-api-version
branch
from
May 18, 2026 17:32
c5d53d9 to
00bf249
Compare
Contributor
Author
|
Signed off the commit and added coverage around the Azure API version paths. |
Signed-off-by: Zakhar Dvurechensky <72825626+Zakharden@users.noreply.github.com>
Zakharden
force-pushed
the
fix-azure-openai-api-version
branch
from
June 3, 2026 14:34
00bf249 to
d4dd3dc
Compare
Contributor
Author
|
Rebased on current |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Adds Azure OpenAI API version configuration support for the
azureopenaiprovider.The API version can now be set through:
k8sgpt auth add --azureAPIVersionk8sgpt auth update --azureAPIVersionK8SGPT_AZURE_API_VERSIONwhen runningk8sgpt serveWhen present, the value is passed to the Azure OpenAI client configuration so users can opt into newer Azure OpenAI API versions without changing code.
Checks
Validated locally:
GOCACHE=/private/tmp/k8sgpt-go-build go test ./cmd/auth ./cmd/serveGOCACHE=/private/tmp/k8sgpt-go-build go test ./pkg/aiAdditional Information
The
pkg/aitest package uses localhttptestservers, so it needs permission to bind a localhost listener in restricted environments.