GrimlocK Posted February 28 Share Posted February 28 Hi, I have a chatgpt subscription and have entered my api, but when I use it here's the feedback Alfred gives me. an idea ? [The model gpt-4 does not exist or you do not have access to it. Learn more: https://help.openai.com/en/articles/7102672-how-can-i-access-gpt-4.] Thanks Link to comment
Stephen_C Posted February 28 Share Posted February 28 The recommendation when you have a problem with a workflow is to post in the thread relating to that workflow. That way the developer of the workflow is likely to see the post more quickly. Please run the workflow and copy and post the entire output of the debugger in a new post on the relevant thread. That may help the developer diagnose the problem for you. Stephen Link to comment
vitor Posted February 28 Share Posted February 28 That message is not in the workflow, meaning it is being returned by the API. In other words, you’ll have to ask OpenAI why your key isn’t working. The given link (also not in the workflow) has some hypothesis but only you or OpenAI can know the cause. Link to comment
GrimlocK Posted February 28 Author Share Posted February 28 (edited) Hi @Stephen_C and @vitor For better management, I had forgotten to send the log file I'll check with openAI. many thanks for your reply Edited February 28 by GrimlocK Link to comment
evortex Posted February 29 Share Posted February 29 I also got some weird issues with the API key. I get this message in the workflow: Quote [Incorrect API key provided: xxxxxxxxxxxxxxxxxx. You can find your API key at https://platform.openai.com/account/api-keys.] I'm pretty sure, I pasted the API correctly. 😁 Also: If I enter a new key in the workflow prefrences (just to be sure), it is still using the "old" key. I even uninstalled and re-installed the complete workflow. Is this a known issue? Any ideas? Link to comment
vitor Posted February 29 Share Posted February 29 Where exactly are you adding the key? Please provide a screenshot. Link to comment
vitor Posted February 29 Share Posted February 29 40 minutes ago, evortex said: Also: If I enter a new key in the workflow prefrences (just to be sure), it is still using the "old" key. What exactly do you mean by this? Are you editing the default value in the configuration builder? Don’t, that should be left empty. But yes, even if doing that it would still use the key set in the correct place, that’s working as intended. As per above, that error message is not in the workflow, it’s being returned by OpenAI themselves. Make sure you’re not using an old or invalid key or pasting extra stuff. That’s an issue which can only be solved from your side. Link to comment
evortex Posted February 29 Share Posted February 29 When I first got this error from OpenAI, I logged in and generated a new API key (just to be sure). I entered this new key in the field "OpenAI API Key:" (as seen in my screenshot). Interestingly enough it still comes up with the error message referring to the first api key. I can see it, because the keys start with a total different number-letter-combination. So, for whatever reason: Looks like the key actually isn't updated after being changed. Therefore I wanted to know where the settings are actually saved, in which config-file. Sorry for bothering you Link to comment
vitor Posted February 29 Share Posted February 29 Remove the workflow. Try to use it. This step is important to make sure you don’t have e.g. some duplicate copy that you’re calling.Install it again, from the Gallery page. Make sure it’s version 2024.3 and that the configuration field for the key is empty.Add your API key to the configuration field.Try again.What do you get now? If you’re still getting a notice with the old key after that you may have to contact OpenAI. Maybe they’re correlating both keys and sending an incorrect message. But the workflow only uses whatever string in pasted into the configuration, nothing else. Link to comment
evortex Posted February 29 Share Posted February 29 I repeated all the steps above. Believe it or not: Is still comes up with the same error message referring to the OLD key. I will revoke the key and get a new one. Perhaps the helps. I keep you posted. Link to comment
vitor Posted February 29 Share Posted February 29 17 minutes ago, evortex said: I repeated all the steps above. And just to be sure: on step 2 you got no results? Had another idea: Try setting the API key to something obviously wrong, like fake_key. What do you get then when using the workflow? Link to comment
evortex Posted February 29 Share Posted February 29 Even after revoking the key and entering the new one into the preference pane, the error message is the same. It keeps referring to the original API-Key. I tried the new key in "MacBot" and my ChatGPT-Shortcut and the key itself works just fine. Link to comment
vitor Posted February 29 Share Posted February 29 Try the fake_key suggestion above. What do you get? Link to comment
GrimlocK Posted February 29 Author Share Posted February 29 Hi @evortex you need to add a minimum amount of 5 dollars and then you can use the workflow here https://platform.openai.com/account/billing/overview Link to comment
evortex Posted March 1 Share Posted March 1 GrimlocK, thanks for the hint. You are right but I got more than enough credits. Link to comment
vitor Posted March 1 Share Posted March 1 Are you syncing your preferences? Because the only other thing that occurs to me would be that your sync service would be mangling the file and reverting to an old version. Perhaps try setting your sync folder to somewhere local and repeating the process. Also, as a last resort you can try editing the prefs.plist file directly in a text editor. I don’t recommend this because that is managed by Alfred but you could inspect it as a last resort. Ultimately, there’s something specific about your macOS set up or OpenAI account that is causing the issue, and that’s what you need to figure out. The workflow isn’t doing anything weird, it uses the most basic tried-and-true methods for configuration that have been in place for a long time. Link to comment
evortex Posted March 1 Share Posted March 1 No, I'm not using any sync-services except iCloud. I checked the prefs.plist file and it looks like this: <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <plist version="1.0"> <dict> <key>openai_api_key</key> <string>wrong-dummy-key</string> </dict> </plist> So… The value is correct (the intentionally wrong key), but the error message still refers to the long gone old key: Interesting, isn't it? I will uninstall and re-install the Workflow and Alfred 5. Link to comment
BlueT Posted March 1 Share Posted March 1 Hello there, I'm using this workflow and have some problem. I'm pretty sure my API key is copy correctly, and the resposne is always CONNECTION STALL. Within the Alfred workflow debug window, it says constantly till it reach 5 seconds time limits, then return the final connection stall. [23:39:20.752] ChatGPT / DALL-E[Text View] Script with argv 'tell me the time' finished [23:39:20.760] ChatGPT / DALL-E[Text View] {"rerun":0.1,"variables":{"streaming_now":true}} I'm pretty sure the internet is good as I can connect to OpenAI API directly with my browser. How should i solve it? Any suggestion? Link to comment
vitor Posted March 1 Share Posted March 1 Please provide the full debug log, as well as a short video with the debugger open. Include also your version of macOS and the workflow. Link to comment
vitor Posted March 1 Share Posted March 1 @evortex Could you please email the info@ email address with your Diagnostics? You can get them by typing ?diagnostics into Alfred and then attach to the email. Link to comment
vitor Posted March 4 Share Posted March 4 @evortex I just had a thought. After changing the key did you try asking a new question? Because if not, you’re just seeing the old message that was part of the conversation. You have to try to get something new. Use ⌘↩ to clear the chat. Link to comment
evortex Posted March 4 Share Posted March 4 Yes, of course. I tried it but I still can't get it to work. If you want, I could set up a Zoom call so you can see for yourself. Send me an e-mai if you you would like to o this. Link to comment
vitor Posted March 4 Share Posted March 4 Please record a short video instead. With the debugger open and starting a new conversation. Link to comment
vitor Posted March 4 Share Posted March 4 Please export the workflow (right-click it in the list and you’ll find the option) and share that. I need to see if anything is wrong in your local copy. Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now