我们将智谱的格式改造为了OpenAI格式,可以兼容各类开源聊天软件。
{
"model": "slides_glm_agent",
"messages": [
{
"role": "user",
"content": "帮我调研并生成一个游戏主机市场发展调研"
}
]
}
curl --location --request POST 'https://api.302.ai/v1/chat/completions?async=false' \
--header 'Authorization: Bearer ' \
--header 'Content-Type: application/json' \
--data-raw '{
"model": "slides_glm_agent",
"messages": [
{
"role": "user",
"content": "帮我调研并生成一个游戏主机市场发展调研"
}
]
}'
{}