imbajin commented on issue #297: URL: https://github.com/apache/incubator-hugegraph-ai/issues/297#issuecomment-3159428087
> I've set ENABLE_LOGIN=False in the .env file and confirmed it's working: > > /home/work/hugegraph-llm/.env GRAPH_URL=127.0.0.1:8080 GRAPH_NAME=hugegraph GRAPH_USER=admin GRAPH_PWD=xxx GRAPH_SPACE= LIMIT_PROPERTY=False MAX_GRAPH_PATH=10 MAX_GRAPH_ITEMS=30 EDGE_LIMIT_PRE_LABEL=8 VECTOR_DIS_THRESHOLD=0.9 TOPK_PER_KEYWORD=1 TOPK_RETURN_RESULTS=20 **ENABLE_LOGIN=False** USER_TOKEN=4321 ADMIN_TOKEN=xxxx CHAT_LLM_TYPE=openai EXTRACT_LLM_TYPE=openai TEXT2GQL_LLM_TYPE=openai EMBEDDING_TYPE=openai > > log: [root@luqmvbs2g8cf8g ~]# docker logs rag | grep "Authentication is" INFO llm: (Status) Authentication is disabled app.py:159 INFO llm: (Status) Authentication is disabled app.py:159 > > /home/work/hugegraph-llm/src/hugegraph_llm/demo/rag_demo/app.py > > def create_app(): app = FastAPI(lifespan=lifespan) # we don't need to manually check the env now # settings.check_env() prompt.update_yaml_file() auth_enabled = admin_settings.enable_login.lower() == "true" **log.info("(Status) Authentication is %s now.", "enabled" if auth_enabled else "disabled") # line 159** api_auth = APIRouter(dependencies=[Depends(authenticate)] if auth_enabled else []) > > However, when I submit a query (e.g., "Who is Sarah?"), the system still returns **401 Error**: It seems that this is the fault of the agent `openai` **service provider** you connected to? When you configure the LLM option, click the configuration and see if the test passes (including embedding if there is configuration). The source of the error should not be Graph itself. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: issues-unsubscr...@hugegraph.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@hugegraph.apache.org For additional commands, e-mail: issues-h...@hugegraph.apache.org