ChatGPT/HuggingChat in my game?

Hello there !

So I want to make a chatbot in my game and i discover this chatgpt example “ChatGPT example for GDevelop by Digi-Device File”.

I have acces to HuggingChat and i follow the instructions in this Gdevelop “game” to replace the informations about the Model, the URL and i provide the Key.

Infortunaly it doesn’t work it show me a 0 when i send a message.

Here two Screenshots (i don’t show the key but i know it’s valid cause you can create and i have create a free key on HuggingChat).

I answered at itch.io, but this is a better place.

I think the problem might be that Meta doesn’t use the same structure for their API request.
This example was specifically made to work with OpenAI text assistant API, the structure of the request was made following their documentation.
Other AI have their own ways to interact with third party applications, some may not allow it.

Thank you for your response.
I have found an ai you can train locally instead but i don’t know how to connect it to Gdevelop5.
See my thread for more explanations.