mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-10-04 12:07:34 +00:00
update script
This commit is contained in:
parent
84b8a53a34
commit
b7b8f5c2c3
3 changed files with 126 additions and 127 deletions
|
@ -473,8 +473,7 @@ class Generator:
|
|||
|
||||
if len(op.request_params) == 1 and "Request" in first[1].__name__:
|
||||
# TODO(ashwin): Undo the "Request" hack and this entire block eventually
|
||||
op_name = "".join(word.capitalize() for word in op.name.split("_"))
|
||||
request_name = f"{op_name}RequestWrapper"
|
||||
request_name = first[1].__name__ + "Wrapper"
|
||||
request_type = make_dataclass(request_name, op.request_params)
|
||||
else:
|
||||
op_name = "".join(word.capitalize() for word in op.name.split("_"))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue