llama-stack/docs/openapi_generator/pyopenapi
ehhuang 047303e339
feat: introduce APIs for retrieving chat completion requests (#2145)
# What does this PR do?
This PR introduces APIs to retrieve past chat completion requests, which
will be used in the LS UI.

Our current `Telemetry` is ill-suited for this purpose as it's untyped
so we'd need to filter by obscure attribute names, making it brittle.

Since these APIs are 'provided by stack' and don't need to be
implemented by inference providers, we introduce a new InferenceProvider
class, containing the existing inference protocol, which is implemented
by inference providers.

The APIs are OpenAI-compliant, with an additional `input_messages`
field.


## Test Plan
This PR just adds the API and marks them provided_by_stack. S
tart stack server -> doesn't crash
2025-05-18 21:43:19 -07:00
..
__init__.py move openapi from rfcs->docs 2024-09-18 16:09:17 -07:00
generator.py feat: introduce APIs for retrieving chat completion requests (#2145) 2025-05-18 21:43:19 -07:00
operations.py fix: some telemetry APIs don't currently work (#1188) 2025-02-20 14:09:25 -08:00
options.py feat: enhance OpenAPI spec to include Error types (#1320) 2025-02-28 11:16:12 -08:00
README.md move openapi from rfcs->docs 2024-09-18 16:09:17 -07:00
specification.py feat: adding endpoints for files and uploads (#1070) 2025-02-20 13:09:00 -08:00
template.html fix: update CDN url for stoplight 2025-03-14 15:46:45 -07:00
utility.py chore: more API validators (#2165) 2025-05-15 11:22:51 -07:00