vizovitin / foundryvtt-ask-chatgpt

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

Allow custom URL for the used GPT API #15

Open DanielBoettner opened 5 months ago

DanielBoettner commented 5 months ago

This add a boolean and a string setting to the module.

The boolean would determine if a custom URL is to be used. If so the string from that custom URL is used instead of the OpenAI api.

This makes the module usable with e.g. LM Studio.

vizovitin commented 4 months ago

Thank you very much for your interest and pull request! I assume this is very much alike #14.

Some questions, if you don't mind:

  1. I assume the respective documentation for LM Studio is here.
  2. Which version of Foundry VTT did you test this on?
  3. Could you share your own specific use case for the feature? Not just "use with LM Studio", but along the lines of "I want to run ... kind of LLM locally and expose it in ... way to Foundry and use with the ... game system, because I want ... or I find that this is better for ...". I want to understand your motivation and possible additional points for improvement for the module.
DanielBoettner commented 4 months ago
  1. Correct. This isn't restriceted to LMStudio but basically makes the module compatible with every OpenAI compatible API. So LM Studio, https://github.com/oobabooga/text-generation-webui or SaaS.
  2. I did test in the current v12 (.318 I think) build.

I locally actually update some other modules (https://github.com/TheComamba/UnKenny, https://github.com/adougherty/ai-tools, https://github.com/Halftonex/npc-generator-gpt )

In short you'll,

For some time I contributed to the npc sheet 5e modules and I wrote the lootpopulator module (merged into the npc sheet at some point).

All of the above mentioned modules could benefit from the following features IMHO.

So my current goal is to prepare the lootsheet for v12. Fixing some bugs, preparing for the application framework and theming in dnd 3(foundry system).

Combining above mentioned modules and getting them ready for v12. Basically brings fully fledged NPC with a full background, items, relations, properties, ... that can trade, barter and chat with the players on the press of a button or the drop of a token.

And all this without beeing depended on someone else :D