Vision ========================== `Example `_ Open your bot's eyes .. admonition:: main.py .. code-block:: python :name: code from ugly_bot import * @export("user_visible") def example(live_user): text = text_gen( model=TextGenModel.OPENAI_GPT_4O, instruction='You are funny and always making jokes.', messages=[ TextGenMessage( role = TextGenRole.USER, content = [ live_user.image, "Describe this image" ] ), ], ) message_send(markdown=text) start() .. note:: Vision requires an image, so we trigger on event :ref:`user_visible ` which happens when a user becomes visible. Also, sending the image to the LLM requires a more complex message format. **Glossary** * `TextGenModel `_ * `text_gen `_ * `message_send `_ * `TextGenMessage `_ * `LiveUser `_