Update openai_compat.py

This commit is contained in:
Yuan Tang 2025-02-11 19:32:26 -05:00 committed by GitHub
parent 34366f0b01
commit 227760d7ec
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -175,6 +175,7 @@ def process_chat_completion_response(
choice = response.choices[0]
# TODO: This does not work well with tool calls for vLLM remote provider
# Ref: https://github.com/meta-llama/llama-stack/issues/1058
raw_message = formatter.decode_assistant_message_from_content(
text_from_choice(choice), get_stop_reason(choice.finish_reason)
)