change API URL

This commit is contained in:
bedovyy
2024-02-23 03:15:32 +09:00
parent 65fa139aca
commit f3dbdac59d
+1 -1
View File
@@ -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()