mirror of
https://github.com/zhengkai/orca.git
synced 2026-02-17 22:42:26 +08:00
test
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
#!/bin/bash -ex
|
||||
|
||||
API_HOST="http://localhost:22035"
|
||||
BASE="${OPENAI_API_BASE:-https://api.openai.com/v1}"
|
||||
|
||||
curl "${API_HOST}/v1/chat/completions" \
|
||||
curl "${BASE}/chat/completions" \
|
||||
-H "Content-Type: application/json" \
|
||||
-H "Authorization: Bearer $OPENAI_API_KEY" \
|
||||
-H "Authorization: Bearer ${OPENAI_API_KEY}" \
|
||||
-d '{
|
||||
"model": "gpt-3.5-turbo",
|
||||
"messages": [{"role": "user", "content": "Hello!"}]
|
||||
|
||||
Reference in New Issue
Block a user