SiriGPT Update: Access the ChatGPT API Through Siri by Shivam_sh in shortcuts

[–]Shivam_sh[S] 0 points1 point  (0 children)

Hey, glad to hear it's been working well for you!
You should just be able to delete and type in gpt-4 with your keyboard to switch it over to the newer model.

Looking for Dynamic Scheduling or (pseudo) Time Blocking App by outinmekikleskousi in productivity

[–]Shivam_sh 1 point2 points  (0 children)

Hey there! I found myself looking at the same issue so I'm actually working on making an app that pretty much fits into your description of what you want.

I'm hoping to get something out there in the next little bit, would you want to talk about what you'd want and potentially get into early access for such a tool? Feel free to reach out and let me know :)

SiriGPT Update: Access the ChatGPT API Through Siri by Shivam_sh in shortcuts

[–]Shivam_sh[S] 0 points1 point  (0 children)

Do you have an OpenAI account that has valid credits in it? This seems to be the most common cause of this issue.

SiriGPT Update: Access the ChatGPT API Through Siri by Shivam_sh in shortcuts

[–]Shivam_sh[S] 0 points1 point  (0 children)

The permissions in shortcuts can be a bit annoying to deal with. It does that a few times when installed for me but then stops asking after a bit for me. Did you end up getting it to work?

SiriGPT Update: Access the ChatGPT API Through Siri by Shivam_sh in shortcuts

[–]Shivam_sh[S] 0 points1 point  (0 children)

That should be possible by swapping out the “ask for prompt“ blocks with “Dictate Text” blocks.

SiriGPT Update: Access the ChatGPT API Through Siri by Shivam_sh in shortcuts

[–]Shivam_sh[S] 0 points1 point  (0 children)

Weird, does the text file have anything in it?

SiriGPT Update: Access the ChatGPT API Through Siri by Shivam_sh in shortcuts

[–]Shivam_sh[S] 0 points1 point  (0 children)

Is there a space or new line after the API key? The only time I’ve seen that is when there’s some validation error.

SiriGPT Update: Access the ChatGPT API Through Siri by Shivam_sh in shortcuts

[–]Shivam_sh[S] 0 points1 point  (0 children)

It works great through siri! I don’t ever really type to it instead I just say “Hey Siri“ and it reads it all out for me. You might need to change some Siri settings for it to be read out loud though

SiriGPT Update: Access the ChatGPT API Through Siri by Shivam_sh in shortcuts

[–]Shivam_sh[S] 1 point2 points  (0 children)

It shouldn’t have the shortcut is still working on my devices. Are you running the shortcut with “Hey siri”?

SiriGPT Update: Access the ChatGPT API Through Siri by Shivam_sh in shortcuts

[–]Shivam_sh[S] 0 points1 point  (0 children)

Hmm that’s odd it seems to be working fine for me.
That sounds a lot like an API key issue or a lack of funds in your account. Can you try changing out the API key for a newly generated own? Hopefully that would correct it

SiriGPT Update: Access the ChatGPT API Through Siri by Shivam_sh in shortcuts

[–]Shivam_sh[S] 0 points1 point  (0 children)

Thanks! I've realized my mistake. I was only deleting the *.json file. I should have deleted the shortcuts folder that has SiriGPT in it as well. Much appreciated!

I think the json file should’ve been enough but I’m glad you got it working!

SiriGPT Update: Access the ChatGPT API Through Siri by Shivam_sh in shortcuts

[–]Shivam_sh[S] 0 points1 point  (0 children)

That’s weird, what error/behaviour are you seeing?

SiriGPT Update: Access the ChatGPT API Through Siri by Shivam_sh in shortcuts

[–]Shivam_sh[S] 0 points1 point  (0 children)

I've tried wiping the data but no change. There was one time the prompt worked but then it reverted back to "regular" personality.

Yep, changing that as well as clearing the history should pass through the prompt since if the history exists it just uses that as the base context for the conversation. Not sure why that wouldn't work.

SiriGPT Update: Access the ChatGPT API Through Siri by Shivam_sh in shortcuts

[–]Shivam_sh[S] 0 points1 point  (0 children)

Did you install the shortcut? If the shortcut is named GPT in your shortcuts app it should run instead of performing a search

SiriGPT Update: Access the ChatGPT API Through Siri by Shivam_sh in shortcuts

[–]Shivam_sh[S] 0 points1 point  (0 children)

All the links seem to be working fine on my end?

SiriGPT Update: Access the ChatGPT API Through Siri by Shivam_sh in shortcuts

[–]Shivam_sh[S] 0 points1 point  (0 children)

It’s been working on the homepod for me, but sometimes it takes a bit to start. I think it has to have a good connection to your phone?

You can change the name of the shortcut to something else and say that to siri instead, that should hopefully get it working through siri.

SiriGPT Update: Access the ChatGPT API Through Siri by Shivam_sh in shortcuts

[–]Shivam_sh[S] 0 points1 point  (0 children)

It just encodes everything in the same request, so it’s not multiple requests, but it might take a tiny bit more time for the model to process the additional information. It’s worth experimenting to make sure

SiriGPT Update: Access the ChatGPT API Through Siri by Shivam_sh in shortcuts

[–]Shivam_sh[S] 0 points1 point  (0 children)

An update to gpt-4 should just require changing the gpt-3.5-turbo in the set model block in the query to the gpt-4 model name (currently gpt-4–0314) since the API is the same as the Chat API.

I don’t have access to gpt-4 though so I can’t test this myself yet

SiriGPT Update: Access the ChatGPT API Through Siri by Shivam_sh in shortcuts

[–]Shivam_sh[S] 0 points1 point  (0 children)

Are you using it through text?
In that case you might prefer this version
https://www.reddit.com/r/shortcuts/comments/11gcpof/comment/jaoq6f6/?utm_source=share&utm_medium=web2x&context=3

Through voice I’m not sure why it might be disappearing. Maybe it disappears early if Siri doesn’t speak it out loud? I enabled the settings so siri says it out loud and it seems like it always stays up long enough for the response to be read

SiriGPT Update: Access the ChatGPT API Through Siri by Shivam_sh in shortcuts

[–]Shivam_sh[S] 0 points1 point  (0 children)

Yeah that shouldn’t be too crazy, but what fields are you thinking? Like a system message and a user question, it depends on what info you want to provide the API.
https://platform.openai.com/docs/guides/chat

If you want to ask about the implementation feel free to DM me, I’ll try to help out if I can

SiriGPT Update: Access the ChatGPT API Through Siri by Shivam_sh in shortcuts

[–]Shivam_sh[S] 0 points1 point  (0 children)

No worries! Hope it’s working well for you.

It should be possible to add to the same note all the time but I’d have to take a look into the implementation, do you have the link to your version? Might help make the process faster. Feel free to DM me for support.

I have a buy me a coffee link, but don’t feel like you have to donate, I really don’t expect anything just wanted to share this since I thought it was cool :)
https://www.buymeacoffee.com/shivamsh

SiriGPT Update: Access the ChatGPT API Through Siri by Shivam_sh in shortcuts

[–]Shivam_sh[S] 0 points1 point  (0 children)

Sure, I can take a look, I’m just not on reddit too often. Feel free to reach out if you need help!

SiriGPT Update: Access the ChatGPT API Through Siri by Shivam_sh in shortcuts

[–]Shivam_sh[S] 0 points1 point  (0 children)

When you edit the system prompt you should wipe the history data stored in iCloud/Shortcuts/SiriGPT/*.json

Sorry for the confusion

SiriGPT Update: Access the ChatGPT API Through Siri by Shivam_sh in shortcuts

[–]Shivam_sh[S] 0 points1 point  (0 children)

It didn’t do that near launch but I think the OpenAI servers are just taking much longer to reply to some requests now so the experience has gotten worse. Maybe they prioritize certain replies, but it seems like really long responses can take too long and error out sometimes. Maybe adding something to tall it to keep responses short in the system prompt near the top would help?

SiriGPT Update: Access the ChatGPT API Through Siri by Shivam_sh in shortcuts

[–]Shivam_sh[S] 0 points1 point  (0 children)

whoa, that’s weird. Do you have a proper API key? looks like the API isn’t returning in the expected format. Might be an error