Enhancements to Package Management, Documentation, Error Handling and implement fix argument #26
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.
This pull request includes several changes to the
wut
project, focusing on adding package metadata, updating dependencies, and improving the codebase. The most important changes include adding aPKGBUILD
file, removing thePipfile
, updating theREADME.md
, and modifying several functions inwut/utils.py
for enhanced functionality and error handling.Package Metadata and Dependencies:
PKGBUILD
: Added a newPKGBUILD
file to define the package metadata and build process for thewut-cli-git
project when using an arch linux based system.Pipfile
: Removed thePipfile
to transition from Pipenv to a standard requirements.txt file.Documentation:
README.md
: Added instructions for customizing the Ollama endpoint and model in the environment variables.Code Improvements:
wut/utils.py
: Updated therun_ollama
to handle the optional use of a remote endpointmypy.ini
: Added a newmypy.ini
configuration file to ignore missing library stubs during type checking.Error Handling and Enhancements:
wut/utils.py
: Enhanced therun_ollama
function to handle connection errors and response errors more gracefully, and updated therun_openai
andrun_anthropic
functions to ensure they return non-empty strings. [1] [2] [3]This pull request includes several changes to the
wut
CLI tool, focusing on package management, environment customization, and code improvements. The most important changes include adding a newPKGBUILD
file, updating theREADME.md
for Ollama configuration, and various code improvements inwut/utils.py
.Package Management:
PKGBUILD
file to support building the package from source, including necessary metadata and build instructions.Pipfile
to transition to a different package management approach.Documentation:
README.md
to include instructions for customizing the Ollama endpoint and model through environment variables.Code Improvements:
mypy.ini
configuration to ignore missing imports, improving type-checking setup.wut/utils.py
to improve code readability and robustness, including changes to handle empty strings and better error handling for Ollama integration. [1] [2] [3] [4] [5] [6] [7] [8] [9]Error Handling:
wut/utils.py
, including specific messages for connection errors and missing models.