mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-10-05 04:17:32 +00:00
68 lines
7.5 KiB
Text
68 lines
7.5 KiB
Text
---
|
|
id: list-all-models
|
|
title: "List all models."
|
|
description: "List all models."
|
|
sidebar_label: "List all models."
|
|
hide_title: true
|
|
hide_table_of_contents: true
|
|
api: eJztWE1v2zgQ/SuELm2BxEmDLbrNzbvt7gZI0CBND4s0CGhpbLGlSJWknBiG//u+ISVbcpxtCvQSIL5YH/M9741ILjNHvrbGk8+Ol9nR4SH/FeRzp+qgrMmOs7E4VT6c2YK0v2ilR9lellsTyARWkHWtVS5Z4eCrZ61l5vOSKslXYVET7NjJV8oDFGtna3JBJZ+FDH0p6ZxcQEgFqvyPtVWBENRUkevJ+uCUmUF2mMhno743JDYqYmqdCKXyAlWwjcvx0gitZSWFDzL/lq2ivzlU3E0nc6OKX+YrlCQ6BwNnj/Fx8l7Y6cAEbmQQ9tb4oSs2nWzdt0mmqbLjq6ziBuPel4p0gYs56m3dTTFhx2iSJy6/zy0r3kwbk8c49rIJmbyspPuG62Ctbv9uZs42depYVYfsOkLGAzBrXwVNZaOHT/oZXiK3dbk48D0h9a1cePEiKryIVY2XaznPyVYU5Baw1gCSRaHYvtTnAyhZQx+nqMRawzRaw9j6foKkSJr+I9RuEju3Xdfek4To3oM2ktX1ajvfsVmITXiiy2KDnVQmTpAvbrqebuqodbWziizJaEm1enl6eiZgkxA93JlZev4q23sQHsnwWoG7GVTQLBtHwyXrrVYPlXcqtac9TJvvjXJUsMUedYfAb4PodXGQ77bne/mOtxCBixrX7A2ZSiPGJ2uJGUYbISAm42kk/icm/gip/EwuMcpeYPcnJhuExd92TdgEc8wLH8St9IhlLrUquEOV1Gh+RcWvG7iYbKHpj1YFs7PYhWFY/1xenoskLXIkE6dISvBHo+mDcwxZFgZlhS+tC8I3FabEohtaFGVuS5WXQqWknZImRLSjS+l99BOJEqTSj/WcpNm1tga5ibKppNl3BDxNNImeziAc9qQwo6TJH5Hly491QscrMRafL07bZHIEPyHReMAqWHQW2jQnYM7x0Od+xs4JObFNiM59TTmokAub541zGKi0FdfPoLHtcNetdfF6AI1leqB43ZJATDG4Ywzj85ORuLDNrNQLtEdre+vFxV9/ire/H74dcdHoTlZ1QkaHL0B94+8PWYiLBPFNPI9Efsuco3e7mZNrBVaIEurMcZTcQhmTtDXMVgGEmZoT/ivbQIZrqyp6JtUzqZ4YqY7ebfxdAulnjPSWWb5PrX9tA06gQnSXExVcNiabDCS0qlQYiXOsZhBQAHrkTPLKFy/dqOXbm4e+VJ7cHM1HOZlK8eOJ3jSG7lDvgDtqy/BMrWdqPSFqvel/r04Y2bwG/5TQvvHf0mt8H/JdMYqR+NgACSSr+FWaED48xsa1btHRa71kv7fd/h/Dz6R6JtXTItXhLm+PoFBkCUNNzjxnkzZTHPwwWN5oCal12tB5PpeqpZPYOZJjxeu4iywtSpLN4gFGLUOJm4P564Okw4cakeQ+bv4bx7GVIdTHBwf4uO6XFlvEYj8eC+3HY6FRbits31kP0aqwiIrvO0ZfXfM77nFET7cl3Owuxae207I9QWHnKZ/56x3bdyaGH0BE9kHbtxwPgNrNtP9ixNYPLKS4+iVT1Bac9yBZXBkoB3q71PV4IsADwU1lTj4ZlY6+GO6cdRHS941PeBWvAXInZ11UZ21b+GwLdQT/uCYGDdrdvEHqy8202yXb8jLQXTioNRYw7CW2b9l2+SrVs1qDh3vJj5fLCZY+n51erfgxVk9ukdAS58+EO3bF5zMlhgWfLaK/32jBoM1zqhlH2Kg08Xhnewqv+pj7+8MloPwfVuN5TA==
|
|
sidebar_class_name: "get api-method"
|
|
info_path: docs/api/llama-stack-specification
|
|
custom_edit_url: null
|
|
---
|
|
|
|
import MethodEndpoint from "@theme/ApiExplorer/MethodEndpoint";
|
|
import ParamsDetails from "@theme/ParamsDetails";
|
|
import RequestSchema from "@theme/RequestSchema";
|
|
import StatusCodes from "@theme/StatusCodes";
|
|
import OperationTabs from "@theme/OperationTabs";
|
|
import TabItem from "@theme/TabItem";
|
|
import Heading from "@theme/Heading";
|
|
|
|
<Heading
|
|
as={"h1"}
|
|
className={"openapi__heading"}
|
|
children={"List all models."}
|
|
>
|
|
</Heading>
|
|
|
|
<MethodEndpoint
|
|
method={"get"}
|
|
path={"/v1/models"}
|
|
context={"endpoint"}
|
|
>
|
|
|
|
</MethodEndpoint>
|
|
|
|
|
|
|
|
List all models.
|
|
|
|
<Heading
|
|
id={"request"}
|
|
as={"h2"}
|
|
className={"openapi-tabs__heading"}
|
|
children={"Request"}
|
|
>
|
|
</Heading>
|
|
|
|
<ParamsDetails
|
|
parameters={[]}
|
|
>
|
|
|
|
</ParamsDetails>
|
|
|
|
<RequestSchema
|
|
title={"Body"}
|
|
body={undefined}
|
|
>
|
|
|
|
</RequestSchema>
|
|
|
|
<StatusCodes
|
|
id={undefined}
|
|
label={undefined}
|
|
responses={{"200":{"description":"A ListModelsResponse.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"identifier":{"type":"string","description":"Unique identifier for this resource in llama stack"},"provider_resource_id":{"type":"string","description":"Unique identifier for this resource in the provider"},"provider_id":{"type":"string","description":"ID of the provider that owns this resource"},"type":{"type":"string","enum":["model","shield","vector_db","dataset","scoring_function","benchmark","tool","tool_group","prompt"],"const":"model","default":"model","description":"The resource type, always 'model' for model resources"},"metadata":{"type":"object","additionalProperties":{"oneOf":[{"type":"null"},{"type":"boolean"},{"type":"number"},{"type":"string"},{"type":"array"},{"type":"object"}]},"description":"Any additional metadata for this model"},"model_type":{"default":"llm","description":"The type of model (LLM or embedding model)","type":"string","enum":["llm","embedding"],"title":"ModelType"}},"additionalProperties":false,"required":["identifier","provider_id","type","metadata","model_type"],"title":"Model","description":"A model resource representing an AI model registered in Llama Stack."}}},"additionalProperties":false,"required":["data"],"title":"ListModelsResponse"}}}},"400":{"description":"The request was invalid or malformed","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"integer","description":"HTTP status code"},"title":{"type":"string","description":"Error title, a short summary of the error which is invariant for an error type"},"detail":{"type":"string","description":"Error detail, a longer human-readable description of the error"},"instance":{"type":"string","description":"(Optional) A URL which can be used to retrieve more information about the specific occurrence of the error"}},"additionalProperties":false,"required":["status","title","detail"],"title":"Error","description":"Error response from the API. Roughly follows RFC 7807."},"example":{"status":400,"title":"Bad Request","detail":"The request was invalid or malformed"}}}},"429":{"description":"The client has sent too many requests in a given amount of time","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"integer","description":"HTTP status code"},"title":{"type":"string","description":"Error title, a short summary of the error which is invariant for an error type"},"detail":{"type":"string","description":"Error detail, a longer human-readable description of the error"},"instance":{"type":"string","description":"(Optional) A URL which can be used to retrieve more information about the specific occurrence of the error"}},"additionalProperties":false,"required":["status","title","detail"],"title":"Error","description":"Error response from the API. Roughly follows RFC 7807."},"example":{"status":429,"title":"Too Many Requests","detail":"You have exceeded the rate limit. Please try again later."}}}},"500":{"description":"The server encountered an unexpected error","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"integer","description":"HTTP status code"},"title":{"type":"string","description":"Error title, a short summary of the error which is invariant for an error type"},"detail":{"type":"string","description":"Error detail, a longer human-readable description of the error"},"instance":{"type":"string","description":"(Optional) A URL which can be used to retrieve more information about the specific occurrence of the error"}},"additionalProperties":false,"required":["status","title","detail"],"title":"Error","description":"Error response from the API. Roughly follows RFC 7807."},"example":{"status":500,"title":"Internal Server Error","detail":"An unexpected error occurred. Our team has been notified."}}}},"default":{"description":"An unexpected error occurred","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"integer","description":"HTTP status code"},"title":{"type":"string","description":"Error title, a short summary of the error which is invariant for an error type"},"detail":{"type":"string","description":"Error detail, a longer human-readable description of the error"},"instance":{"type":"string","description":"(Optional) A URL which can be used to retrieve more information about the specific occurrence of the error"}},"additionalProperties":false,"required":["status","title","detail"],"title":"Error","description":"Error response from the API. Roughly follows RFC 7807."},"example":{"status":0,"title":"Error","detail":"An unexpected error occurred"}}}}}}
|
|
>
|
|
|
|
</StatusCodes>
|