huggingface / unity-api

Apache License 2.0
316 stars 30 forks source link

[BUG] Conversation Task isn't working in my Script as well as in the demo Script file #28

Open ozmandias opened 3 months ago

ozmandias commented 3 months ago

I'm implementing Conversation Task for my Chatbot in Unity and I get delayed response after Timeout and achieved errors regarding to Parameters for API even though I set up the Parameters for API correctly. In Conversation demo scene, I encountered the same issue while the Voice Recognition and Image Generation is working properly. Tried changing different AI models for Conversation uploaded on Hugging Page, but still encountering the same issue.

Screen Shot 2024-07-04 at 5 32 19 PM
uiy0123 commented 2 months ago

As conversation is integrated into text generation, the format of the message that needs to be sent seems to have changed. We need to change the GetPayload function of ConversationTask. If you only add the text entered in "inputs" and send it, the text generation function will work, and it seems that a separate message form is needed to operate the conversation in chatbot format, but I haven't figured it out yet. If anyone finds out please add a comment

무제

gulnuravci commented 2 months ago

I would love some context on this as well!