vizovitin / foundryvtt-ask-chatgpt

Customizable ChatGPT integration for Foundry VTT
https://foundryvtt.com/packages/ask-chatgpt
MIT License
4 stars 6 forks source link

Expand ChatGPT context to optionally include any text in chat #7

Open ryankhart opened 1 year ago

ryankhart commented 1 year ago

Expand ChatGPT context to optionally include any text in the chat, not just /? or /w chats.

I'm not sure how difficult this might be, but it seems feasible enough.

My end goal is to be able to practice my player skills with a ChatGPT-run GM. I understand that it still could not be contextually aware of objects or other information outside of the chat, but that's easily solved enough by using either vanilla or modded functionality (from other Foundry modules) by maybe dragging and dropping the context I feel ChatGPT will need into the chat pane.

And if you accept pull requests, I might sometime want to try my hand at implementing this feature at some point or, at the very least, learn from the code you write.

vizovitin commented 1 year ago

I understand that it still could not be contextually aware of objects or other information outside of the chat

That's actually not true, it's possible to do so, but is quite cumbersome, and requires a lot of testing and development for this functionality to be remotely useful (at least in my opinion).

And if you accept pull requests

I certainly do, but I prefer the functionality to be provably useful for more than one user.

My end goal is to be able to practice my player skills with a ChatGPT-run GM.

Honestly, I experimented with this in various ways and can say that ChatGPT is quite bad as a GM. Or at least requires a very sophisticated support system around the ChatGPT itself. You won't get far just by constructing a perfect prompt. As a result, both projected developer (implementation) and user (API) costs are very high.

However, the current implementation is quite successful in supporting simple improvisation tasks, i.e. as an aid for GM.

If you have specific examples of conversations with ChatGPT where it successfully executes the role of a GM in a reasonably complex scenario, I would be very much interested in them. This could be a starting point for a respective implementation.