mirror of
https://github.com/hanzoai/cli.git
synced 2026-10-30 15:00:27 +00:00
1.4 KiB
1.4 KiB
parent, nav_order, description
| parent | nav_order | description |
|---|---|---|
| Usage | 700 | Add images and web pages to the dev coding chat. |
Images & web pages
You can add images and URLs to the dev chat.
Images
Dev supports working with image files for many vision-capable models like GPT-4o and Claude 3.5 Sonnet. Adding images to a chat can be helpful in many situations:
- Add screenshots of web pages or UIs that you want dev to build or modify.
- Show dev a mockup of a UI you want to build.
- Screenshot an error message that is otherwise hard to copy & paste as text.
- Etc.
You can add images to the chat just like you would add any other file:
- Use
/add <image-filename>from within the chat - Use
/pasteto paste an image from your clipboard into the chat. - Launch dev with image filenames on the command line:
dev <image-filename>along with any other command line arguments you need.
Web pages
Dev can scrape the text from URLs and add it to the chat. This can be helpful to:
- Include documentation pages for less popular APIs.
- Include the latest docs for libraries or packages that are newer than the model's training cutoff date.
- Etc.
To add URLs to the chat:
- Use
/web <url> - Just paste the URL into the chat and dev will ask if you want to add it.
You can also scrape web pages from the command line to see the markdown version that dev produces:
python -m dev.scrape https://dev.chat/docs/usage/tips.html