Prerequisites:
Variables related to the Ivanti session cookie and the API token from the LLMs Portal (OWUI), obtained in the API interaction guide
DSID=$(cat ~/.ivanti_dsid)
TOKEN=YOUR_TOKEN_HERE
Sends a user message to the specified model and requests a response generated by the API.
curl -X POST "https://extranet.scayle.es:11010/api/chat/completions" \
-H "Content-Type: application/json" \
-H "Cookie: DSID=${DSID}; token=${TOKEN}" \
-d '{
"model": "MODEL_ID",
"messages": [
{
"role": "user",
"content": "Hello, how are you?"
}
]
}'