mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-10-05 20:27:35 +00:00
chore(api): make version prefix optional
This commit is contained in:
parent
5c873d53db
commit
f991f9ff1c
2 changed files with 6 additions and 1 deletions
|
@ -23,6 +23,7 @@ class WebMethod:
|
|||
descriptive_name: str | None = None
|
||||
experimental: bool | None = False
|
||||
required_scope: str | None = None
|
||||
add_version: bool = True
|
||||
|
||||
|
||||
T = TypeVar("T", bound=Callable[..., Any])
|
||||
|
@ -38,6 +39,7 @@ def webmethod(
|
|||
descriptive_name: str | None = None,
|
||||
experimental: bool | None = False,
|
||||
required_scope: str | None = None,
|
||||
add_version: bool = True,
|
||||
) -> Callable[[T], T]:
|
||||
"""
|
||||
Decorator that supplies additional metadata to an endpoint operation function.
|
||||
|
@ -61,6 +63,7 @@ def webmethod(
|
|||
descriptive_name=descriptive_name,
|
||||
experimental=experimental,
|
||||
required_scope=required_scope,
|
||||
add_version=add_version,
|
||||
)
|
||||
return func
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue