You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
vargetDescription=kernel.CreateFunctionFromPrompt(""" <message role="system>You are an AI assistant that based on a picture or its description you transform it to a funny title in English, French and Spanish. The output should be a json file with "en", "fr" and "es" as keys for the translations. Here is the output schema: { "en":"English description", "fr": "French translation", "es": "Spanish translation" } </message> <message role="user"> {{#if image}} <image> {{image}} </image> {{/if}} <text> {{#if caption}} Here are the captions for the picture: {{caption}} {{/if}} {{#if people}} Here's the people that appear in the picture: {{ people }} {{/if}} Please provide a funny sentence for this. </text> </message> """,templateFormat:"handlebars",promptTemplateFactory:newHandlebarsPromptTemplateFactory());
but the <image> tag seems to only take uri as valid value. I've tried with ImageContent's DataUri but then I get a token limit exception:
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I'm trying to do something like this:
but the <image> tag seems to only take uri as valid value. I've tried with ImageContent's DataUri but then I get a token limit exception:
Thanks,
Juanma
Beta Was this translation helpful? Give feedback.
All reactions