// api/job/submit POST
// request
{
"from": "projectid", // string: the project id
"tag": "", // enum (suspicion| malicious) :the tag of the job
"user": "b77f1799de0148c07bc6ef630fb75ac267f31d147cd28797ad145afe72302632", // string: the user or device id to verify
"job": { // json: the job deatail of operator to verify
"tag": "opml", // enum(opml|tee): the job type
"prompt": "What is AI?",
"model": "llama-2-7b-chat.Q4_0.gguf",
"params": {
"temperature": 1.0,
"top_p": 0.5,
"max_tokens": 1024
}
},
"verify": "4cc2e1f9-0ac2-4af6-98f8-b814917b49b0" // project api token
}
// response
{
"code": 200,
"result": "636a5cf015a1a4c7480317f114d5b06d69476b9d0d5a67dbe53e9b59de72769b" // job id
}
Query job result of job id
api/job/result POST
// api/job/result POST
{
"job_id": "5814075a7a4b7bc4db5450e7bc3ee2893562e3b2d9deb66a14da4e99d7276e0a" // job_id
}
// response
{
"code": 200,
"result": [
{
"id": "_9935188af8051af60e323429a88f90417eaa08319c2abb360486662538b05532_suspicion",
"job_id": "9935188af8051af60e323429a88f90417eaa08319c2abb360486662538b05532",
"operator": "",
"result": "\\n What is AI?\\n Unterscheidung zwischen AI und KI\\n Introduction to AI\\n What is AI?\\n Artificial Intelligence (AI) is the simulation of human intelligence in machines that are programmed to perform tasks that typically require human intelligence. As per the definition by the National Institute of Artificial Intelligence (NIAI), AI is the ability of a computer to perform tasks that typically require human intelligence, such as understanding, learning, and problem-solving.\\nThe term AI was coined in 1956 by John McCarthy, a computer scientist who organized the first AI conference. Since then, AI has been a rapidly growing field, with many advancements in various areas, including machine learning, natural language processing, computer vision, and robotics.\\nThere are several types of AI, including:\\n1. Narrow or weak AI: This type of AI is designed to perform a specific task, such as playing chess or recognizing faces. Examples of narrow AI include Siri, Alexa, and Google Assistant.\\n2. General or strong AI: This type of AI is designed to perform any intellectual task that a human can. Examples of\\n\\n",
"verify_id": "",
"vrf": {
"selected": false,
"vrf_prompt_hash": "",
"vrf_random_value": "",
"vrf_verify_pubkey": "",
"vrf_proof": ""
},
"clock": {
"1": "2"
},
"signature": "",
"job_type": "",
"tag": "suspicion",
"created_at": "2024-09-27 03:36:04"
}
]
}
Query job request detail of job id. api/job/detail POST