Skip to content

Commit

Permalink
adding f-string where it due
Browse files Browse the repository at this point in the history
  • Loading branch information
luizanao committed Jul 24, 2024
1 parent f4f8a9d commit 9cc8580
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vllm/entrypoints/chat_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ def _image_token_str(model_config: ModelConfig,
return tokenizer.decode(model_config.hf_config.image_token_index)
if model_type == "chameleon":
return "<image>"
raise TypeError("Unknown model type: {model_type}")
raise TypeError(f"Unknown model type: {model_type}")


# TODO: Let user specify how to insert image tokens into prompt
Expand Down

0 comments on commit 9cc8580

Please sign in to comment.