Add /v1/internal/model-info endpoint
This commit is contained in:
parent
6e2e0317af
commit
f6ca9cfcdc
3 changed files with 19 additions and 0 deletions
|
@ -121,6 +121,11 @@ class ChatCompletionResponse(BaseModel):
|
|||
usage: dict
|
||||
|
||||
|
||||
class ModelInfoResponse(BaseModel):
|
||||
model_name: str
|
||||
lora_names: List[str]
|
||||
|
||||
|
||||
def to_json(obj):
|
||||
return json.dumps(obj.__dict__, indent=4)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue