laudanum123 / fantasy_fabricator

Use GPT-3 for your RPG Sessions
MIT License
3 stars 1 forks source link

Fix duplicate "Extraction" of entities leading to duplicate link tags #20

Open laudanum123 opened 1 year ago

laudanum123 commented 1 year ago

If you click the "Extract'" button several times it will trigger the extraction again and again. It will add an additional copy of the highlighted entity to the adventure.

YazidKurdi commented 1 year ago

The current implementation, if a user re-extracts, existing NPC's will not duplicate due to this LOC:

https://github.com/laudanum123/fantasy_fabricator/blob/bdb35565a1a2709ea91a6a135a3614754b1129d4/backend/main/models.py#L91

However the request will still be sent to the backend, do you think the user should be limited to one extract per adventure?