-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Inclusion of placeholders causes prompts to load indefinitely #31
Comments
Hi, is the model you're using one that I can set up and test myself (e.g. ollama)? Also, can you give an example of some selected text on which it fails? |
Hm, I think you need to use Bearer Token for the auth type instead of API key. Not sure why it'd work without placeholders involved, though. If you change the auth type, does it work? |
Hmm, everything is working for me so I'm still not sure what's going wrong. Apologies for all the back-and-forth, but can you edit the command and make sure it's using the expected model? If it's not that, I will spend some time digging into it tomorrow. |
No problem at all - I can confirm that I'm using the expected model with my openai API (and I just tried every other model as well to no avail). It really does seem like the {{}} might be what's causing the problem, although I also struggle to see how. Take all the time you need - this is a great product and I'm really looking forward to exploring everything I could do with placeholders. Thanks again! |
Still no luck reproducing this. When you get a chance, can you try importing the following command (using "Import PromptLab Commands"), running it, and using the action menu to copy the full prompt sent to the model? I'm wondering if the placeholders are getting replaced or if it's getting hung up before that.
|
That error makes sense (it's a bug I've fixed in the upcoming version). Unfortunately, I'm at a loss for why it gets stuck loading in this case. If you replace the prompt in that command with the fully substituted text, i.e.:
Does it work then? Also, just to make sure we're covering all bases, can you copy the model JSON using the action menu and share that? |
Replacing it with actual text somehow makes it work (wish I could explain why lol) Here's the model JSON for reference |
Experiencing the same issue as of today, April 30th 2024. Any fixes planned? |
Hi, PromptLab has been working fairly well for me when used without placeholders (anything with {{}}) However as soon as I include terms like {{selectedText}} the prompts will show "loading response" indefinitely. I'm using my personal (not Raycast( openAI endpoint - is there any way to diagnose what exactly the issue is?
The text was updated successfully, but these errors were encountered: