{
"issue": "hello, what's your name?",
"systemContent": "you are a assistant",
"maxPromptToken": 8000,
"answerMaxTokens": 2048,
"historyMessages": [
{
"issue": "user",
"answer": "hello!"
},
{
"issue": "assistant",
"answer": "hello!"
}
],
"topP": 1.0,
"topK": 32,
"temperature": 0.4,
"safetySettings": [
{
"category": "HARM_CATEGORY_SEXUALLY_EXPLICIT",
"threshold": "BLOCK_LOW_AND_ABOVE"
},
{
"category": "HARM_CATEGORY_HATE_SPEECH",
"threshold": "BLOCK_LOW_AND_ABOVE"
},
{
"category": "HARM_CATEGORY_HARASSMENT",
"threshold": "BLOCK_LOW_AND_ABOVE"
},
{
"category": "HARM_CATEGORY_DANGEROUS_CONTENT",
"threshold": "BLOCK_LOW_AND_ABOVE"
}
]
}curl --location --request POST '/AIGCChatOpenServ/saas/gemini/text' \
--header 'X-Request-Req-Accesskeyid: accessKeyId' \
--header 'X-Request-Req-Accesskeysecret: accessKeySecret' \
--header 'Content-Type: application/json' \
--data-raw '{
"issue": "hello, what'\''s your name?",
"systemContent": "you are a assistant",
"maxPromptToken": 8000,
"answerMaxTokens": 2048,
"historyMessages": [
{
"issue": "user",
"answer": "hello!"
},
{
"issue": "assistant",
"answer": "hello!"
}
],
"topP": 1.0,
"topK": 32,
"temperature": 0.4,
"safetySettings": [
{
"category": "HARM_CATEGORY_SEXUALLY_EXPLICIT",
"threshold": "BLOCK_LOW_AND_ABOVE"
},
{
"category": "HARM_CATEGORY_HATE_SPEECH",
"threshold": "BLOCK_LOW_AND_ABOVE"
},
{
"category": "HARM_CATEGORY_HARASSMENT",
"threshold": "BLOCK_LOW_AND_ABOVE"
},
{
"category": "HARM_CATEGORY_DANGEROUS_CONTENT",
"threshold": "BLOCK_LOW_AND_ABOVE"
}
]
}'{}