mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-08-10 04:08:31 +00:00
fix
This commit is contained in:
parent
1e975e88ec
commit
0afa62884a
3 changed files with 6 additions and 3 deletions
2
docs/_static/llama-stack-spec.html
vendored
2
docs/_static/llama-stack-spec.html
vendored
|
@ -765,7 +765,7 @@
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"/v1/models/{model_id:path}": {
|
"/v1/models/{model_id}": {
|
||||||
"get": {
|
"get": {
|
||||||
"responses": {
|
"responses": {
|
||||||
"200": {
|
"200": {
|
||||||
|
|
2
docs/_static/llama-stack-spec.yaml
vendored
2
docs/_static/llama-stack-spec.yaml
vendored
|
@ -460,7 +460,7 @@ paths:
|
||||||
required: true
|
required: true
|
||||||
schema:
|
schema:
|
||||||
type: string
|
type: string
|
||||||
/v1/models/{model_id:path}:
|
/v1/models/{model_id}:
|
||||||
get:
|
get:
|
||||||
responses:
|
responses:
|
||||||
'200':
|
'200':
|
||||||
|
|
|
@ -644,7 +644,9 @@ class Generator:
|
||||||
else:
|
else:
|
||||||
callbacks = None
|
callbacks = None
|
||||||
|
|
||||||
description = "\n".join(filter(None, [doc_string.short_description, doc_string.long_description]))
|
description = "\n".join(
|
||||||
|
filter(None, [doc_string.short_description, doc_string.long_description])
|
||||||
|
)
|
||||||
return Operation(
|
return Operation(
|
||||||
tags=[op.defining_class.__name__],
|
tags=[op.defining_class.__name__],
|
||||||
summary=None,
|
summary=None,
|
||||||
|
@ -681,6 +683,7 @@ class Generator:
|
||||||
raise NotImplementedError(f"unknown HTTP method: {op.http_method}")
|
raise NotImplementedError(f"unknown HTTP method: {op.http_method}")
|
||||||
|
|
||||||
route = op.get_route()
|
route = op.get_route()
|
||||||
|
route = route.replace(":path", "")
|
||||||
print(f"route: {route}")
|
print(f"route: {route}")
|
||||||
if route in paths:
|
if route in paths:
|
||||||
paths[route].update(pathItem)
|
paths[route].update(pathItem)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue