After seeing your explanation, I plan to give up making demands on you.
This approach of accessing AI usually faces the following problems.
1. Whether to give players the power to freely construct sentences
2. Players cross the moral limit through prompts, resulting in nsfw results.
3. Is typing a bit troublesome for video games, especially when players use game controllers and have to switch keyboards to type.
4. Multi-language localization,
5. AI only makes NPCs become better chat robots, and it can never give players 1 experience point
Of course, I also gave a solution.
Cancel typing input and change it to fill in the blanks by selecting words according to the sentence structure. As for vocabulary, it is limited to words related to the game world view. Players cannot enter keywords that the game protagonist does not know due to the game progress.