Coder Social home page Coder Social logo

rossascends / stmp Goto Github PK

View Code? Open in Web Editor NEW
64.0 64.0 9.0 8.41 MB

SillyTavern MultiPlayer is an LLM chat interface, created by RossAscends, that allows multiple users to chat together with each other and an AI.

License: GNU Affero General Public License v3.0

Batchfile 0.51% JavaScript 81.66% HTML 9.63% CSS 8.15% Dockerfile 0.05%

stmp's People

Contributors

city-unit avatar cohee1207 avatar estrofox avatar rossascends avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

stmp's Issues

server - Error parsing message: TypeError: fetch failed

This always appears in the Log after loading the Site.

[2024-01-06T18:40:23.747] [ERROR] server - Error parsing message: TypeError: fetch failed
    at Object.fetch (node:internal/deps/undici/undici:11457:11)
    at async Object.getModelList (B:\STMP\src\api-calls.js:617:22)
    at async WebSocket.<anonymous> (B:\STMP\server.js:660:32) {
  cause: Error: unknown scheme
      at makeNetworkError (node:internal/deps/undici/undici:6802:35)
      at schemeFetch (node:internal/deps/undici/undici:10919:18)
      at node:internal/deps/undici/undici:10792:26
      at mainFetch (node:internal/deps/undici/undici:10809:11)
      at fetching (node:internal/deps/undici/undici:10766:7)
      at fetch2 (node:internal/deps/undici/undici:10644:20)
      at Object.fetch (node:internal/deps/undici/undici:11455:18)
      at fetch (node:internal/process/pre_execution:230:25)
      at Object.getModelList (B:\STMP\src\api-calls.js:617:28)
      at WebSocket.<anonymous> (B:\STMP\server.js:660:42) {
    [cause]: undefined
  }
}

If then the user sends a message, the server will just crash.

B:\STMP\src\api-calls.js:42
    let isCCSelected = liveAPI.type === 'CC' ? true : false
                               ^

TypeError: Cannot read properties of undefined (reading 'type')
    at Object.getAIResponse (B:\STMP\src\api-calls.js:42:32)
    at handleResponse (B:\STMP\server.js:1026:36)
    at WebSocket.<anonymous> (B:\STMP\server.js:922:25)

Node.js v18.16.0

I'm using Text-Generation-Webui on Port 5000.

//Edit:
It seems to have to do with an wrong saving of the endpoint input.
I input http://127.0.0.1:5000/v1/ and it will work for the session, but after a server restart, the endpoint will be reset back to localhost:5000, even though the correct API Preset is selected.
Correcting the endpoint after each server restart will "fix" the issue.

"no such file or directory, open './secrets.json'" on docker build

sudo docker compose up --build

[+] Building 0.2s (10/10) FINISHED
 => [stmp internal] load .dockerignore                                                                                                                                            0.0s
 => => transferring context: 2B                                                                                                                                                   0.0s
 => [stmp internal] load build definition from Dockerfile                                                                                                                         0.0s
 => => transferring dockerfile: 170B                                                                                                                                              0.0s
 => [stmp internal] load metadata for docker.io/library/node:20                                                                                                                   0.0s
 => [stmp 1/5] FROM docker.io/library/node:20                                                                                                                                     0.0s
 => [stmp internal] load build context                                                                                                                                            0.0s
 => => transferring context: 39.29kB                                                                                                                                              0.0s
 => CACHED [stmp 2/5] WORKDIR /usr/src/app                                                                                                                                        0.0s
 => CACHED [stmp 3/5] COPY package*.json ./                                                                                                                                       0.0s
 => CACHED [stmp 4/5] RUN npm install --no-audit                                                                                                                                  0.0s
 => [stmp 5/5] COPY . .                                                                                                                                                           0.0s
 => [stmp] exporting to image                                                                                                                                                     0.1s
 => => exporting layers                                                                                                                                                           0.1s
 => => writing image sha256:3538a2f46cf96cb7d1a6ea2c63bb77bd198a14af5a56050933f45c288222eab2                                                                                      0.0s
 => => naming to docker.io/library/util-stmp                                                                                                                                      0.0s
[+] Running 1/0
 โœ” Container SillyTavern_Multiplayer  Recreated                                                                                                                                   0.0s
Attaching to SillyTavern_Multiplayer
SillyTavern_Multiplayer  |
SillyTavern_Multiplayer  | > [email protected] start
SillyTavern_Multiplayer  | > node server.js
SillyTavern_Multiplayer  |
SillyTavern_Multiplayer  |
SillyTavern_Multiplayer  | node:fs:453
SillyTavern_Multiplayer  |     return binding.readFileUtf8(path, stringToFlags(options.flag));
SillyTavern_Multiplayer  |                    ^
SillyTavern_Multiplayer  |
SillyTavern_Multiplayer  | Error: ENOENT: no such file or directory, open './secrets.json'
SillyTavern_Multiplayer  |     at Object.readFileSync (node:fs:453:20)
SillyTavern_Multiplayer  |     at Object.<anonymous> (/usr/src/app/src/api-calls.js:24:34)
SillyTavern_Multiplayer  |     at Module._compile (node:internal/modules/cjs/loader:1376:14)
SillyTavern_Multiplayer  |     at Module._extensions..js (node:internal/modules/cjs/loader:1435:10)
SillyTavern_Multiplayer  |     at Module.load (node:internal/modules/cjs/loader:1207:32)
SillyTavern_Multiplayer  |     at Module._load (node:internal/modules/cjs/loader:1023:12)
SillyTavern_Multiplayer  |     at Module.require (node:internal/modules/cjs/loader:1235:19)
SillyTavern_Multiplayer  |     at require (node:internal/modules/helpers:176:18)
SillyTavern_Multiplayer  |     at Object.<anonymous> (/usr/src/app/server.js:27:13)
SillyTavern_Multiplayer  |     at Module._compile (node:internal/modules/cjs/loader:1376:14) {
SillyTavern_Multiplayer  |   errno: -2,
SillyTavern_Multiplayer  |   code: 'ENOENT',
SillyTavern_Multiplayer  |   syscall: 'open',
SillyTavern_Multiplayer  |   path: './secrets.json'
SillyTavern_Multiplayer  | }
SillyTavern_Multiplayer  |
SillyTavern_Multiplayer  | Node.js v20.10.0
SillyTavern_Multiplayer  |
SillyTavern_Multiplayer exited with code 1

so where is the file secrets.json?

Error: db - API not found: addNewAPI

01866bd introduced error with adding API Endpoint tab. For me it is missing on clean setup and I have no way to use STMP now. The tab closes when you lauch the webpage and console says:
[2023-12-29T03:41:34.971] [ERROR] db - API not found: addNewAPI
[2023-12-29T03:41:34.972] [ERROR] server - Error parsing message: TypeError: Cannot read properties of null (reading 'name')

Howewer if you add custom API in commit before that one, and save DB file and open it in this version it works fine

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.