Files
mcphost-api/test.sh

26 lines
525 B
Bash
Executable File

#!/bin/bash
#clear
#curl -X POST \
# -H "Content-Type: plain/text" \
# -d "When is your knowledge cut off? /no_think" \
# http://localhost:8000
curl -X 'POST' \
'http://0.0.0.0:8000/v1/chat/completions' \
-H 'accept: application/json' \
-H 'Content-Type: application/json' \
-d '{
"model": "mcphost-model",
"messages": [
{
"role": "user",
"content": "can you give me your previous answer in JSON format? /no_think"
}
],
"temperature": 0.7,
"stream": false,
"max_tokens": 1024
}'