anything-llm: API keys wont go green.
My .env.development looks like this:
SERVER_PORT=3001
OPEN_AI_KEY=sk-.....
OPEN_MODEL_PREF='gpt-3.5-turbo'
CACHE_VECTORS="true"
# Enable all below if you are using vector database: Chroma.
# VECTOR_DB="chroma"
# CHROMA_ENDPOINT='http://localhost:8000'
# Enable all below if you are using vector database: Pinecone.
VECTOR_DB="pinecone"
PINECONE_ENVIRONMENT=us-wes...
PINECONE_API_KEY=b5......
PINECONE_INDEX=default
# Enable all below if you are using vector database: LanceDB.
# VECTOR_DB="lancedb"
# CLOUD DEPLOYMENT VARIRABLES ONLY
# AUTH_TOKEN="hunter2" # This is the password to your application if remote hosting.
# JWT_SECRET="my-random-string-for-seeding" # Only needed if AUTH_TOKEN is set. Please generate random string at least 12 chars long.
# STORAGE_DIR= # absolute filesystem path with no trailing slash
with all correct and cross checked keys. Am I doing something obviously wrong?
When I send a chat message, I get a return: Could not send chat. I check the API keys and they are RED. “Ensure all fields are green before attempting to use AnythingLLM or it may not function as expected!” in red. I’ve tried everything I could think of. Could anyone help?
About this issue
- Original URL
- State: closed
- Created a year ago
- Comments: 21 (5 by maintainers)
Found a related post on discord. If you run the project on a server and open the URL remotely, it opens the side, but it seems the .env is not loaded. All you have to do is to hardcode the server’s address here and rebuild the docker: frontend/src/utils/constants.js (change localhost here to your IP)
Same issue for me.
Configured .env underneath /docker folder.
Seems the .env variables are not respected/loaded?
You are having the same issue as I am. In which folder is the .env file located, docker or server?
Finally, I got it running by moving this line to the end of the .env.development:
In my case, I guess there may be something wrong here:
Here is what I am seeing: