Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Example of attachment with type #594

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft

Example of attachment with type #594

wants to merge 1 commit into from

Conversation

simonw
Copy link
Owner

@simonw simonw commented Oct 29, 2024

Need to test this before merging it.

Need to test this before merging it.
@simonw simonw marked this pull request as draft October 29, 2024 18:19
@@ -69,7 +69,18 @@ response = model.prompt(
]
)
```
Use `llm.Attachment(content=b"binary image content here")` to pass binary content directly.
Use `llm.Attachment(content=b"binary image content here")` to pass binary content directly. You may optionqlly specify a content type - if tou do not it will be detected automatically:
Copy link

@erikdw erikdw Oct 29, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Use `llm.Attachment(content=b"binary image content here")` to pass binary content directly. You may optionqlly specify a content type - if tou do not it will be detected automatically:
Use `llm.Attachment(content=b"binary image content here")` to pass binary content directly. You may optionally specify a content type - if you do not, it will be detected automatically:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants