Mintplex-Labs / anything-llm

The all-in-one Desktop & Docker AI application with built-in RAG, AI agents, and more.
https://anythingllm.com
MIT License
26.54k stars 2.65k forks source link

[BUG]: LLM Preference page blank #1104

Closed Mirgiacomo closed 6 months ago

Mirgiacomo commented 6 months ago

How are you running AnythingLLM?

Local development

What happened?

If I use anythingLLM, I have no particular problems. However, if I want to change something on the 'LLM Preference' page, it has problems.

image

Into terminal log there isn't errors log, but into web console:

image

(I have already tried updating libraries and dependencies)

Are there known steps to reproduce?

No response

timothycarambat commented 6 months ago

You are working locally and you did not set an LLM_PROVIDER in the .env or .env.development (if in dev mode). In normal use of the app you would go through onboarding and that env would be set. Not a bug since this is out of process

santini-cyber commented 6 months ago

Thank you for that Tim! I was running into the same issue. For anyone who wants to follow my fix to a live build running in a docker container on a Linux server: Step 1: Connect in to anything-llm as root docker exec -u 0 -it anything-llm /bin/bash Step 2: Backup .env file and add provider cd /app/server && cp .env bak.env cat cat >> bak.env << EOF LLM_PROVIDER='' EOF Step 3: Copy backup to running cp bak.env .env Step 4: Exit container Ctrl-P Ctrl-Q Step 5: Restart docker container docker ps -a
docker restart This worked for me.