KellanM / OpenAI-Api-Unreal

Integration for the OpenAI Api in Unreal Engine
MIT License
649 stars 143 forks source link

How I can customize the content of the role to give him a background setting? #33

Closed Sissidark closed 1 year ago

Sissidark commented 1 year ago

to give your NPC background information, manually add one element to your ChatLog array of type "system" and set the message to whatever you want the NPC to do. (i.e. you are a friendly NPC tasked with helping the player learn about x).

I'm sorry for this new issue,I don't know if you can still see it in the closed issue, so I open this new issue.

I tried to add it manually, but the AI ​​answer seems to be the default setting? Where did I go wrong?

image

image

Originally posted by @Sissidark in https://github.com/KellanM/OpenAI-Api-Unreal/issues/31#issuecomment-1510025439

Sissidark commented 1 year ago

Did OpenAI officially prohibit this modification method?

KellanM commented 1 year ago

Very strange. I would try using the SYSTEM Chatlog as the first element in the array and see if that works.