mirror of
https://git.datalinker.icu/vllm-project/vllm.git
synced 2025-12-14 05:35:01 +08:00
[Doc] uses absolute links for structured outputs (#19582)
Signed-off-by: Aaron Pham <contact@aarnphm.xyz>
This commit is contained in:
parent
c68698b326
commit
7b3c9ff91d
@ -149,7 +149,7 @@ completion = client.chat.completions.create(
|
|||||||
print(completion.choices[0].message.content)
|
print(completion.choices[0].message.content)
|
||||||
```
|
```
|
||||||
|
|
||||||
See also: [full example](../../examples/online_serving/structured_outputs)
|
See also: [full example](https://docs.vllm.ai/en/latest/examples/online_serving/structured_outputs.html)
|
||||||
|
|
||||||
## Reasoning Outputs
|
## Reasoning Outputs
|
||||||
|
|
||||||
@ -190,7 +190,7 @@ print("reasoning_content: ", completion.choices[0].message.reasoning_content)
|
|||||||
print("content: ", completion.choices[0].message.content)
|
print("content: ", completion.choices[0].message.content)
|
||||||
```
|
```
|
||||||
|
|
||||||
See also: [full example](../../examples/online_serving/structured_outputs)
|
See also: [full example](https://docs.vllm.ai/en/latest/examples/online_serving/structured_outputs.html)
|
||||||
|
|
||||||
## Experimental Automatic Parsing (OpenAI API)
|
## Experimental Automatic Parsing (OpenAI API)
|
||||||
|
|
||||||
@ -311,4 +311,4 @@ outputs = llm.generate(
|
|||||||
print(outputs[0].outputs[0].text)
|
print(outputs[0].outputs[0].text)
|
||||||
```
|
```
|
||||||
|
|
||||||
See also: [full example](../../examples/online_serving/structured_outputs)
|
See also: [full example](https://docs.vllm.ai/en/latest/examples/online_serving/structured_outputs.html)
|
||||||
|
|||||||
@ -22,7 +22,7 @@ If you want to run this script standalone with `uv`, you can use the following:
|
|||||||
uvx --from git+https://github.com/vllm-project/vllm#subdirectory=examples/online_serving/structured_outputs structured-output
|
uvx --from git+https://github.com/vllm-project/vllm#subdirectory=examples/online_serving/structured_outputs structured-output
|
||||||
```
|
```
|
||||||
|
|
||||||
See [feature docs](../../../features/structured_outputs.md) for more information.
|
See [feature docs](https://docs.vllm.ai/en/latest/features/structured_outputs.html) for more information.
|
||||||
|
|
||||||
!!! tip
|
!!! tip
|
||||||
If vLLM is running remotely, then set `OPENAI_BASE_URL=<remote_url>` before running the script.
|
If vLLM is running remotely, then set `OPENAI_BASE_URL=<remote_url>` before running the script.
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user