Luke100000 / minecraft-comes-alive

Replaces Minecraft's villagers with humans, who can be interacted with.
GNU General Public License v3.0
77 stars 58 forks source link

Enhance GPT AI #798

Closed WT000 closed 1 month ago

WT000 commented 11 months ago

Is your feature request related to a problem? Please describe. Related to the way ChatGPT is used by villagers, is it possible to use another GPT API or use a rule-bypassing prompt (e.g. DAN) to get around the issue of villagers calling themselves an AI model. This is because it's currently difficult to communicate with them without them breaking character, at least for myself and my friend.

image

Describe the solution you'd like As mentioned above, I wonder if another API could be used, especially if it's on an older version of ChatGPT that is not as restricted as the present API. Furthermore, the DAN prompt could be used before instructing the AI, which may also get around this issue?

Potential other solutions You could potentially use something like character.ai, as this does not seem to be as censored? But I'm not sure on how their API works.

Luke100000 commented 11 months ago

OpenAI (will) turn of the older, less censored models soon which I used in the past with much greater success. I had to switch early because some users violated the TOS.

DAN would be too expensive due to the token overhead, and also a potential reason to terminate access ^^

Character AI has no API.

I am currently considering alternatives as well, especially dedicated hardware but the price and quality of results are currently a bit of a problem. My current experiments evolve around a finetuned Mistral with mixed success.

juaps commented 9 months ago

i would like to extend the enhancement Proposal for GPT AI with MCA Reborn Mod:

with this Integrating personalized mob profiles and enhancing interaction capabilities:

Recording Personalities: Implement a feature where the mod records and associates personalities with individual mobs. This could involve creating a personalized profile for each mob that includes traits, preferences, and behaviors.

Contextual Understanding: Enable the AI to comprehend player input, allowing for more nuanced interactions. For instance, mobs should understand and respond appropriately when players ask them to perform specific in-game actions like attacking, marrying, jumping, changing professions, etc.

Actionable Conversations: Develop a system where verbal commands given to the mob translate into corresponding in-game actions. For example, instructing a mob to "attack" prompts it to engage in combat, or suggesting "marriage" initiates a process where the mob seeks a partner.

Mission Suggestions: Introduce a dialogue system that allows players to engage mobs in conversations where they can suggest or receive mission ideas. Mobs could offer quests, accompany players on missions, or provide assistance based on the context of the conversation.

Comprehensive Interaction: Enable mobs to respond dynamically to player-initiated discussions, fostering a more immersive and engaging gameplay experience. This could involve recognizing emotions, preferences, and contextual cues to enhance the overall interaction.

By implementing these features, the GPT AI with the MCA Reborn Mod can offer a more sophisticated and personalized interaction with mobs, enriching the gameplay and expanding the possibilities for engaging with the virtual world.

WT000 commented 8 months ago

OpenAI (will) turn of the older, less censored models soon which I used in the past with much greater success. I had to switch early because some users violated the TOS.

DAN would be too expensive due to the token overhead, and also a potential reason to terminate access ^^

Character AI has no API.

I am currently considering alternatives as well, especially dedicated hardware but the price and quality of results are currently a bit of a problem. My current experiments evolve around a finetuned Mistral with mixed success.

I've had a play with a few of OpenAI's models with your code (thanks for including your Python server code) and the "davinci-002" model seems to be able to hold some proper conversations! Here's a few examples: image

image

I haven't seen it break character (yet, maybe I've been lucky), have you tried this model? If you have, how were your results?

Luke100000 commented 8 months ago

OpenAI (will) turn of the older, less censored models soon which I used in the past with much greater success. I had to switch early because some users violated the TOS. DAN would be too expensive due to the token overhead, and also a potential reason to terminate access ^^ Character AI has no API. I am currently considering alternatives as well, especially dedicated hardware but the price and quality of results are currently a bit of a problem. My current experiments evolve around a finetuned Mistral with mixed success.

I've had a play with a few of OpenAI's models with your code (thanks for including your Python server code) and the "davinci-002" model seems to be able to hold some proper conversations! Here's a few examples: image

image

I haven't seen it break character (yet, maybe I've been lucky), have you tried this model? If you have, how were your results?

Interesting! Originally the davinci models were way to expensive, but davinci-002 today would work. It would be roughly twice as expensive than turbo. Its also labeled as the replacement model for curie, which I used previously with better results than 3.5 turbo. Will try.

In addition I am currently experimenting with Mistral (both 7B and the MoE model), I expect better results than turbo there as well.

WT000 commented 8 months ago

OpenAI (will) turn of the older, less censored models soon which I used in the past with much greater success. I had to switch early because some users violated the TOS. DAN would be too expensive due to the token overhead, and also a potential reason to terminate access ^^ Character AI has no API. I am currently considering alternatives as well, especially dedicated hardware but the price and quality of results are currently a bit of a problem. My current experiments evolve around a finetuned Mistral with mixed success.

I've had a play with a few of OpenAI's models with your code (thanks for including your Python server code) and the "davinci-002" model seems to be able to hold some proper conversations! Here's a few examples: image image I haven't seen it break character (yet, maybe I've been lucky), have you tried this model? If you have, how were your results?

Interesting! Originally the davinci models were way to expensive, but davinci-002 today would work. It would be roughly twice as expensive than turbo. Its also labeled as the replacement model for curie, which I used previously with better results than 3.5 turbo. Will try.

In addition I am currently experimenting with Mistral (both 7B and the MoE model), I expect better results than turbo there as well.

Ah I actually tried 7B (v0.2) recently too, I Personally I used Mistral's own API (particularly using mistral-tiny) and got more fantasy-esc responses, here's a few examples I got from it: image

image

The responses can sometimes be a bit mixed, but with some prompt tweaking I believe it could also work fairly well (especially because it's not censored and regulated like OpenAI from what I can tell, which should hopefully prevent any of those angry TOS emails)

juaps commented 8 months ago

Hey, question, AI is not longer avaiable? i cant manage to configurate in the updated mod

Luke100000 commented 8 months ago

No, works fine for me, no changes made at all yet. Please share versions

Jonah-Thomas commented 7 months ago

I am using version 7.4.11 on 1.18.2 and the AI dont speak to me. if i was to speak i would need to use /say right? After I enable them?

Luke100000 commented 7 months ago

I am using version 7.4.11 on 1.18.2 and the AI dont speak to me. if i was to speak i would need to use /say right? After I enable them?

No, just mention their name directly in the chat. Its not a command. Check out https://github.com/Luke100000/minecraft-comes-alive/wiki/GPT3-based-conversations for more details.

Luke100000 commented 1 month ago

Llama and mistral are available, custom system prompts since a while now, long-term memory in testing phase, and per-villager personality system prompts in progress.