We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 437f916 commit 8b3e94aCopy full SHA for 8b3e94a
vllm/transformers_utils/tokenizers/mistral.py
@@ -143,10 +143,6 @@ def make_mistral_chat_completion_request(
143
if last_message["role"] == "assistant":
144
last_message["prefix"] = True
145
146
- last_message = cast(Dict[str, Any], messages[-1])
147
- if last_message["role"] == "assistant":
148
- last_message["prefix"] = True
149
-
150
# mistral-common requires AssistantMessage content to be string [1].
151
#
152
# [1]: https://github.com/mistralai/mistral-common/blob/f4a06998b75ed78bbf5aaf569590b772ea26c9f6/src/mistral_common/protocol/instruct/messages.py#L80
0 commit comments