mirror of
https://github.com/zhengkai/orca.git
synced 2026-02-17 12:32:27 +08:00
up
This commit is contained in:
11
misc/test/chat-lamia.sh
Executable file
11
misc/test/chat-lamia.sh
Executable file
@@ -0,0 +1,11 @@
|
||||
#!/bin/bash -ex
|
||||
|
||||
API_HOST="http://10.0.84.49: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!"}]
|
||||
}'
|
||||
11
misc/test/chat.sh
Executable file
11
misc/test/chat.sh
Executable file
@@ -0,0 +1,11 @@
|
||||
#!/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!"}]
|
||||
}'
|
||||
@@ -1,7 +1,7 @@
|
||||
#!/bin/bash -ex
|
||||
|
||||
API_HOST="http://10.0.84.49:22035"
|
||||
# API_HOST="http://localhost:22035"
|
||||
# API_HOST="http://10.0.84.49:22035"
|
||||
API_HOST="http://localhost:22035"
|
||||
|
||||
curl "${API_HOST}/v1/engines/text-embedding-ada-002/embeddings" \
|
||||
-H "Content-Type: application/json" \
|
||||
|
||||
Reference in New Issue
Block a user