llama-stack-mirror/llama_stack/apis/inference
Ben Browning 1e673010e4 fix: OpenAI API chat completion messages with image_url
This fixes the OpenAI API chat completions endpoint to accept messages
with image_url references. Previously, we were using the
InterleavedContent type which was actually a Llama Stack API type that
happened to work for text message parts, but the schema differs for
image message parts.

So, this adds OpenAI-specific schema classes to handle text and image
chat completions message parts.

Signed-off-by: Ben Browning <bbrownin@redhat.com>
2025-04-13 13:39:56 -04:00
..
__init__.py API Updates (#73) 2024-09-17 19:51:35 -07:00
event_logger.py pre-commit lint 2024-09-28 16:04:41 -07:00
inference.py fix: OpenAI API chat completion messages with image_url 2025-04-13 13:39:56 -04:00