seriouslysean / monster-hunter-now-events

A tool that auto-generates calendar events for Monster Hunter Now by scraping web news articles, processing them with AI, and creating a convenient calendar subscription.
https://seriouslysean.github.io/monster-hunter-now-events/
MIT License
9 stars 9 forks source link

[Feature]: Update GPT API calls to take advantage of JSON file support #25

Open seriouslysean opened 11 months ago

seriouslysean commented 11 months ago

Feature Description

https://github.com/seriouslysean/monster-hunter-now-events/issues/22#issuecomment-1758135005

@mdrokz brought up a great idea for the GPT API calls. Apparently JSON output is now officially supported. Currently I'm not taking advantage of that in the chat api script.

https://blog.simonfarshid.com/native-json-output-from-gpt-4

Instead of the current approach of making the prompt incredibly precise, it might be better to reduce the complexity of the prompt overall with regard to the JSON output rules, and instead rely on this official support.

Vyvy-vi commented 11 months ago

I'd like to work on this issue

seriouslysean commented 11 months ago

You got it, thanks for offering!

seriouslysean commented 11 months ago

@Vyvy-vi are you still interested in this issue?