Skip to content

fix[Docs]: link anchor is incorrect #20309 #20315

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 2, 2025

Conversation

yyzxw
Copy link
Contributor

@yyzxw yyzxw commented Jul 1, 2025

Essential Elements of an Effective PR Description Checklist

  • The purpose of the PR, such as "Fix some issue (link existing issues this PR will resolve)".
  • The test plan, such as providing test command.
  • The test results, such as pasting the results comparison before and after, or e2e results
  • (Optional) The necessary documentation update, such as updating supported_models.md and examples for a new model.

Purpose

fix error link.

before:

iShot_2025-07-01_18.30.45.mp4

after:

iShot_2025-07-01_18.31.52.mp4

Test Plan

Test Result

(Optional) Documentation Update

@yyzxw yyzxw requested a review from hmellor as a code owner July 1, 2025 10:33
Copy link

github-actions bot commented Jul 1, 2025

👋 Hi! Thank you for contributing to the vLLM project.

💬 Join our developer Slack at https://slack.vllm.ai to discuss your PR in #pr-reviews, coordinate on features in #feat- channels, or join special interest groups in #sig- channels.

Just a reminder: PRs would not trigger full CI run by default. Instead, it would only run fastcheck CI which starts running only a small and essential subset of CI tests to quickly catch errors. You can run other CI tests on top of those by going to your fastcheck build on Buildkite UI (linked in the PR checks section) and unblock them. If you do not have permission to unblock, ping simon-mo or khluu to add you in our Buildkite org.

Once the PR is approved and ready to go, your PR reviewer(s) can run CI to test the changes comprehensively before merging.

To run CI, PR reviewers can either: Add ready label to the PR or enable auto-merge.

🚀

Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Summary of Changes

Hello @yyzxw, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request addresses an issue with incorrect internal documentation links. It systematically updates all references to the 'OpenAI-Compatible Server' page by changing the anchor ID from openai-compatible-server to serving-openai-compatible-server. This change ensures that users can correctly navigate to the relevant documentation sections, enhancing the overall user experience and documentation integrity.

Highlights

  • Documentation Link Correction: Updated all internal documentation links that referenced the openai-compatible-server anchor to the new serving-openai-compatible-server anchor. This ensures that all references correctly point to the OpenAI-Compatible Server documentation page, improving navigation and accuracy.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point in your pull request via creating an issue comment (i.e. comment on the pull request page) using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in issue comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist is currently in preview and may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments to provide feedback.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request effectively addresses a documentation issue by updating incorrect link anchors across multiple Markdown files. The changes consistently replace openai-compatible-server with serving-openai-compatible-server, ensuring that all references point to the correct location. This is a straightforward and necessary fix that improves the accuracy and navigability of the project's documentation.

@@ -6,7 +6,7 @@ title: Engine Arguments
Engine arguments control the behavior of the vLLM engine.

- For [offline inference][offline-inference], they are part of the arguments to [LLM][vllm.LLM] class.
- For [online serving][openai-compatible-server], they are part of the arguments to `vllm serve`.
- For [online serving][serving-openai-compatible-server], they are part of the arguments to `vllm serve`.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

This change correctly updates the internal link reference to the 'OpenAI-Compatible Server' document, ensuring that the link points to the new anchor ID. This is a good fix for a broken documentation link.

Suggested change
- For [online serving][serving-openai-compatible-server], they are part of the arguments to `vllm serve`.
- For [online serving][openai-compatible-server], they are part of the arguments to `vllm serve`.
+ For [online serving][serving-openai-compatible-server], they are part of the arguments to `vllm serve`.

@@ -74,7 +74,7 @@ python -m vllm.entrypoints.openai.api_server --model <model>

That code can be found in <gh-file:vllm/entrypoints/openai/api_server.py>.

More details on the API server can be found in the [OpenAI-Compatible Server][openai-compatible-server] document.
More details on the API server can be found in the [OpenAI-Compatible Server][serving-openai-compatible-server] document.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

This update fixes the broken link to the 'OpenAI-Compatible Server' document, aligning it with the new anchor ID. This improves the accuracy and navigability of the documentation.

Suggested change
More details on the API server can be found in the [OpenAI-Compatible Server][serving-openai-compatible-server] document.
- More details on the API server can be found in the [OpenAI-Compatible Server][openai-compatible-server] document.
+ More details on the API server can be found in the [OpenAI-Compatible Server][serving-openai-compatible-server] document.

@@ -21,7 +21,7 @@ The following parameters are supported, which must be added as extra parameters:
- `guided_grammar`: the output will follow the context free grammar.
- `structural_tag`: Follow a JSON schema within a set of specified tags within the generated text.

You can see the complete list of supported parameters on the [OpenAI-Compatible Server][openai-compatible-server] page.
You can see the complete list of supported parameters on the [OpenAI-Compatible Server][serving-openai-compatible-server] page.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

The link to the 'OpenAI-Compatible Server' page has been correctly updated to reflect the new anchor ID. This ensures users can access the relevant information about supported parameters.

Suggested change
You can see the complete list of supported parameters on the [OpenAI-Compatible Server][serving-openai-compatible-server] page.
- You can see the complete list of supported parameters on the [OpenAI-Compatible Server][openai-compatible-server] page.
+ You can see the complete list of supported parameters on the [OpenAI-Compatible Server][serving-openai-compatible-server] page.

@@ -110,7 +110,7 @@ docker run \
### Supported features

- [Offline inference][offline-inference]
- Online serving via [OpenAI-Compatible Server][openai-compatible-server]
- Online serving via [OpenAI-Compatible Server][serving-openai-compatible-server]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

This change correctly updates the link for 'Online serving via OpenAI-Compatible Server', ensuring consistency with the new anchor ID in the documentation.

Suggested change
- Online serving via [OpenAI-Compatible Server][serving-openai-compatible-server]
- Online serving via [OpenAI-Compatible Server][openai-compatible-server]
+ Online serving via [OpenAI-Compatible Server][serving-openai-compatible-server]

@@ -134,7 +134,7 @@ outputs = llm.chat(conversation, chat_template=custom_template)

## Online Serving

Our [OpenAI-Compatible Server][openai-compatible-server] provides endpoints that correspond to the offline APIs:
Our [OpenAI-Compatible Server][serving-openai-compatible-server] provides endpoints that correspond to the offline APIs:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

The link to the 'OpenAI-Compatible Server' in the 'Online Serving' section is now correctly updated, which is crucial for users looking for API endpoints.

Suggested change
Our [OpenAI-Compatible Server][serving-openai-compatible-server] provides endpoints that correspond to the offline APIs:
- Our [OpenAI-Compatible Server][openai-compatible-server] provides endpoints that correspond to the offline APIs:
+ Our [OpenAI-Compatible Server][serving-openai-compatible-server] provides endpoints that correspond to the offline APIs:

@@ -113,7 +113,7 @@ A code example can be found here: <gh-file:examples/offline_inference/basic/scor

## Online Serving

Our [OpenAI-Compatible Server][openai-compatible-server] provides endpoints that correspond to the offline APIs:
Our [OpenAI-Compatible Server][serving-openai-compatible-server] provides endpoints that correspond to the offline APIs:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

The link to the 'OpenAI-Compatible Server' for pooling models has been accurately updated, maintaining the integrity of the documentation.

Suggested change
Our [OpenAI-Compatible Server][serving-openai-compatible-server] provides endpoints that correspond to the offline APIs:
- Our [OpenAI-Compatible Server][openai-compatible-server] provides endpoints that correspond to the offline APIs:
+ Our [OpenAI-Compatible Server][serving-openai-compatible-server] provides endpoints that correspond to the offline APIs:

@@ -34,7 +34,7 @@ llm.apply_model(lambda model: print(type(model)))
If it is `TransformersForCausalLM` then it means it's based on Transformers!

!!! tip
You can force the use of `TransformersForCausalLM` by setting `model_impl="transformers"` for [offline-inference][offline-inference] or `--model-impl transformers` for the [openai-compatible-server][openai-compatible-server].
You can force the use of `TransformersForCausalLM` by setting `model_impl="transformers"` for [offline-inference][offline-inference] or `--model-impl transformers` for the [serving-openai-compatible-server][openai-compatible-server].
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

This update correctly points to the 'OpenAI-Compatible Server' documentation, ensuring that the tip for forcing TransformersForCausalLM is accurate.

Suggested change
You can force the use of `TransformersForCausalLM` by setting `model_impl="transformers"` for [offline-inference][offline-inference] or `--model-impl transformers` for the [serving-openai-compatible-server][openai-compatible-server].
- You can force the use of `TransformersForCausalLM` by setting `model_impl="transformers"` for [offline-inference][offline-inference] or `--model-impl transformers` for the [openai-compatible-server][openai-compatible-server].
+ You can force the use of `TransformersForCausalLM` by setting `model_impl="transformers"` for [offline-inference][offline-inference] or `--model-impl transformers` for the [serving-openai-compatible-server][openai-compatible-server].

Comment on lines +56 to +57
- on the Hugging Face Model Hub, simply set `trust_remote_code=True` for [offline-inference][offline-inference] or `--trust-remote-code` for the [openai-compatible-server][serving-openai-compatible-server].
- in a local directory, simply pass directory path to `model=<MODEL_DIR>` for [offline-inference][offline-inference] or `vllm serve <MODEL_DIR>` for the [openai-compatible-server][serving-openai-compatible-server].
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

These two link updates ensure that the instructions for using models from Hugging Face Model Hub or local directories correctly reference the 'OpenAI-Compatible Server' documentation.

Suggested change
- on the Hugging Face Model Hub, simply set `trust_remote_code=True` for [offline-inference][offline-inference] or `--trust-remote-code` for the [openai-compatible-server][serving-openai-compatible-server].
- in a local directory, simply pass directory path to `model=<MODEL_DIR>` for [offline-inference][offline-inference] or `vllm serve <MODEL_DIR>` for the [openai-compatible-server][serving-openai-compatible-server].
- on the Hugging Face Model Hub, simply set `trust_remote_code=True` for [offline-inference][offline-inference] or `--trust-remote-code` for the [openai-compatible-server][openai-compatible-server].
- in a local directory, simply pass directory path to `model=<MODEL_DIR>` for [offline-inference][offline-inference] or `vllm serve <MODEL_DIR>` for the [openai-compatible-server][openai-compatible-server].
+ on the Hugging Face Model Hub, simply set `trust_remote_code=True` for [offline-inference][offline-inference] or `--trust-remote-code` for the [openai-compatible-server][serving-openai-compatible-server].
+ in a local directory, simply pass directory path to `model=<MODEL_DIR>` for [offline-inference][offline-inference] or `vllm serve <MODEL_DIR>` for the [openai-compatible-server][serving-openai-compatible-server].

@@ -1,7 +1,7 @@
---
title: OpenAI-Compatible Server
---
[](){ #openai-compatible-server }
[](){ #serving-openai-compatible-server }
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

This is the core change that renames the anchor ID for the 'OpenAI-Compatible Server' document. All other changes in this pull request are dependent on this one. This ensures that the document can be correctly linked to using the new, more descriptive anchor.

Suggested change
[](){ #serving-openai-compatible-server }
[](){ #openai-compatible-server }
+[](){ #serving-openai-compatible-server }

@yyzxw yyzxw force-pushed the fix/link-error branch from 1e52b4e to a4aee08 Compare July 2, 2025 01:33
@yyzxw yyzxw requested a review from reidliu41 July 2, 2025 01:34
@reidliu41
Copy link
Contributor

cc @DarkLight1337

@DarkLight1337 DarkLight1337 enabled auto-merge (squash) July 2, 2025 01:40
@github-actions github-actions bot added the ready ONLY add when PR is ready to merge/full CI is needed label Jul 2, 2025
@DarkLight1337 DarkLight1337 merged commit be0cfb2 into vllm-project:main Jul 2, 2025
51 of 53 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation ready ONLY add when PR is ready to merge/full CI is needed structured-output
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants