Compare commits

..

2 Commits

Author SHA1 Message Date
veguAI
143dd47e02 0.25.4 (#118)
* dont run npm install during container build

* fix const var issue when ALLOWED_HOSTS is anything but `all`

* ensure docker env sets NODE_ENV to development for now

* 0.25.4

* dont mount frontend volume by default
2024-05-18 16:22:57 +03:00
veguAI
cc7cb773d1 Update README.md 2024-05-18 12:31:32 +03:00
8 changed files with 20 additions and 23 deletions

View File

@@ -1,13 +1,19 @@
# Use an official node runtime as a parent image
FROM node:20
# Make sure we are in a development environment (this isn't a production ready Dockerfile)
ENV NODE_ENV=development
# Echo that this isn't a production ready Dockerfile
RUN echo "This Dockerfile is not production ready. It is intended for development purposes only."
# Set the working directory in the container
WORKDIR /app
# Copy the frontend directory contents into the container at /app
COPY ./talemate_frontend /app
# Install any needed packages specified in package.json
# Install all dependencies
RUN npm install
# Make port 8080 available to the world outside this container

View File

@@ -95,6 +95,8 @@ There is also a [troubleshooting guide](docs/troubleshoot.md) that might help.
### Docker
:warning: Some users currently experience issues with missing dependencies inside the docker container, issue tracked at [#114](https://github.com/vegu-ai/talemate/issues/114)
1. `git clone https://github.com/vegu-ai/talemate.git`
1. `cd talemate`
1. `cp config.example.yaml config.yaml`
@@ -171,14 +173,7 @@ In the case for `bartowski_Nous-Hermes-2-Mistral-7B-DPO-exl2_8_0` that is `ChatM
### Recommended Models
As of 2024.05.06 my personal regular drivers (the ones i test with) are:
- meta-llama_Meta-Llama-3-8B-Instruct
- brucethemoose_Yi-34B-200K-RPMerge
- rAIfle_Verdict-8x7B
- meta-llama_Meta-Llama-3-70B-Instruct
That said, any of the top models in any of the size classes here should work well (i wouldn't recommend going lower than 7B):
Any of the top models in any of the size classes here should work well (i wouldn't recommend going lower than 7B):
[https://oobabooga.github.io/benchmark.html](https://oobabooga.github.io/benchmark.html)
@@ -266,4 +261,4 @@ Then open the file and edit the `ALLOWED_HOSTS` and `VUE_APP_TALEMATE_BACKEND_W
ALLOWED_HOSTS=example.com
# wss if behind ssl, ws if not
VUE_APP_TALEMATE_BACKEND_WEBSOCKET_URL=wss://example.com:5050
```
```

View File

@@ -23,5 +23,5 @@ services:
dockerfile: Dockerfile.frontend
ports:
- "8080:8080"
volumes:
- ./talemate_frontend:/app
#volumes:
# - ./talemate_frontend:/app

View File

@@ -4,7 +4,7 @@ build-backend = "poetry.masonry.api"
[tool.poetry]
name = "talemate"
version = "0.25.3"
version = "0.25.4"
description = "AI-backed roleplay and narrative tools"
authors = ["FinalWombat"]
license = "GNU Affero General Public License v3.0"

View File

@@ -2,4 +2,4 @@ from .agents import Agent
from .client import TextGeneratorWebuiClient
from .tale_mate import *
VERSION = "0.25.3"
VERSION = "0.25.4"

View File

@@ -1,12 +1,12 @@
{
"name": "talemate_frontend",
"version": "0.25.3",
"version": "0.25.4",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"name": "talemate_frontend",
"version": "0.25.3",
"version": "0.25.4",
"dependencies": {
"@codemirror/lang-markdown": "^6.2.5",
"@codemirror/theme-one-dark": "^6.1.2",

View File

@@ -1,6 +1,6 @@
{
"name": "talemate_frontend",
"version": "0.25.3",
"version": "0.25.4",
"private": true,
"scripts": {
"serve": "vue-cli-service serve",

View File

@@ -1,13 +1,9 @@
const { defineConfig } = require('@vue/cli-service')
const ALLOWED_HOSTS = process.env.ALLOWED_HOSTS || "all"
const ALLOWED_HOSTS = ((process.env.ALLOWED_HOSTS || "all") !== "all" ? process.env.ALLOWED_HOSTS.split(",") : "all")
const VUE_APP_TALEMATE_BACKEND_WEBSOCKET_URL = process.env.VUE_APP_TALEMATE_BACKEND_WEBSOCKET_URL || null
// if ALLOWED_HOSTS is set and has , then split it
if (ALLOWED_HOSTS !== "all") {
ALLOWED_HOSTS = ALLOWED_HOSTS.split(",")
}
console.log("NODE_ENV", process.env.NODE_ENV)
console.log("ALLOWED_HOSTS", ALLOWED_HOSTS)
console.log("VUE_APP_TALEMATE_BACKEND_WEBSOCKET_URL", VUE_APP_TALEMATE_BACKEND_WEBSOCKET_URL)