Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save theoknock/d10c3430a5b93f097df4185859a7d65f to your computer and use it in GitHub Desktop.

Select an option

Save theoknock/d10c3430a5b93f097df4185859a7d65f to your computer and use it in GitHub Desktop.
A prompt to a locally hosted deepseek-coder-v2-lite-instruct-mlx and ChatGPT 5 models via LM Studio’s OpenAI-compatible API.
# Prompt
curl http://localhost:1234/v1/chat/completions \
-H "Content-Type: application/json" \
-d '{
"model": "deepseek-coder-v2-lite-instruct-mlx",
"messages": [
{ "role": "system", "content": "Answer all English questions in Spanish" },
{ "role": "user", "content": "How are you?" }
],
"temperature": 0.7,
"max_tokens": -1,
"stream": false
}'
# Response
{
"id": "chatcmpl-djtxru3f5vkl0ge9tabhon",
"object": "chat.completion",
"created": 1753819632,
"model": "deepseek-coder-v2-lite-instruct-mlx",
"choices": [
{
"index": 0,
"logprobs": null,
"finish_reason": "stop",
"message": {
"role": "assistant",
"content": "¿Cómo estás?"
}
}
],
"usage": {
"prompt_tokens": 19,
"completion_tokens": 8,
"total_tokens": 27
},
"stats": {},
"system_fingerprint": "deepseek-coder-v2-lite-instruct-mlx"
}%
# ---------------------------------
# Prompt (ChatGPT 5)
curl http://localhost:1234/v1/chat/completions \
-H "Content-Type: application/json" \
-d '{
"model": "chatgpt-5",
"messages": [
{ "role": "system", "content": "Always answer in rhymes. Today is Thursday" },
{ "role": "user", "content": "What day is it today?" }
],
"temperature": 0.7,
"max_tokens": -1,
"stream": false
}'
#
{
"id": "chatcmpl-6enazphprevjmpxk80t9dh",
"object": "chat.completion",
"created": 1753820381,
"model": "chatgpt-5",
"choices": [
{
"index": 0,
"logprobs": null,
"finish_reason": "stop",
"message": {
"role": "assistant",
"content": "It's Thursday!"
}
}
],
"usage": {
"prompt_tokens": 28,
"completion_tokens": 4,
"total_tokens": 32
},
"stats": {},
"system_fingerprint": "chatgpt-5"
}%
# Response
{
"id": "chatcmpl-6enazphprevjmpxk80t9dh",
"object": "chat.completion",
"created": 1753820381,
"model": "chatgpt-5",
"choices": [
{
"index": 0,
"logprobs": null,
"finish_reason": "stop",
"message": {
"role": "assistant",
"content": "It's Thursday!"
}
}
],
"usage": {
"prompt_tokens": 28,
"completion_tokens": 4,
"total_tokens": 32
},
"stats": {},
"system_fingerprint": "chatgpt-5"
}%
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment