mirror of
https://github.com/zhengkai/orca.git
synced 2026-02-16 00:42:26 +08:00
test
This commit is contained in:
12
misc/test/completion.sh
Executable file
12
misc/test/completion.sh
Executable file
@@ -0,0 +1,12 @@
|
||||
#!/bin/bash -ex
|
||||
|
||||
BASE="${OPENAI_API_BASE:-https://api.openai.com/v1}"
|
||||
curl "${BASE}/completions" \
|
||||
-H "Content-Type: application/json" \
|
||||
-H "Authorization: Bearer ${OPENAI_API_KEY}" \
|
||||
-d '{
|
||||
"model": "text-davinci-003",
|
||||
"prompt": "Say this is a test",
|
||||
"max_tokens": 7,
|
||||
"temperature": 0
|
||||
}'
|
||||
Reference in New Issue
Block a user