Add Azure OpenAI service for scanning repositories#10
Open
melkor54248 wants to merge 1 commit intomasterfrom
Open
Add Azure OpenAI service for scanning repositories#10melkor54248 wants to merge 1 commit intomasterfrom
melkor54248 wants to merge 1 commit intomasterfrom
Conversation
Add functionality to scan repositories using Azure OpenAI service. * **RepoSkillMiner/Services/GitHubApiScanService.cs** - Add `ScanReposWithAzureOpenAI` method to scan repositories using Azure OpenAI service. - Modify `InitScan` method to call `ScanReposWithAzureOpenAI` if `UseAzureOpenAI` flag is true. - Add `MakeAzureOpenAIRequestAsync` method to make requests to Azure OpenAI service. * **RepoSkillMiner/Pages/Scan.razor** - Add a checkbox to the UI to allow users to select whether to use Azure OpenAI service for scanning. - Bind the checkbox to the new boolean flag `UseAzureOpenAI`. * **RepoSkillMiner/Pages/Scan.razor.cs** - Add a new boolean flag `UseAzureOpenAI` to the class. - Modify the `InitScan` method to call the new `ScanReposWithAzureOpenAI` method if `UseAzureOpenAI` is true. * **RepoSkillMiner/wwwroot/appsettings.json** - Add a new entry for `AzureOpenAIKey` to store the Azure OpenAI service key. - Add a new entry for `AzureOpenAIEndpoint` to store the Azure OpenAI service endpoint. --- For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/melkor54248/RepoSkillMiner?shareId=XXXX-XXXX-XXXX-XXXX).
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.
Add functionality to scan repositories using Azure OpenAI service.
RepoSkillMiner/Services/GitHubApiScanService.cs
ScanReposWithAzureOpenAImethod to scan repositories using Azure OpenAI service.InitScanmethod to callScanReposWithAzureOpenAIifUseAzureOpenAIflag is true.MakeAzureOpenAIRequestAsyncmethod to make requests to Azure OpenAI service.RepoSkillMiner/Pages/Scan.razor
UseAzureOpenAI.RepoSkillMiner/Pages/Scan.razor.cs
UseAzureOpenAIto the class.InitScanmethod to call the newScanReposWithAzureOpenAImethod ifUseAzureOpenAIis true.RepoSkillMiner/wwwroot/appsettings.json
AzureOpenAIKeyto store the Azure OpenAI service key.AzureOpenAIEndpointto store the Azure OpenAI service endpoint.For more details, open the Copilot Workspace session.