Skip to content

Commit 6ed161a

Browse files
committed
up
Signed-off-by: Yan Chunwei <[email protected]>
1 parent c14ab90 commit 6ed161a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tensorrt_llm/llmapi/utils.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -517,6 +517,9 @@ def generate_api_docs_as_docstring(model: Type[BaseModel],
517517
arg_line = f"{indent} {field_name} ({type_str}): "
518518
if status := field_info.get("status", None):
519519
arg_line += f":tag:`{status}` "
520+
else:
521+
arg_line += f":tag:`stable` "
522+
520523
if field_description:
521524
arg_line += field_description.split('\n')[0] # First line with type
522525

@@ -571,9 +574,6 @@ def _process_pydantic_model(self, cls: Type[BaseModel]) -> None:
571574
status = field_info.json_schema_extra['status']
572575
self._amend_pydantic_field_description_with_tags(
573576
cls, [field_name], status)
574-
elif LABEL_STABLE_APIS:
575-
self._amend_pydantic_field_description_with_tags(
576-
cls, [field_name], "stable")
577577

578578
def _amend_pydantic_field_description_with_tags(self, cls: Type[BaseModel],
579579
field_names: list[str],

0 commit comments

Comments
 (0)