Giter Club home page Giter Club logo

Comments (4)

bakks avatar bakks commented on August 22, 2024 1

Hey @txirrindulari, I've just pushed a change that enables you to set a Base URL for the model API. In other words, this allows you to point butterfish at a different server than the OpenAI api. In theory text-generation-webui supports the OpenAI API but I haven't been able to get models working on text-generation-webui to test this out.

If you want to try this, you can install butterfish from the latest commit (I haven't yet released), and then set the Base URL. Something like:

go install github.com/bakks/butterfish/cmd/butterfish@latest
$(go env GOPATH)/bin/butterfish shell -u http://localhost:1234/v1 -A

Assuming that you're running text-generation-webui at port 1234, etc.

from butterfish.

JeremyBickel avatar JeremyBickel commented on August 22, 2024 1

You have to run text-generation-webui (server.py) with --extensions openai then point your butterfish to http://127.0.0.1:5000/v1 by default
Here's the docs for the openai extension. It says to use --api, but that's old. https://github.com/oobabooga/text-generation-webui/wiki/12-%E2%80%90-OpenAI-API

Example: go/bin/butterfish summarize .bashrc -u "http://127.0.0.1:5000/v1" -vv
Don't forget the quotes around the address.

Anyhow.. This thing IS working! I'm so glad. THIS is AI, to me, anyways. It's so useful!

from butterfish.

JeremyBickel avatar JeremyBickel commented on August 22, 2024

I just tried it with $(go env GOPATH)/bin/butterfish shell -u http://127.0.0.1:7860 -A
It instantly 404'd - "Error prompting LLM: error, status code: 404, message: %!s()"

from butterfish.

bakks avatar bakks commented on August 22, 2024

That's awesome @JeremyBickel, thanks for testing and adding your commands! Will make a note of it in the readme.

from butterfish.

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.