A simple incorporation of ChatGPT into foundry to assist in lookup rules, stats, etc.
(thanks to Significant-Gravitas for this part of the Readme.)
Obtain your OpenAI API key from: https://platform.openai.com/account/api-keys.
To use OpenAI API key for Auto-GPT, you NEED to have billing set up (AKA paid account).
You can set up paid account at https://platform.openai.com/account/billing/overview.
Simply preface your question with a ?
and ask. It will attempt to spit out D&D rules and information.
?Fireball
Fireball is a 3rd-level evocation spell that creates a burst of flame that spreads around corners. The spell has a range of 150 feet and affects all creatures within a 20-foot radius sphere centered on a point the caster chooses. Each creature in the area must make a Dexterity saving throw. On a failed save, a creature takes 8d6 fire damage, or half as much on a successful one. The spell ignites flammable objects in the area that aren't being worn or carried. The spell can be cast using a spell slot of 4th level or higher, increasing the damage by 1d6 for each level above 3rd.
- Improve the settings panel to hide the API key from prying eyes
- Include a game game system selection and update the internal prompt to reflect that.
- Custom game prompt as well
- style the responses so they look nice and reflect the appropriate stat blocks.
- Open to suggestions on other improvements?
Thanks very much to brunocalado#1650 on the foundry discord for a) convincing me to update and b) for suggestion code modifications.