Tip: The model documentation is exactly the same as the OpenAI chat documentation. https://doublegpt.io/v1/chat/completions
Request Provide your bearer token in the Authorization
header when making requests to protected resources. Example: Authorization: Bearer ********************
Body Params application/json
{
"model" : "claude-2" ,
"messages" : [
{
"role" : "system" ,
"content" : "You are a helpful assistant."
} ,
{
"role" : "user" ,
"content" : "Say test"
}
] ,
"stream" : false
}
Request samples curl --location --request POST 'https://api.maxapi.ai/v1/chat/completions' \
--header 'Content-Type: application/json' \
--data-raw '{
"model": "claude-2",
"messages": [
{
"role": "system",
"content": "You are a helpful assistant."
},
{
"role": "user",
"content": "Say test"
}
],
"stream": false
}'
Responses application/json Generate Code
{
"completion" : " I do not actually speak, I am an AI assistant created by Anthropic to be helpful, harmless, and honest." ,
"stop_reason" : "stop_sequence" ,
"model" : "claude-2.0" ,
"stop" : "\n\nHuman:" ,
"log_id" : "5f0e0b3b63866c8c307085b87e2540d8f991ed7a7532621e312c575e5a9f0d07"
}
Modified at 2024-04-01 15:24:30