GithubHelp home page GithubHelp logo

Comments (5)

SebastienElet avatar SebastienElet commented on June 10, 2024 1

Same for me even with OCO_MODEL set to mistral

❯ OCO_AI_PROVIDER="ollama" OCO_MODEL=mistral opencommit
┌  open-commit
│
◇  2 staged files:
  .zshrc
  Makefile
│
◇  📝 Commit message generated
│
└  ✖ local model issues. details: connect ECONNREFUSED ::1:11434

from opencommit.

di-sukharev avatar di-sukharev commented on June 10, 2024

@jaroslaw-weber hi man, could you take a look please?

from opencommit.

di-sukharev avatar di-sukharev commented on June 10, 2024

@jagadish-k could you try with other OCO_MODEL config? now it's set to gpt-3.5-turbo-16k which is not mistral

from opencommit.

Abir-Tx avatar Abir-Tx commented on June 10, 2024

Hi there, I am also getting this same error. I think the doc should add some more details on setting an ollama model with open-commit

I have this bare minimum config & ollama is running fine on port 11434 on localhost

OCO_AI_PROVIDER='ollama'
OCO_DESCRIPTION=false
OCO_EMOJI=false

from opencommit.

Abir-Tx avatar Abir-Tx commented on June 10, 2024

Guys I have found a fix for this. You see the oco is requesting the ollama API on ipv6 loopback which is ::1 and by default ollama doest not listen on ipv6 address.

So to fix the issue you can run ollama on ipv6 too or in my case I have configured ollama to listen on all interfaces by setting the OLLAMA_HOST='0.0.0.0 env variable.

@di-sukharev I can enhance the documentation on this by adding guide for setting up this if you like so I will submit a PR.

I hope this will help thanks

from opencommit.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.