From dbd8064f68717c488b398d35a1422a2f75a85c6a Mon Sep 17 00:00:00 2001 From: dwgrth <37941350+dwgrth@users.noreply.github.com> Date: Thu, 8 Aug 2024 18:12:11 -0400 Subject: [PATCH 1/2] fix Authorization in provisioning_has_valid_civitai_token --- config/provisioning/default.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/provisioning/default.sh b/config/provisioning/default.sh index b10aba4a..c88f4ac2 100755 --- a/config/provisioning/default.sh +++ b/config/provisioning/default.sh @@ -206,7 +206,7 @@ function provisioning_has_valid_civitai_token() { url="https://civitai.com/api/v1/models?hidden=1&limit=1" response=$(curl -o /dev/null -s -w "%{http_code}" -X GET "$url" \ - -H "Authorization: Bearer $HF_TOKEN" \ + -H "Authorization: Bearer $CIVITAI_TOKEN" \ -H "Content-Type: application/json") # Check if the token is valid From 727b5b9b4c015cc3830dcacccd51f2a526742141 Mon Sep 17 00:00:00 2001 From: Rob Ballantyne Date: Sat, 10 Aug 2024 09:47:52 +0100 Subject: [PATCH 2/2] Update flux.sh --- config/provisioning/flux.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/provisioning/flux.sh b/config/provisioning/flux.sh index 61c072ef..fa73bdc9 100755 --- a/config/provisioning/flux.sh +++ b/config/provisioning/flux.sh @@ -195,7 +195,7 @@ function provisioning_has_valid_civitai_token() { url="https://civitai.com/api/v1/models?hidden=1&limit=1" response=$(curl -o /dev/null -s -w "%{http_code}" -X GET "$url" \ - -H "Authorization: Bearer $HF_TOKEN" \ + -H "Authorization: Bearer $CIVITAI_TOKEN" \ -H "Content-Type: application/json") # Check if the token is valid