mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-06-29 03:14:19 +00:00
accepts not model itself. (#153)
This commit is contained in:
parent
5bf679cab6
commit
2f096ca509
1 changed files with 1 additions and 1 deletions
|
@ -34,7 +34,7 @@ def augment_messages_for_tools(request: ChatCompletionRequest) -> List[Message]:
|
||||||
return request.messages
|
return request.messages
|
||||||
|
|
||||||
if model.model_family == ModelFamily.llama3_1 or (
|
if model.model_family == ModelFamily.llama3_1 or (
|
||||||
model.model_family == ModelFamily.llama3_2 and is_multimodal(model)
|
model.model_family == ModelFamily.llama3_2 and is_multimodal(model.core_model_id)
|
||||||
):
|
):
|
||||||
# llama3.1 and llama3.2 multimodal models follow the same tool prompt format
|
# llama3.1 and llama3.2 multimodal models follow the same tool prompt format
|
||||||
return augment_messages_for_tools_llama_3_1(request)
|
return augment_messages_for_tools_llama_3_1(request)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue