From f3dbdac59d80ca1aa845f0ca58bf2186a6ddb75c Mon Sep 17 00:00:00 2001 From: bedovyy Date: Fri, 23 Feb 2024 03:15:32 +0900 Subject: [PATCH] change API URL --- utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils.py b/utils.py index e60f9ce..9501e47 100644 --- a/utils.py +++ b/utils.py @@ -25,7 +25,7 @@ def get_access_key(email: str, password: str) -> str: return argon_hash(email, password, 64, "novelai_data_access_key")[:64] -BASE_URL="https://api.novelai.net" +BASE_URL="https://image.novelai.net" def login(key) -> str: response = requests.post(f"{BASE_URL}/user/login", json={ "key": key }) response.raise_for_status()