chat_completion
Send multi-turn conversations to NVIDIA NIM language models to receive completions. Supports Llama, Mistral, Gemma, Qwen, and other open-source LLMs.
Instructions
Send a multi-turn conversation to a NVIDIA NIM language model and receive a completion. Supports all major open-source LLMs including Llama 3.1, Mistral, Gemma, Qwen, and more.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"messages": "<messages>"
},
"name": "chat_completion"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| seed | No | ||
| stop | No | ||
| model | No | NIM model ID (optional, uses default if not set) | |
| top_p | No | ||
| messages | Yes | ||
| max_tokens | No | ||
| temperature | No | ||
| system_prompt | No | System prompt to prepend |