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

Bump magentic from 0.32.0 to 0.35.0 #386

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

Conversation

dependabot[bot]
Copy link

@dependabot dependabot bot commented on behalf of github Jan 6, 2025

Bumps magentic from 0.32.0 to 0.35.0.

Release notes

Sourced from magentic's releases.

v0.35.0

What's Changed

UserMessage now accepts image urls, image bytes, and document bytes directly using the ImageUrl, ImageBytes, and DocumentBytes types.

Example of new UserMessage syntax and DocumentBytes

from pathlib import Path
from magentic import chatprompt, DocumentBytes, Placeholder, UserMessage
from magentic.chat_model.anthropic_chat_model import AnthropicChatModel
@​chatprompt(
UserMessage(
[
"Repeat the contents of this document.",
Placeholder(DocumentBytes, "document_bytes"),
]
),
model=AnthropicChatModel("claude-3-5-sonnet-20241022"),
)
def read_document(document_bytes: bytes) -> str: ...
document_bytes = Path("...").read_bytes()
read_document(document_bytes)
'This is a test PDF.'

PRs

New Contributors

Full Changelog: jackmpcollins/magentic@v0.34.1...v0.35.0

v0.34.1

What's Changed

Full Changelog: jackmpcollins/magentic@v0.34.0...v0.34.1

... (truncated)

Commits
  • 60b74b3 Add DocumentBytes for submitting PDF documents (#395)
  • 0cb9e7b Support images directly in UserMessage (#387)
  • 5aea92d Accept Sequence[Message] instead of list for Chat (#390)
  • af31a87 Improve ruff format/lint rules (#385)
  • f7e7e37 Consume LLM output stream via returned objects to allow caching (#384)
  • 0cc46d9 Add (Async)StreamedResponse for multi-part responses (#383)
  • a9d513f Refactor to reuse stream parsing across ChatModels (#380)
  • d98045f Make VCR match on request body in tests (#377)
  • 046ae4d Switch to uv from poetry (#373)
  • b1805d1 Bump ruff from 0.5.2 to 0.6.5 (#331)
  • See full diff in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

@dependabot dependabot bot added the dependencies Pull requests that update a dependency file label Jan 6, 2025
@dependabot dependabot bot requested review from kxtran and wenzhe-log10 January 6, 2025 14:40
@dependabot dependabot bot force-pushed the dependabot/pip/magentic-0.35.0 branch from fb3dc15 to 4a73dd7 Compare January 6, 2025 18:11
@dependabot dependabot bot force-pushed the dependabot/pip/magentic-0.35.0 branch from 4a73dd7 to ed55b48 Compare January 14, 2025 23:15
Bumps [magentic](https://github.com/jackmpcollins/magentic) from 0.32.0 to 0.35.0.
- [Release notes](https://github.com/jackmpcollins/magentic/releases)
- [Commits](jackmpcollins/magentic@v0.32.0...v0.35.0)

---
updated-dependencies:
- dependency-name: magentic
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot bot force-pushed the dependabot/pip/magentic-0.35.0 branch from ed55b48 to 5d3059f Compare January 23, 2025 23:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants