Giter Site home page Giter Site logo

Comments (8)

rjmacarthy avatar rjmacarthy commented on May 29, 2024 1

Hello, please make sure that your Ollama settings in the extension settings are correct i.e hostname and port.

image

In the provider config the model dropdown is populated based on api/tags from Ollama api. For other providers I am lazy and just put a text box there.

I will make it more clear for future release. The endpoint for Ollama should be /v1/chat/completions.

Hope it helps,

from twinny.

askareija avatar askareija commented on May 29, 2024 1

okay it's working thanks. But if i'm using dev container, i have to change this host to host.docker.internal, and if i'm using local host is localhost. a little bit complicated. looks like my workaround was create 2 providers with the same model name, but only hostname is different.

gambar

gambar

from twinny.

rjmacarthy avatar rjmacarthy commented on May 29, 2024 1

Everyone has different setup, I just made it so it can be flexible for everyone, some more complicated than others.

Many thanks!

from twinny.

askareija avatar askareija commented on May 29, 2024 1

thank you, last question, i'm using stable-code for FIM, but it's always return 400, is there anything wrong?

gambar

gambar

nevermind, looks like the API path for FIM is /api/generate

from twinny.

orkutmuratyilmaz avatar orkutmuratyilmaz commented on May 29, 2024

Same here, with Manjaro Linux.

from twinny.

rjmacarthy avatar rjmacarthy commented on May 29, 2024

Hello, the model select and provider manager was updated in this release.

https://github.com/rjmacarthy/twinny/releases/tag/v3.11.0

Different providers/models can now be set here without opening the settings menu everytime.

image

Hope that helps.

from twinny.

askareija avatar askareija commented on May 29, 2024

i'm using ollama and only ollama that doesn't have model name field.

ollama:
gambar

llamacpp/other provider:
gambar

also i don't know the API path for ollama, i've tried /api/chat, using llamacpp but it return 400 and twinny become endless loading.

gambar

gambar

gambar

now i'm using latest version 3.11.19

from twinny.

askareija avatar askareija commented on May 29, 2024

thank you, last question, i'm using stable-code for FIM, but it's always return 400, is there anything wrong?

gambar

gambar

from twinny.

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.