josStorer / RWKV-Runner

A RWKV management and startup tool, full automation, only 8MB. And provides an interface compatible with the OpenAI API. RWKV is a large language model that is fully open source and available for commercial use.
https://www.rwkv.com
MIT License
5.05k stars 481 forks source link

frontend on linux #197

Closed TeaCult closed 10 months ago

TeaCult commented 11 months ago

Python backend works nicely on an archlinux kvm with rtx 3060. But for frontend i have insatlled typescript and vite, ran nmp run dev -- --host

Web page returns this as body. Empty white screen ...

<body>
<div id="root"></div>
<script src="./src/main.tsx" type="module"></script>

<webchatgpt-custom-element-8bd0b55a-77da-477c-ad13-b8e699f1b059 id="webchatgpt-snackbar" style="z-index: 2147483647;"></webchatgpt-custom-element-8bd0b55a-77da-477c-ad13-b8e699f1b059></body>
josStorer commented 11 months ago

Build frontend client with Wails, execute make build. For detailed steps, refer to: https://github.com/josStorer/RWKV-Runner/blob/master/.github/workflows/release.yml#L97

NPM only builds the web frontend, but the software startup relies on some local Go function calls. When NPM builds, the Go backend part is not exported so it will fail.

If you do not have a gui, you could use some other chatgpt services, like https://github.com/Yidadaa/ChatGPT-Next-Web Here is an example: https://github.com/josStorer/RWKV-Runner/blob/master/deploy-examples/ChatGPT-Next-Web/setup.sh

TeaCult commented 11 months ago

Thank you for your reply.

On Wed, Sep 27, 2023, 09:38 josc146 @.***> wrote:

Build frontend client with Wails https://github.com/wailsapp/wails, execute make build. For detailed steps, refer to: https://github.com/josStorer/RWKV-Runner/blob/master/.github/workflows/release.yml#L97

NPM only builds the web frontend, but the software startup relies on some local Go function calls. When NPM builds, the Go backend part is not exported so it will fail.

If you do not have a gui, you could use some other chatgpt services, like https://github.com/Yidadaa/ChatGPT-Next-Web Here is an example: https://github.com/josStorer/RWKV-Runner/blob/master/deploy-examples/ChatGPT-Next-Web/setup.sh

— Reply to this email directly, view it on GitHub https://github.com/josStorer/RWKV-Runner/issues/197#issuecomment-1736789714, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEB5YX4Q43MJND4PAGD543DX4PCVFANCNFSM6AAAAAA5I2CN5U . You are receiving this because you authored the thread.Message ID: @.***>