ChatCompletions
Deprecated
POST
/v1/chat/completions
OhMyGPT公开API文档/大语言模型
model
, messages
, and stream
parameters are meaningful; other parameters will be ignored.messages
, they will be automatically serialized into a single string to meet the requirements of the Claude interface. If you don't want it to be automatically serialized by the backend, you can only place one element in the message list.{
"model": "claude-2-web",
"messages": [
{
"role": "system",
"content": "You are Claude2, a large language model trained by the Anthropic company."
},
{
"role": "user",
"content": "Who are you?"
}
],
"stream": false
}
{
"model": "claude-2-web",
"messages": [
{
"role": "system",
"content": "You are Claude2, a large language model trained by the Anthropic company."
},
{
"role": "user",
"content": "Who are you?"
}
],
"stream": true
}
Request
Body Params application/json