This commit is contained in:
Zheng Kai
2023-06-09 11:09:14 +08:00
parent 210c23b633
commit 51e0b5807a
8 changed files with 65 additions and 6 deletions

11
misc/test/chat-lamia.sh Executable file
View 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
View 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!"}]
}'

View File

@@ -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" \