mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-08-03 01:03:59 +00:00
adapter
This commit is contained in:
parent
c20f342cde
commit
237cc26ac6
1 changed files with 2 additions and 1 deletions
|
@ -275,9 +275,10 @@ def chat_completion_request_to_messages(
|
|||
model.model_family == ModelFamily.llama3_2
|
||||
and is_multimodal(model.core_model_id)
|
||||
):
|
||||
# llama3.1, llama3.2 multimodal and llama3.3 models follow the same tool prompt format
|
||||
# llama3.1 and llama3.2 multimodal models follow the same tool prompt format
|
||||
messages = augment_messages_for_tools_llama_3_1(request)
|
||||
elif model.model_family in (ModelFamily.llama3_2, ModelFamily.llama3_3):
|
||||
# llama3.2 and llama3.3 models follow the same tool prompt format
|
||||
messages = augment_messages_for_tools_llama_3_2(request)
|
||||
else:
|
||||
messages = request.messages
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue