Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Local Ollama with OpenCommit not working when internet is blocked #311

Open
recrack opened this issue Mar 14, 2024 · 5 comments
Open
Labels
bug Something isn't working

Comments

@recrack
Copy link

recrack commented Mar 14, 2024

Opencommit Version

v1.0.2

Node Version

v20.5.1

NPM Version

9.8.0

What OS are you seeing the problem on?

Other Linux Distro

What happened?

I am trying to use local Ollama for my project, but I have encountered an issue where OpenCommit does not work when the internet is disconnected.

Expected Behavior

When using local Ollama, OpenCommit should continue to function properly even if the internet is disconnected.

Current Behavior

OpenCommit does not work when the internet is disconnected while using local Ollama. This causes issues with committing changes to the local repository and can lead to lost or untracked changes.

Possible Solution

No response

Steps to Reproduce

No response

Relevant log output

No response

@recrack recrack added the bug Something isn't working label Mar 14, 2024
@di-sukharev
Copy link
Owner

@jaroslaw-weber hello again :) any idea why this happens with ollama?

@jaroslaw-weber
Copy link
Contributor

Not sure, probably something related to running ollama in local server? We basically do a API call to localhost so maybe related.

@di-sukharev
Copy link
Owner

look like a request can not be made with no internet, lets see if this happens again, keeping the issue opened

@recrack
Copy link
Author

recrack commented Mar 19, 2024

@di-sukharev @jaroslaw-weber

my .opencommit

OCO_OPENAI_API_KEY=undefined
OCO_TOKENS_MAX_INPUT=undefined
OCO_TOKENS_MAX_OUTPUT=undefined
OCO_OPENAI_BASE_PATH=undefined
OCO_DESCRIPTION=undefined
OCO_EMOJI=undefined
OCO_MODEL=undefined
OCO_LANGUAGE=en
OCO_MESSAGE_TEMPLATE_PLACEHOLDER=$msg
OCO_PROMPT_MODULE=conventional-commit
OCO_AI_PROVIDER=ollama

@hacker-hackman
Copy link

hacker-hackman commented May 23, 2024

@di-sukharev actually opencommit is working but with a delay I described in #347

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants