Welcome to the MGP-Core API Service introduction. Here, you’ll find information about our available API endpoints for connecting with the MiniMax-m2 AI language model and more provided by Ollama. This documentation is intended for developers who are familiar with working with APIs.
If you are wanting to get an API Key, you need to make a request by filling out the form to get an API Key
Please note that the information below has comments that are NOT apart of the code and should be taken out when put in.
POST: https://api.mgp-core.com/api/v2/custom-chat
-H Authorization: Bearer (TOKEN)
-H Content-Type: application/json
-H X-Memory-Enabled: true/false (determines if you use memory or not)
Raw JSON:
{
"user_id": "{user_id}", -> You can put {user_id} to anything you please, but this is used to identify users for memory.
"messages": [
{
"role": "user",
"content": "{question}", -> Change this to your promt or question.
"ping": "<@{user_id}>" -> Same thing here, just ignore it or change it to whatever.
}
]
}
If you have any questions, email midnight@mgp-core.com