使用curl在cmd中调用时,注意:json大括号内的每一个双引号前需要加上'\'
curl https://xxxopenai.openai.azure.com/openai/deployments/Your_deployid/chat/completions?api-version=2023-05-15 -H "Content-Type: application/json" -H "api-key:410xxxxxxe7106904" -d "{\"messages\": [{\"role\": \"system\", \"content\": \"hello.\"}]}"

使用postman或getman.cn调用,则不需要

在header中配置如下













![P1219 [USACO1.5] 八皇后 Checker Challenge](https://img-blog.csdnimg.cn/3b425915f3474cce816069b5b5a74f1f.png#pic_center)






