Skip to content

Instantly share code, notes, and snippets.

@kjam
Created March 30, 2026 14:28
Show Gist options
  • Select an option

  • Save kjam/9f39cd69f340832d322ea27e10fabb35 to your computer and use it in GitHub Desktop.

Select an option

Save kjam/9f39cd69f340832d322ea27e10fabb35 to your computer and use it in GitHub Desktop.
Test your local model is working
curl http://[YOUR_LOCAL_IP_AND_PORT]/v1/chat/completions \
-H "Content-Type: application/json" \
-H "Authorization: Bearer no-key" \
-d '{
"model": "MODEL_NAME_HERE",
"messages": [
{ "role": "system", "content": "You are a helpful assistant." },
{ "role": "user", "content": "Give me a quick llama.cpp checklist." }
],
"temperature": 0.7
}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment