Supports AI Controls for GK Organizations#4338
Merged
Conversation
sergeibbb
added a commit
that referenced
this pull request
May 29, 2025
sergeibbb
added a commit
that referenced
this pull request
May 29, 2025
sergeibbb
added a commit
that referenced
this pull request
May 29, 2025
sergeibbb
added a commit
that referenced
this pull request
May 29, 2025
7939a2c to
c383877
Compare
sergeibbb
added a commit
that referenced
this pull request
May 29, 2025
c383877 to
5659804
Compare
sergeibbb
added a commit
that referenced
this pull request
May 30, 2025
sergeibbb
added a commit
that referenced
this pull request
May 30, 2025
sergeibbb
added a commit
that referenced
this pull request
May 30, 2025
sergeibbb
added a commit
that referenced
this pull request
May 30, 2025
sergeibbb
added a commit
that referenced
this pull request
May 30, 2025
sergeibbb
added a commit
that referenced
this pull request
Jun 2, 2025
sergeibbb
added a commit
that referenced
this pull request
Jun 2, 2025
5659804 to
4c0d9f0
Compare
sergeibbb
added a commit
that referenced
this pull request
Jun 2, 2025
sergeibbb
added a commit
that referenced
this pull request
Jun 2, 2025
sergeibbb
added a commit
that referenced
this pull request
Jun 2, 2025
sergeibbb
added a commit
that referenced
this pull request
Jun 3, 2025
sergeibbb
added a commit
that referenced
this pull request
Jun 3, 2025
sergeibbb
added a commit
that referenced
this pull request
Jun 3, 2025
sergeibbb
added a commit
that referenced
this pull request
Jun 3, 2025
4c0d9f0 to
427fe47
Compare
sergeibbb
added a commit
that referenced
this pull request
Jun 3, 2025
sergeibbb
added a commit
that referenced
this pull request
Jun 3, 2025
sergeibbb
added a commit
that referenced
this pull request
Jun 3, 2025
427fe47 to
c0b330f
Compare
sergeibbb
added a commit
that referenced
this pull request
Jun 3, 2025
sergeibbb
added a commit
that referenced
this pull request
Jun 3, 2025
sergeibbb
added a commit
that referenced
this pull request
Jun 3, 2025
sergeibbb
added a commit
that referenced
this pull request
Jun 3, 2025
c0b330f to
f3ba0b2
Compare
sergeibbb
added a commit
that referenced
this pull request
Jun 10, 2025
sergeibbb
added a commit
that referenced
this pull request
Jun 10, 2025
sergeibbb
added a commit
that referenced
this pull request
Jun 10, 2025
sergeibbb
added a commit
that referenced
this pull request
Jun 10, 2025
ramin-t
requested changes
Jun 11, 2025
Contributor
ramin-t
left a comment
There was a problem hiding this comment.
Overall looks good, just one issue I noticed. This will need heavy testing once merged.
src/plus/ai/aiProviderService.ts
Outdated
Comment on lines
+331
to
+334
| if (isProviderEnabledByOrg('vscode', orgAiConf)) { | ||
| const vsCodeModels = await this.getModels('vscode'); | ||
| if (vsCodeModels.length !== 0) { | ||
| chosenProviderId = 'vscode'; | ||
| } | ||
| } else if ( |
Contributor
There was a problem hiding this comment.
This nested if statement changes the previous logic such that if we do not find a vscode model, it does not move to the else block and therefore does not choose the GK model. I suggest moving the existing vscode models check into the if statement to make sure that the original flow is preserved.
i.e.
Suggested change
| if (isProviderEnabledByOrg('vscode', orgAiConf)) { | |
| const vsCodeModels = await this.getModels('vscode'); | |
| if (vsCodeModels.length !== 0) { | |
| chosenProviderId = 'vscode'; | |
| } | |
| } else if ( | |
| const vsCodeModels = await this.getModels('vscode'); | |
| if (isProviderEnabledByOrg('vscode', orgAiConf) && vsCodeModels.length !== 0) { | |
| chosenProviderId = 'vscode'; | |
| } else if ( |
Member
Author
There was a problem hiding this comment.
@axosoft-ramint
Agree. Fixed.
f3ba0b2 to
1e7655d
Compare
ramin-t
approved these changes
Jun 12, 2025
sergeibbb
added a commit
that referenced
this pull request
Jun 12, 2025
sergeibbb
added a commit
that referenced
this pull request
Jun 12, 2025
sergeibbb
added a commit
that referenced
this pull request
Jun 12, 2025
sergeibbb
added a commit
that referenced
this pull request
Jun 12, 2025
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
Support AI Controls for GK Organizations. Fixes #4300
Checklist
Fixes $XXX -orCloses #XXX -prefix to auto-close the issue that your PR addresses