Golang Character AI implementation with simple rest API
This project establishes a Gin Gonic HTTP framework that functions as an endpoint for interacting with the Character-AI service. So we can send a message and receive a reply from the AI character.
This project use github.com/harmony-ai-solutions/CharacterAI-Golang to communicate with Character AI
Please modify the code yourself, this code just intended for testing purposes
Edit the token
and character
variable with your Character AI Token.
GET http://localhost:8080/ai?charid="<character_id>"
[
{
"status": "success",
"body": "Ushio Noa"
}
]
GET http://localhost:8080/message?charid="<character_id>"&body="<message>"
[
{
"status": "success",
"body": "Hi....."
}
]
This project uses the following dependencies listed below: