add
This commit is contained in:
parent
3a5be9534c
commit
11608bb0a6
11
20251011.md
11
20251011.md
@ -4,8 +4,9 @@
|
|||||||
|
|
||||||
#### 分支:release/v0.11.0
|
#### 分支:release/v0.11.0
|
||||||
|
|
||||||
|
https://github.com/vllm-project/vllm/blob/releases/v0.11.0/vllm/v1/structured_output/request.py
|
||||||
|
|
||||||
```python
|
```python
|
||||||
# https://github.com/vllm-project/vllm/blob/releases/v0.11.0/vllm/v1/structured_output/request.py
|
|
||||||
def get_structured_output_key(sampling_params: SamplingParams) -> StructuredOutputKey:
|
def get_structured_output_key(sampling_params: SamplingParams) -> StructuredOutputKey:
|
||||||
params = sampling_params.structured_outputs
|
params = sampling_params.structured_outputs
|
||||||
assert params is not None, "params can't be None."
|
assert params is not None, "params can't be None."
|
||||||
@ -37,8 +38,9 @@ def get_structured_output_key(sampling_params: SamplingParams) -> StructuredOutp
|
|||||||
|
|
||||||
#### 分支:release/v0.10.2
|
#### 分支:release/v0.10.2
|
||||||
|
|
||||||
|
https://github.com/vllm-project/vllm/blob/releases/v0.10.2/vllm/v1/structured_output/request.py
|
||||||
|
|
||||||
```python
|
```python
|
||||||
# https://github.com/vllm-project/vllm/blob/releases/v0.10.2/vllm/v1/structured_output/request.py
|
|
||||||
def get_structured_output_key(
|
def get_structured_output_key(
|
||||||
sampling_params: SamplingParams) -> StructuredOutputKey:
|
sampling_params: SamplingParams) -> StructuredOutputKey:
|
||||||
# 参数用的是 guided_decoding
|
# 参数用的是 guided_decoding
|
||||||
@ -72,8 +74,9 @@ def get_structured_output_key(
|
|||||||
|
|
||||||
#### 分支:release/v0.11.0
|
#### 分支:release/v0.11.0
|
||||||
|
|
||||||
|
https://github.com/vllm-project/vllm/blob/releases/v0.11.0/vllm/sampling_params.py
|
||||||
|
|
||||||
```python
|
```python
|
||||||
# https://github.com/vllm-project/vllm/blob/releases/v0.11.0/vllm/sampling_params.py
|
|
||||||
class SamplingParams(
|
class SamplingParams(
|
||||||
msgspec.Struct,
|
msgspec.Struct,
|
||||||
omit_defaults=True, # type: ignore[call-arg]
|
omit_defaults=True, # type: ignore[call-arg]
|
||||||
@ -573,6 +576,8 @@ class SamplingParams(
|
|||||||
|
|
||||||
#### 分支:release/v0.10.2
|
#### 分支:release/v0.10.2
|
||||||
|
|
||||||
|
https://github.com/vllm-project/vllm/blob/releases/v0.10.2/vllm/sampling_params.py
|
||||||
|
|
||||||
```python
|
```python
|
||||||
# SPDX-License-Identifier: Apache-2.0
|
# SPDX-License-Identifier: Apache-2.0
|
||||||
# SPDX-FileCopyrightText: Copyright contributors to the vLLM project
|
# SPDX-FileCopyrightText: Copyright contributors to the vLLM project
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user