Skip to content

Add Azure OpenAI service for scanning repositories#10

Open
melkor54248 wants to merge 1 commit intomasterfrom
add-azure-openai-scan
Open

Add Azure OpenAI service for scanning repositories#10
melkor54248 wants to merge 1 commit intomasterfrom
add-azure-openai-scan

Conversation

@melkor54248
Copy link
Copy Markdown
Owner

@melkor54248 melkor54248 commented Jan 13, 2025

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.

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).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant