[Doc] Guide for adding multi-modal plugins (#6205)

This commit is contained in:
Cyrus Leung
2024-07-10 14:55:34 +08:00
committed by GitHub
parent 5ed3505d82
commit 8a924d2248
7 changed files with 64 additions and 23 deletions
+1
View File
@@ -100,6 +100,7 @@ def repeat_and_pad_image_tokens(
class ImagePlugin(MultiModalPlugin):
"""Plugin for image data."""
def get_data_key(self) -> str:
return "image"