You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
community-requestIssue reported or requested by someone from the communitydocumentationImprovements to documentationusabilityimprovements to user experience
Description
Current tutorials only demonstrate using OpenAI's Responses API for model serving, and we lack documentation for configuring our other supported inference options.
Design
The vLLM model server should be a dedicated page in the Model Server section. This should cover how the middleware works to convert between chat and responses, how to use vllm endpoint and local vllm
Acceptance Criteria:
getting started guides should link to the vLLM docs for ease of user navigation
changed the title [-]Tutorials should showcase multiple model serving options (OpenAI, vLLM, NIM)[/-][+]Tutorials should showcase multiple model serving options (API, vLLM, NIM)[/+]on Oct 18, 2025
# Gym/env.yamlpolicy_base_url: https://api.openai.com/v1policy_api_key: {your OpenAI API key}policy_model_name: gpt-4.1-2025-04-14
Azure OpenAI
Method 1: Use Chat Completion API
Note
> Use this method if you Azure OpenAI deployment supports chat completion API
Test your chat completion API
# Chat Completion API importosfromopenaiimportAzureOpenAIfromdotenvimportload_dotenvload_dotenv()
api_version="2025-04-01-preview"azure_endpoint="https://prod.api.nvidia.com/llm/v1/azure"model="gpt-4.1"# Create a client instanceclient=AzureOpenAI(
api_key=os.getenv("LLM_GATEWAY_API"),
api_version=api_version,
azure_endpoint=azure_endpoint
)
stream=Falsetemperature=0.7top_p=0.7max_tokens=256# Call the chat completionresponse=client.chat.completions.create(
model=model, # This should match your deployment name in Azuremessages=[
{"role": "system", "content": "You are a helpful assistant."},
{"role": "user", "content": "Tell me a fun fact about space."}
],
# temperature=temperature,# top_p=top_p,# max_tokens=max_tokens,stream=stream
)
# Print the responseprint(response.choices[0].message.content)
Edit azure_openai_model.yaml
In the following file, make sure you add the variable ${policy_api_version}:
policy_model:
responses_api_models:
azure_openai_model:
entrypoint: app.pyopenai_base_url: ${policy_base_url}openai_api_key: ${policy_api_key}openai_model: ${policy_model_name}# for azure openai onlydefault_query:
api-version: ${policy_api_version} # add this num_concurrent_requests: 8
Set env
Tip
> Note that the policy_base_url in the chat completion API is a bit different from the url in the response API!
# /root/Gym/env.yamlpolicy_base_url: https://prod.api.nvidia.com/llm/v1/azurepolicy_api_key: {your Azure OpenAI API key}policy_model_name: gpt-4.1policy_api_version: 2025-04-01-preview
That's it!
Method 2: Use Response API
Note
> use this method if your Azure OpenAI deployment supports response API
Test your response API
First, test your Azure OpenAI server to make sure it works. For example, below is my test script:
importosfromopenaiimportOpenAI# load the environment variablesfromdotenvimportload_dotenvload_dotenv()
client=OpenAI(
api_key=os.getenv("LLM_GATEWAY_API"),
base_url="https://prod.api.nvidia.com/llm/v1/azure/v1",
default_query={"api-version": "preview"},
)
messages=[
{"role": "system", "content": "You are a helpful assistant."},
{"role": "user", "content": "Solve the equation 3x^2 + 2x - 1 = 0"}
]
response=client.responses.create(
model="gpt-4.1",# "o4-mini", # Replace with your model deployment name input=messages,
reasoning= {
"effort": "medium",
"summary": "auto"
},
text= {"verbosity": "high"},
max_output_tokens=1000,
)
Set env
In env.yaml, add this line:
# /root/Gym/env.yamlpolicy_base_url: https://prod.api.nvidia.com/llm/v1/azure/v1policy_api_key: {your Azure OpenAI API key}policy_model_name: gpt-4.1# for azure openai onlypolicy_api_version: preview
# /root/Gym/responses_api_models/openai_model/app.pyclassSimpleModelServer(SimpleResponsesAPIModel):
config: SimpleModelServerConfigdefmodel_post_init(self, context):
# =========MODIFY HERE ==========# construct a client_kwargs, extract base_url and api_keyclient_kwargs: Dict[str, Any] = {
"base_url": self.config.openai_base_url,
"api_key": self.config.openai_api_key,
}
# if `default_query` value is provided, get thatifself.config.default_query:
client_kwargs["default_query"] =self.config.default_query# dump it to NeMoGymAsyncOpenAIself._client=NeMoGymAsyncOpenAI(**client_kwargs)
returnsuper().model_post_init(context)
That's it!
vLLM
How it works
VLLMModel uses chat completion API
Tip
> The VLLMModel.response method is a wrapper of chat completion API. It does not use the actual response API of openAI models
In the code below, you can see that underneath the hood of vLLM.responses , it uses self.chat_completions method:
As seen in the block below, after retrieving the response from the LLM, we run the _converter.postprocess_chat_response function to reformat the output:
Dig furthur into how the post processing works, there are several parts:
Initialize the response_output list.
Step 1: Separate reasoning content from non-reasoning (normal output) content
Step 2: For reasoning content, we format it into NeMoGymResponseReasoningItem, and add it to response_output
Step 3: For non-reasoning content, we format into NeMoGymResponseOutputMessage and add it to the response_output
Step 4: Format tool calls into NeMoGymResponseFunctionToolCall, and add it to the response_output
Step 5: If returning return_token_id_information, add token ID info.
# responses_api_models/vllm_model/app.pydefpostprocess_chat_response(self, choice: NeMoGymChoice) ->List[NeMoGymResponseOutputItem]:
raw_message=choice.message.model_dump()
# initiate a response_output listresponse_output= []
content=raw_message.get("content") or""# 1. separate reasoning content from normal content. reasoning_matches, content=self._extract_reasoning_from_content(content)
# 2a. if there is any reasoning content, we create a NeMoGymResponseReasoningItem# with th `type="reasoning"`# and a field called `summary`# `summary` is a List[NeMoGymSummary]# where the first item (aka `summary[0].text`) contains the actuall reasoning text, # with the type `summary_text`ifreasoning_matches:
reasoning_item=NeMoGymResponseReasoningItem(
id=f"rs_{uuid4().hex}",
type="reasoning",
summary=[
NeMoGymSummary(text=reasoning_text, type="summary_text") forreasoning_textinreasoning_matches
],
status="completed",
)
# 2a. append reasoning_item to response_output listresponse_output.append(reasoning_item)
# 3a If there is normal text (non-reasoning response)ifcontent:
# Create a `NeMoGymResponseOutputMessage` item.# with the `type="message"` # It has a `content` filed, which is a List[NeMoGymResponseOutputText]# The first item (aka `contet[0].text`) contains the actual content of the LLM response# with a `type="output_text"`response_output.append(
NeMoGymResponseOutputMessage(
id=f"msg_{uuid4().hex}",
role=raw_message.get("role"),
content=[
NeMoGymResponseOutputText(
type="output_text",
text=content,
annotations=[],
)
],
status="completed",
type="message",
)
)
# 4. Add tool calls to response_output listtool_calls_raw=raw_message.get("tool_calls", []) or []
fortcintool_calls_raw:
assert"id"intc# for each tool call, create a object called `NeMoGymResponseFunctionToolCall`response_output.append(
NeMoGymResponseFunctionToolCall(
name=tc["function"]["name"],
arguments=tc["function"]["arguments"],
call_id=tc["id"],
type="function_call",
status="completed",
id=tc["id"],
)
)
# 5. if we should return token_id_informaiton, as in training, # we modify the last response output item. ifself.return_token_id_information:
last_response_output_item=response_output[-1]
train_cls=RESPONSES_TO_TRAIN[last_response_output_item.__class__]
response_output[-1] =train_cls(
**last_response_output_item.model_dump(),
prompt_token_ids=raw_message["prompt_token_ids"],
generation_token_ids=raw_message["generation_token_ids"],
generation_log_probs=raw_message["generation_log_probs"],
)
returnresponse_output
Once post-process is done, we reformat it into NeMoGymResponse object, and return it
return NeMoGymResponse(...)
See [[#7. Test vLLM + Agent]] for an example output response.
Extract reasoning content
Tip
> Gym relies on a message that is formatted as: <think>..</think>some content here .It will extract the reasoning items from <think>..</think>, and replace this part with an empty string, to separate reasoning content from the model's final response.
>
> This means that, for models that have atypical API, we need to normalize the message into <think>..</think>some content here, so that it can be processed by Gym.
In the postprocess_chat_response function, there is a step:
First, we see that it is basically a wrapper for self_parse_think_tags:
# responses_api_models/vllm_model/app.pydef_extract_reasoning_from_content(self, content: str) ->Tuple[List[str], str]:
# TODO: Currently only parses reasoning wrapped in <think>...</think> tags.# Maybe parameterize to support other model formats in the future.returnself._parse_think_tags(content)
We dig deeper into that:
# responses_api_models/vllm_model/app.pyclassVLLMConverter(BaseModel):
return_token_id_information: bool# =======================================================# Reasoning handling. This may change across models and model families# =======================================================THINK_TAG_PATTERN: ClassVar=re.compile(r"<think>(.*?)</think>", re.DOTALL)
def_parse_think_tags(cls, content: str) ->Tuple[List[str], str]:
# Extract reasoning content from between <think></think> tags.matches=cls.THINK_TAG_PATTERN.findall(content)
# Remove reasoning from main contentcleaned=cls.THINK_TAG_PATTERN.sub("", content)
returnmatches, cleaned
Now we can see that it computes 2 things:
matches: which is extract reasoning content from between <think>..</think> tags
cleaned: which substitute <think>...</think> with empty string, resulting in clean output without reasoning content.
format_reasoning
Tip
> 1. _format_reasoning handles the NeMoGymResponses → Chat Completions direction
> 2. _extract_reasoning_from_content handles the Chat Completions → NeMoGymResponses direction.
When NeMo Gym sends a request that contains reasoning items in the input, the _format_reasoning function converts them to the format that vLLM expects.
# responses_api_models/vllm_model/app.pyclassVLLMConverter(BaseModel):
def_format_reasoning(
self,
m: dict,
state: VLLMConverterResponsesToChatCompletionsState,
) ->None:
""" Collects text from 'reasoning' messages and appends it to a buffer. This is done to group together one (or multiple) reasoning message(s) into a single, cohesive block, later prepending it to a subsequent assistant message. See: https://gitlab-master.nvidia.com/bxyu/nemo-gym#reasoning-in-the-response-api """if"summary"inmandm["summary"]:
texts= [s["text"] forsinm["summary"]]
state.content_buffer+=self._wrap_reasoning_in_think_tags(texts)
So how does this work? Let's say NeMo Gym wants to send a conversation that includes previous reasoning steps:
# NeMo Gym Responses API input format
input_messages = [
{
"type": "reasoning",
"summary": [
{"text": "Let me think about this step by step", "type": "summary_text"},
{"text": "The user is asking about weather", "type": "summary_text"}
]
},
{
"type": "message",
"role": "assistant",
"content": "I'll check the weather for you"
},
{
"type": "message",
"role": "user",
"content": "What about tomorrow?"
}
]
Conversion Process:
_format_reasoning is called for reasoning items
It extracts the reasoning text and wraps it in <think> tags:
# Chat Completions format sent to vLLM
messages = [
{
"role": "assistant",
"content": "<think>Let me think about this step by step</think><think>The user is asking about weather</think>I'll check the weather for you"
},
{
"role": "user",
"content": "What about tomorrow?"
}
]
1. Install
Basic packages
First, install these packages:
uv pip install hf_transfer datasets loguru
vLLM
Method 1: install from latest stable branch:
uv pip install vllm==0.10.2 --torch-backend=auto
Method 2: use the main branch (recommended for latest feature)
HF_HOME: Tell vLLM where the model weights cache are
HOME: Set project-level home directory
VLLM_ATTENTION_BACKEND=TRITON_ATTN_VLLM_V1: add it only if running gpt-oss on A100 GPU. See [[NVIDIA/LLM/NVIDIA LLMs/NIM/gpt-oss-120b#A100|gpt-oss-120b]]
--tensor-parallel-size 1: Set according to number of GPUs
--enable-auto-tool-choice --tool-call-parser openai: this line needs to be set according to your model's requirement
w Do NOT use a reasoning parser argument to vLLM here. The Responses to Chat Completions middleware logic needs to parse to and from Responses Reasoning items and Chat Completion Message content. Do NOT use things like --reasoning-parser qwen3.
--port 10240: this is recommended by Gym's quick start guide
4. Test vLLM connection
Write a simple test file to test your vLLM connection. For example:
# ~/Gym/test_vllm.pyfromopenaiimportOpenAIfromloguruimportlogger# Clientclient=OpenAI(
base_url="http://localhost:10240/v1",
api_key="EMPTY"
)
# Reponse APIresponse=client.responses.create(
model="openai/gpt-oss-20b",
instructions="You are a helfpul assistant.",
input="What's the capital of the United States?"
)
logger.info("RESPONSE API")
logger.debug(response.output_text)
# Chat Completion APIresponse=client.chat.completions.create(
model="openai/gpt-oss-20b",
messages=[{"role": "user", "content": "What's the capital of the United States?"}]
)
logger.info("CHAT COMPLETION API")
logger.debug("content: "+response.choices[0].message.content)
# some model will return reasoning_content, even though you did not add `reasoning-parser` in the vllm command. try:
logger.info("Found `response.choices[0].message.reasoning_content`")
logger.debug("reasoning_content: "+response.choices[0].message.reasoning_content)
exceptExceptionase:
logger.debug("`response.choices[0].message.reasoning_content` not found")
Then run:
python test_vllm.py
5. Set env
In env.yaml, add this line:
# /root/Gym/env.yamlpolicy_base_url: "http://localhost:10240/v1"policy_api_key: "EMPTY"policy_model_name: openai/gpt-oss-20b # model name as in vLLM
This will point Gym to use the vLLM during training/inference.
6. Update app.py
Some models, like gpt-oss, will have a reasoning_content field regardless of whether you use --reasoning-parser in vLLM startup or not. This causes an error in app.py.
To address it, comment out the assertion block below, and add a block of code to detect reasoning_content and manually add it to the content portion. For more details on the mechanism , see [[#How it works]]
# responses_api_models/vllm_model/app.py# NOTE: comment this out for models like GPT-OSS that return reasoning_content# assert not choice_dict["message"].get("reasoning_content"), (# "Please do not use a reasoning parser in vLLM! There is one source of truth for handling data (including reasoning), which is NeMo Gym!"# )# Handle models like GPT-OSS that return reasoning_content# by moving it to content with think tagsmessage_dict=choice_dict["message"]
ifmessage_dict.get("reasoning_content"):
print("DEBUG: Found reasoning_content. Adding to content with think tags.")
# Move reasoning_content into content with think tags for consistent processingreasoning_content=message_dict["reasoning_content"]
regular_content=message_dict.get("content", "")
# Use the existing method to wrap reasoning in think tagswrapped_reasoning=self._converter._wrap_reasoning_in_think_tags([reasoning_content])
message_dict["content"] =f"{wrapped_reasoning}{regular_content}"# pop it to stay consistent with the original assertion that reasoning_content is not returnedmessage_dict.pop("reasoning_content")
# END of NOTE
7. Test vLLM + Agent
To quickly test your vLLM set up with the Gym environment, launch a simple_weather agent with vLLM:
[
{
"id": "rs_bec5e561862f4d1dacf4962a4b749085",
"summary": [
{
"text": "The user says: \"going out in sf tn\". Maybe they are talking about going out in \"SF, TN\" which might be a location. They likely ask for info about events, places, or directions. The user is quite concise. They might want suggestions on things to do or maybe commute. They might be in \"San Francisco, Tennessee\" or \"Sexton Field, Tennessee\"? Actually \"SF\" might stand for \"San Francisco\" but \"sf tn\" suggests \"San Francisco, Tennessee\"? There's a city named San Francisco in Tennessee. They might be asking about going out there: what there is to do, events, etc. We should ask clarifying. The user didn't phrase a question. We can respond with: \"Sure, what would you like to know about going out in San Francisco, TN? Are you looking for restaurants, events, or recommended spots?\" Let's ask.\n\nWe can't call get_weather but can mention weather. But unclear. We should ask for more context.",
"type": "summary_text"
}
],
"type": "reasoning",
"encrypted_content": null
},
{
"id": "msg_6854efc29fa3425c81d4460359baf9d5",
"content": [
{
"annotations": [],
"text": "Sure thing! Are you looking for places to eat, fun spots to check out, events happening soon, or maybe a quick weather update? Let me know what you\u2019re after and I\u2019ll tailor the info for SF, TN.",
"type": "output_text",
"logprobs": null
}
],
"role": "assistant",
"status": "completed",
"type": "message"
}
]
note that reasoning content gets added to the summary field, with 'type': 'reasoning'
I drafted up a guide for my customer (see above), covering OpenAI, Azure OpenAI, and vLLM. Feel free to refactor it.
There are a few things to be noted:
@bxyu-nvidia@cwing-nvidia The current Azure OpenAI uses chat completion under the hood. I recommend that we make this clear to users, as some Azure deployments (like our own) that support both chat completion and response APIs, but use different base URLs.
For example:
When using chat completion API, our base url is: https://prod.api.nvidia.com/llm/v1/azure
But when using response API, our base url is: https://prod.api.nvidia.com/llm/v1/azure/v1
Initially when I was testing it, I got errors because the base url is not correct. The error message does not tell me my base url is incorrect but basically says server is not reachable. It took a while to trace down to this issue.
changed the title [-]Tutorials should showcase multiple model serving options (API, vLLM, NIM)[/-][+]doc: model serving options (API, vLLM, NIM)[/+]on Dec 30, 2025
Move vLLM information out of FAQ and into a tutorial or other explicit material around responses_api_models
Within the tutorial, put a full E2E example that shows how to set the policy env variables with base urls and model names. What is in the FAQ is a start, but doesn't cover all steps within a tutorial (ie setting env variables for policy model).
community-requestIssue reported or requested by someone from the communitydocumentationImprovements to documentationusabilityimprovements to user experience
Activity
[-]Tutorials should showcase multiple model serving options (OpenAI, vLLM, NIM)[/-][+]Tutorials should showcase multiple model serving options (API, vLLM, NIM)[/+]cwing-nvidia commentedon Oct 27, 2025
External customer also requested guidance for vLLM usage #203
xinyu-dev commentedon Oct 29, 2025
OpenAI
1. Set OpenAI Config
See
2. Set Env
Azure OpenAI
Method 1: Use Chat Completion API
Note
> Use this method if you Azure OpenAI deployment supports chat completion API
Test your chat completion API
Edit azure_openai_model.yaml
In the following file, make sure you add the variable
${policy_api_version}:Set env
Tip
> Note that the
policy_base_urlin the chat completion API is a bit different from the url in the response API!That's it!
Method 2: Use Response API
Note
> use this method if your Azure OpenAI deployment supports response API
Test your response API
First, test your Azure OpenAI server to make sure it works. For example, below is my test script:
Set env
In
env.yaml, add this line:Edit openai_model.yaml
Add the
default_queryparam:Modify
Then, modify here:
That's it!
vLLM
How it works
VLLMModel uses chat completion API
Tip
> The
VLLMModel.responsemethod is a wrapper of chat completion API. It does not use the actual response API of openAI modelsIn the code below, you can see that underneath the hood of
vLLM.responses, it usesself.chat_completionsmethod:Look furthur into the
self.chat_completions, it invokes theclient.create_chat_completionmethod:Look furthur into that method, it basically invokes the chat completion API of the vLLM:
Post-processing
As seen in the block below, after retrieving the response from the LLM, we run the
_converter.postprocess_chat_responsefunction to reformat the output:Dig furthur into how the post processing works, there are several parts:
response_outputlist.NeMoGymResponseReasoningItem, and add it toresponse_outputNeMoGymResponseOutputMessageand add it to theresponse_outputNeMoGymResponseFunctionToolCall, and add it to theresponse_outputreturn_token_id_information, add token ID info.Once post-process is done, we reformat it into
NeMoGymResponseobject, and return itSee [[#7. Test vLLM + Agent]] for an example output response.
Extract reasoning content
Tip
> Gym relies on a message that is formatted as:
<think>..</think>some content here.It will extract the reasoning items from<think>..</think>, and replace this part with an empty string, to separate reasoning content from the model's final response.>
> This means that, for models that have atypical API, we need to normalize the message into
<think>..</think>some content here, so that it can be processed by Gym.In the
postprocess_chat_responsefunction, there is a step:We can dig furthur into how this works.
First, we see that it is basically a wrapper for
self_parse_think_tags:We dig deeper into that:
Now we can see that it computes 2 things:
matches: which is extract reasoning content from between<think>..</think>tagscleaned: which substitute<think>...</think>with empty string, resulting in clean output without reasoning content.format_reasoning
Tip
> 1.
_format_reasoninghandles the NeMoGymResponses → Chat Completions direction> 2.
_extract_reasoning_from_contenthandles the Chat Completions → NeMoGymResponses direction.When NeMo Gym sends a request that contains reasoning items in the input, the
_format_reasoning functionconverts them to the format that vLLM expects.So how does this work? Let's say NeMo Gym wants to send a conversation that includes previous reasoning steps:
Conversion Process:
_format_reasoningis called for reasoning items<think>tags:1. Install
Basic packages
First, install these packages:
vLLM
Method 1: install from latest stable branch:
Method 2: use the main branch (recommended for latest feature)
2. Download HF model
CD into NeMo Gym:
Set the cache folder and download model weights:
3. Launch vLLM
HF_HOME=.cache/ \ HOME=. \ VLLM_ATTENTION_BACKEND=TRITON_ATTN_VLLM_V1 \ vllm serve \ openai/gpt-oss-20b \ --dtype auto \ --tensor-parallel-size 1 \ --gpu-memory-utilization 0.9 \ --enable-auto-tool-choice --tool-call-parser openai \ --host 0.0.0.0 \ --port 10240Note:
HF_HOME: Tell vLLM where the model weights cache areHOME: Set project-level home directoryVLLM_ATTENTION_BACKEND=TRITON_ATTN_VLLM_V1: add it only if runninggpt-osson A100 GPU. See [[NVIDIA/LLM/NVIDIA LLMs/NIM/gpt-oss-120b#A100|gpt-oss-120b]]--tensor-parallel-size 1: Set according to number of GPUs--enable-auto-tool-choice --tool-call-parser openai: this line needs to be set according to your model's requirement--reasoning-parser qwen3.--port 10240: this is recommended by Gym's quick start guide4. Test vLLM connection
Write a simple test file to test your vLLM connection. For example:
Then run:
5. Set env
In
env.yaml, add this line:This will point Gym to use the vLLM during training/inference.
6. Update app.py
Some models, like
gpt-oss, will have areasoning_contentfield regardless of whether you use--reasoning-parserin vLLM startup or not. This causes an error inapp.py.To address it, comment out the assertion block below, and add a block of code to detect
reasoning_contentand manually add it to thecontentportion. For more details on the mechanism , see [[#How it works]]7. Test vLLM + Agent
To quickly test your vLLM set up with the Gym environment, launch a
simple_weatheragent with vLLM:Then run:
You should see the response from model:
[ { "id": "rs_bec5e561862f4d1dacf4962a4b749085", "summary": [ { "text": "The user says: \"going out in sf tn\". Maybe they are talking about going out in \"SF, TN\" which might be a location. They likely ask for info about events, places, or directions. The user is quite concise. They might want suggestions on things to do or maybe commute. They might be in \"San Francisco, Tennessee\" or \"Sexton Field, Tennessee\"? Actually \"SF\" might stand for \"San Francisco\" but \"sf tn\" suggests \"San Francisco, Tennessee\"? There's a city named San Francisco in Tennessee. They might be asking about going out there: what there is to do, events, etc. We should ask clarifying. The user didn't phrase a question. We can respond with: \"Sure, what would you like to know about going out in San Francisco, TN? Are you looking for restaurants, events, or recommended spots?\" Let's ask.\n\nWe can't call get_weather but can mention weather. But unclear. We should ask for more context.", "type": "summary_text" } ], "type": "reasoning", "encrypted_content": null }, { "id": "msg_6854efc29fa3425c81d4460359baf9d5", "content": [ { "annotations": [], "text": "Sure thing! Are you looking for places to eat, fun spots to check out, events happening soon, or maybe a quick weather update? Let me know what you\u2019re after and I\u2019ll tailor the info for SF, TN.", "type": "output_text", "logprobs": null } ], "role": "assistant", "status": "completed", "type": "message" } ]note that reasoning content gets added to the
summaryfield, with'type': 'reasoning'xinyu-dev commentedon Oct 29, 2025
I drafted up a guide for my customer (see above), covering OpenAI, Azure OpenAI, and vLLM. Feel free to refactor it.
There are a few things to be noted:
For example:
When using chat completion API, our base url is:
https://prod.api.nvidia.com/llm/v1/azureBut when using response API, our base url is:
https://prod.api.nvidia.com/llm/v1/azure/v1Initially when I was testing it, I got errors because the base url is not correct. The error message does not tell me my base url is incorrect but basically says server is not reachable. It took a while to trace down to this issue.
[-]Tutorials should showcase multiple model serving options (API, vLLM, NIM)[/-][+]doc: model serving options (API, vLLM, NIM)[/+][-]doc: model serving options (API, vLLM, NIM)[/-][+]doc: model serving options (vLLM + OpenAI)[/+]hwolff99 commentedon Dec 30, 2025
Some feedback on documentation:
responses_api_modelscwing-nvidia commentedon Jan 28, 2026
related to #282
[-]doc: model serving options (vLLM + OpenAI)[/-][+]doc: model serving options (vLLM)[/+]cwing-nvidia commentedon Feb 9, 2026
going to downscope this ticket to just be about vLLM model server, will create separate issues for the other model server docs pages