26 lines
531 B
Bash
Executable File
26 lines
531 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://10.8.0.10:33759/v1/chat/completions' \
|
|
-H 'accept: application/json' \
|
|
-H 'Content-Type: application/json' \
|
|
-d '{
|
|
"model": "mcphost-model",
|
|
"messages": [
|
|
{
|
|
"role": "user",
|
|
"content": "fetch hackernews headlines and provide me a summary of the top 10"
|
|
}
|
|
],
|
|
"temperature": 0.7,
|
|
"stream": false,
|
|
"max_tokens": 4096
|
|
}'
|