llama-stack-mirror/llama_stack/distribution/routers
Ben Browning a6cf8fa12b OpenAI completion prompt can also be an array
The OpenAI completion prompt field can be a string or an array, so
update things to use and pass that properly.

This also stubs in a basic conversion of OpenAI non-streaming
completion requests to Llama Stack completion calls, for those
providers that don't actually have an OpenAI backend to allow them to
still accept requests via the OpenAI APIs.

Signed-off-by: Ben Browning <bbrownin@redhat.com>
2025-04-09 15:47:02 -04:00
..
__init__.py feat: Add back inference metrics and preserve context variables across asyncio boundary (#1552) 2025-03-12 12:01:03 -07:00
routers.py OpenAI completion prompt can also be an array 2025-04-09 15:47:02 -04:00
routing_tables.py Use our own pydantic models for OpenAI Server APIs 2025-04-09 15:47:02 -04:00