Getting error code 401 for my API key, but key works everywhere else? #145
-
When I first installed fabric i entered a different API key but it wasnt working because I didn't have any credits. so I bought some and generated a new api key. I came back to my terminal and did
Error: Error code: 401 - {'error': {'message': 'Incorrect API key provided: sk-9X7xF***************************************dOLB. You can find your API key at https://platform.openai.com/account/api-keys.', 'type': 'invalid_request_error', 'param': None, 'code': 'invalid_api_key'}}
import openai def check_openai_api_key(api_key): OPENAI_API_KEY = "sk-xkMr******************************0uFN" if check_openai_api_key(OPENAI_API_KEY):
examples git:(master) ✗ /usr/local/bin/python3 /Users/lefab/Documents/scripts/OpenAi_keytest/open_ai_apikey_test.py
|
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
You can manually change the key. It’s in ~/.config/fabric/.env |
Beta Was this translation helpful? Give feedback.
-
I've literally just found out about this!
It now works! I'll change my post to resolved!
Thanks for your help
…--
. | Fabien Dostie |
.///Coloriste Resolve | Montage Online VR-HD
.//Compositing | VR Stitching + editing
./DIT | DMT | V/A AQTIS 514 IATSE 667
.Tech. Scène IATSE 56
C: 438.357.3462 W: fabiendostie.com
On Fri, Mar 1, 2024, 06:27 xssdoctor ***@***.***> wrote:
You can manually change the key. It’s in ~/.config/fabric/.env
—
Reply to this email directly, view it on GitHub
<#145 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AM22A2N2ZSAKSJ57S622GHLYWBQ3XAVCNFSM6AAAAABEBSZCKKVHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM4DMNBSGA3TS>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
This is stupid, the app thinks I have entered API key I never heard of. I double checked all the folders for the settings. This is my 8th time for the past 6 months trying to run this abomination. The most user-unfriendly app ever. |
Beta Was this translation helpful? Give feedback.
You can manually change the key. It’s in ~/.config/fabric/.env