the-cafe / git-ai-commit

let AI write your commit messages
https://pypi.org/project/git-ai-commit/
52 stars 0 forks source link

✨add ollama url support for config and logging #25

Closed Seif-Mamdouh closed 3 months ago

Seif-Mamdouh commented 3 months ago

Description

In this PR I added a config flag that supports local urls for ollama!

Test Plan

pip3 install . && pre-commit install && pre-commit autoupdate
> git_ai_commit config -ou=<ollama-url>

> git_ai_commit config --ollama-url=<ollama-url>

expected output

Ollama URL set to <ollama-url>

double check with local db

git_ai_commit config