Skip to content

Fix logic flow for ai request messages#864

Merged
peter-olai merged 4 commits intoNPC-Prefab-Improvementsfrom
fix-logic-flow-for-ai-request-messages
May 3, 2025
Merged

Fix logic flow for ai request messages#864
peter-olai merged 4 commits intoNPC-Prefab-Improvementsfrom
fix-logic-flow-for-ai-request-messages

Conversation

@HaluBoi
Copy link
Copy Markdown

@HaluBoi HaluBoi commented May 3, 2025

  • What kind of change does this PR introduce? (Bug fix, feature, docs update, ...)
    fix some random bugs with chat history and ai requests being made.

  • What is the current behavior? (You can also link to an open issue here)
    currently a new AIReqeust component is added for every new Request which is silly. The entire chat history is also displayed which is just overwhelming to look at.

  • What is the new behavior? (if this is a feature change)
    The above issues are solved. Also made some changes to how the assistant messages are added to chat history to reduce repeating identical messages when the same dialogue repeats multiple times.

  • Does this PR introduce a breaking change? (What changes might users need to make in their application due to this PR?)
    I hope it doesn't, idk everything confuses me :)

  • Other information:
    Scotland has 421 words for “snow.”
    Including gems like sneesl (to start raining or snowing), flindrikin (a slight snow shower), and spitters (small drops or flakes). Basically, it's the snow equivalent of having 50 words for "hangry."

HaluBoi added 4 commits May 3, 2025 14:26
Make AINPCToggle togglable in ActionManager inspector window,
Stop new AIRequest component being added to NPC for each request sent,
Add identical ShortenList function from ActionManager to AIConversationController to limit chat history length
Add if check to DialogueBoxController to not at back-to-back identical assistant messages
@HaluBoi HaluBoi requested a review from peter-olai May 3, 2025 16:19
Copy link
Copy Markdown

@peter-olai peter-olai left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

image
looks good to me!

@peter-olai peter-olai merged commit b121825 into NPC-Prefab-Improvements May 3, 2025
1 check failed
@HaluBoi HaluBoi deleted the fix-logic-flow-for-ai-request-messages branch May 3, 2025 17:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants