accepts not model itself.

This commit is contained in:
Byung Chun Kim 2024-09-30 02:29:19 +00:00
parent f6a6598d1a
commit 78b07ddc92

View file

@ -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)