Skip to content
This repository has been archived by the owner on Feb 2, 2025. It is now read-only.

Image support via new attachments feature #19

Closed
simonw opened this issue Oct 29, 2024 · 1 comment
Closed

Image support via new attachments feature #19

simonw opened this issue Oct 29, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@simonw
Copy link
Owner

simonw commented Oct 29, 2024

See LLM 0.17a0:

@simonw simonw added the enhancement New feature or request label Oct 29, 2024
@simonw
Copy link
Owner Author

simonw commented Oct 29, 2024

For the test:

TINY_PNG = (
    b"\x89PNG\r\n\x1a\n\x00\x00\x00\rIHDR\x00\x00\x00\xa6\x00\x00\x01\x1a"
    b"\x02\x03\x00\x00\x00\xe6\x99\xc4^\x00\x00\x00\tPLTE\xff\xff\xff"
    b"\x00\xff\x00\xfe\x01\x00\x12t\x01J\x00\x00\x00GIDATx\xda\xed\xd81\x11"
    b"\x000\x08\xc0\xc0.]\xea\xaf&Q\x89\x04V\xe0>\xf3+\xc8\x91Z\xf4\xa2\x08EQ\x14E"
    b"Q\x14EQ\x14EQ\xd4B\x91$I3\xbb\xbf\x08EQ\x14EQ\x14EQ\x14E\xd1\xa5"
    b"\xd4\x17\x91\xc6\x95\x05\x15\x0f\x9f\xc5\t\x9f\xa4\x00\x00\x00\x00IEND\xaeB`"
    b"\x82"
)

Created that using this pattern: https://til.simonwillison.net/python/inlining-binary-data

From:

tiny

simonw added a commit that referenced this issue Oct 29, 2024
simonw added a commit that referenced this issue Oct 29, 2024
@simonw simonw changed the title Support images Image support via new attachments feature Oct 29, 2024
@simonw simonw closed this as completed Oct 29, 2024
simonw added a commit that referenced this issue Oct 29, 2024
simonw added a commit that referenced this issue Oct 29, 2024
simonw added a commit that referenced this issue Oct 29, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant