SCG + Ollama both (macOS26 and macOS15)#9
Open
manelix2000 wants to merge 3 commits intoIron-Ham:mainfrom
Open
Conversation
This commit updates key components of the SwiftCommitGen project, including improvements to the BatchCombinationPromptBuilder, LLMClient, and CommitGenError handling. These changes enhance the project's ability to manage LLM-based commit generation more robustly, ensuring better error handling and improved integration with FoundationModels. The updates also streamline the CommitGenTool's configuration process, making it more efficient for developers working with Ollama models. Additionally, the project now includes enhancements to DiffSummarizer.swift, CommitGenOptions.swift, and PromptBuilder.swift, adding new functionality and improving existing features. These modifications focus on enhancing the core components of the project, ensuring better performance and integration with newer macOS frameworks. This update is part of a larger batch of changes aimed at improving the project's capabilities and compatibility with modern development standards.
This commit updates several components in the SwiftCommitGen project, including enhancements to BatchCombinationPromptBuilder and LLMClient, and improvements to PromptBuilder. These changes aim to improve the project's functionality and maintainability. The modifications involve restructuring and refining code to ensure better performance and error handling.
The LLMClient struct has been refactored to reduce duplication of code and improve readability. The original implementation was using duplicate logic to handle different types of prompts, but this was causing confusion and difficult to maintain. By extracting the common logic into a separate function, we were able to simplify the code and make it easier to understand.
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.
Fixed compilation errors on both macOS26 and macOS15. Now supports both operating systems in order to generate a version to use: