Skip to content

Commit

Permalink
Adding test file
Browse files Browse the repository at this point in the history
  • Loading branch information
nqn committed Jun 11, 2024
1 parent 7a9ed7e commit b61e54e
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
Binary file added examples/logging/large_image.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
18 changes: 18 additions & 0 deletions examples/logging/large_image_upload.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
from magentic import chatprompt, SystemMessage, UserMessage
from magentic.vision import UserImageMessage
from log10.load import log10
import openai

log10(openai)

with open("./examples/logging/large_image.png", "rb") as f:
image_bytes = f.read()

@chatprompt(
SystemMessage("What's in the following screenshot?"),
UserImageMessage(image_bytes)
)
def _llm() -> str:
...

_llm()

0 comments on commit b61e54e

Please sign in to comment.