Я преобразовал изображение в базу 64 и теперь хочу поместить его в чат. PromptTemplate:
...
Код: Выделить всё
image_data = ... #converting image to base64 and store it in the variable
generation_prompt = ChatPromptTemplate.from_messages(
[
(
"system",
"""
You are an expert assistant. Your task is to analyze the food items
displayed in {{im64}} and provide a detailed information about them.
"""
),
MessagesPlaceholder(variable_name = ["im64",str(image_data)]),
])
content="Ошибка при вызове инструмента 'tool_x' с kwargs {'image_data': 'description of the image'} с ошибкой:\n имя_переменной: ввод должна быть допустимой строкой\n Исправьте ошибку и повторите попытку."
Может ли кто-нибудь пролить свет на эту ошибку?>
Мобильная версия