-
Notifications
You must be signed in to change notification settings - Fork 13k
Closed
Labels
enhancementNew feature or requestNew feature or requestgood first issueGood for newcomersGood for newcomersserver/api
Description
According to the OpenAI API, the "content"
field of user messages can be both string
and array
: https://platform.openai.com/docs/api-reference/chat/create
So we should support requests such as:
{
"role": "user",
"content": [ { "type": "text", "text": "tell me a joke" } ]
}
and
{
"role": "user",
"content": [
{ "type": "text", "text": "msg part 0" },
{ "type": "text", "text": "msg part 1" },
...
{ "type": "text", "text": "msg part N" }
]
}
astoilkov, ziozzang and m18coppola
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requestgood first issueGood for newcomersGood for newcomersserver/api