This commit is contained in:
Zheng Kai
2023-08-09 18:47:52 +08:00
parent 71ec1811e1
commit 866b2f569c
4 changed files with 23 additions and 7 deletions

View File

@@ -4,7 +4,7 @@ BASE="${OPENAI_API_BASE:-https://api.openai.com/v1}"
curl -v "${BASE}/chat/completions" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${OPENAI_API_KEY} no-cache" \
-H "Authorization: Bearer ${OPENAI_API_KEY}" \
-d '{
"model": "gpt-3.5-turbo",
"messages": [{"role": "user", "content": "Hello!"}]