htadashi / AI-Event-Scheduler

📅 AI Event Scheduler is a chrome extension that allows you to quickly and easily create Google calendar events by simply simply selecting a text and clicking a button.
MIT License
22 stars 8 forks source link

Doesn't reliably create gcal URL #5

Closed EdFage closed 3 months ago

EdFage commented 10 months ago

The project sometimes yields some text instead of a URL

For example: "Your google calendar URL is the following: [url]". This doesn't redirect

I've forked the repo and (I believe) fixed this issue by changing the prompt and prompt structure

htadashi commented 10 months ago

Hi @EdFage, thanks for reporting this issue. Unfortunately I am very time constrained at the moment, but in my vacations I plan to test some solutions (including the prompt that you proposed) to mitigate this problem.

htadashi commented 3 months ago

https://github.com/htadashi/GPT3-Event-Scheduler/commit/487706bcc4242edf43de8649a3def6739cd6fc13 updates the code to use function_call when calling completion API. Now the calendar link generation should be more reliable.