Hi Jose, would you please update the plugin and try again? I reproduced this error by running the action in an empty draft. Now it will show an alert telling you to enter a prompt.
But if your error is not due to an empty prompt, please send me the text causing the issue.
Also, two things to notice:
- I’ve created a new template tag for the API called
api-base-url
. It serves as the default base URL for the API, which is set tohttps://api.openai.com/v1/
. However, it can be altered to another URL if necessary. Please note this change if you intend to use a custom API URL. - I’ve created another action called System Message Template, it simply creates a new draft with
<!-- block system -->
block so that you don’t need to copy-paste it everytime.