Code Monkey home page Code Monkey logo

tai_sg_proxy's Introduction

TavernAI SourceGraph proxy

It's fork of sg_proxy script

Works with https://github.com/TavernAI/TavernAI

Requirements: Node, NPM.

  1. Create a SourceGraph account (no phone required, just normal email/password).
  2. Go to https://sourcegraph.com/, click on your profile icon in upper-right, then Settings, then go to Account->Access tokens, and generate a new token.
  3. Clone/download https://github.com/Borov666/tai_sg_proxy, open a console in that directory.
  4. Open .env in the proxy folder and put your token there, so it looks like API_TOKEN="your token here"
  5. Run npm install to install dependencies.
  6. Start the proxy - node main.js
  7. Select Reverse Proxy api in TavernAI's right menu and set the proxy URL as http://127.0.0.1:3000 without the password.

Enjoy.

If you want to use it remotely, you can use any tunneling service e.g. ngrok or cloudflared, for example just cloudflared tunnel --url http://127.0.0.1:3000 is enough to tunnel the proxy through Cloudflare

Notes:

  • Only tested with models claude-2 and cloude-1.3, older ones might work if their API allows to, maybe not.

tai_sg_proxy's People

Contributors

borov666 avatar tavernai avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

jagtenjungle

tai_sg_proxy's Issues

SillyTavern?

Will you make it work for silly tavern as well?

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.