Files
orca/misc/test/chat.sh
Zheng Kai 51e0b5807a up
2023-06-09 11:35:25 +08:00

12 lines
279 B
Bash
Executable File

#!/bin/bash -ex
API_HOST="http://localhost:22035"
curl "${API_HOST}/v1/chat/completions" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $OPENAI_API_KEY" \
-d '{
"model": "gpt-3.5-turbo",
"messages": [{"role": "user", "content": "Hello!"}]
}'