v2.17.0 (#822)
Co-authored-by: Clément Sirieix <clement.sirieix@mistral.ai> Co-authored-by: Guillaume LE GOFF <guillaume.lgf@gmail.com> Co-authored-by: Hdandria <henri.dandria@mistral.ai> Co-authored-by: Ivana Dunisijevic <ivana.dunisijevic@mistral.ai> Co-authored-by: Jean Burellier <sheplu@users.noreply.github.com> Co-authored-by: Mathias Gesbert <mathias.gesbert@mistral.ai> Co-authored-by: Mert Unsal <mert.unsal@mistral.ai> Co-authored-by: Michel Thomazo <51709227+michelTho@users.noreply.github.com> Co-authored-by: Paul VEZIA <166131032+le-codeur-rapide@users.noreply.github.com> Co-authored-by: Pierre Rossinès <pierre.rossines@mistral.ai> Co-authored-by: Val <102326092+vdeva@users.noreply.github.com> Co-authored-by: Vincent G <10739306+VinceOPS@users.noreply.github.com> Co-authored-by: renovate-mistral[bot] <253709520+renovate-mistral[bot]@users.noreply.github.com> Co-authored-by: Mistral Vibe <vibe@mistral.ai>
This commit is contained in:
parent
564a14365e
commit
6bedf271ce
223 changed files with 10533 additions and 6947 deletions
|
|
@ -14,7 +14,7 @@ from vibe.core.llm.backend.generic import OpenAIAdapter
|
|||
from vibe.core.llm.backend.mistral import MistralMapper
|
||||
from vibe.core.llm.backend.openai_responses import OpenAIResponsesAdapter
|
||||
from vibe.core.llm.backend.reasoning_adapter import ReasoningAdapter
|
||||
from vibe.core.types import ImageAttachment, LLMMessage, Role
|
||||
from vibe.core.types import FileImageSource, ImageAttachment, LLMMessage, Role
|
||||
|
||||
PNG_BYTES = b"\x89PNG\r\n\x1a\n" + b"\x00" * 16
|
||||
EXPECTED_B64 = base64.b64encode(PNG_BYTES).decode("ascii")
|
||||
|
|
@ -25,7 +25,9 @@ EXPECTED_DATA_URI = f"data:image/png;base64,{EXPECTED_B64}"
|
|||
def image_attachment(tmp_path: Path) -> ImageAttachment:
|
||||
path = tmp_path / "shot.png"
|
||||
path.write_bytes(PNG_BYTES)
|
||||
return ImageAttachment(path=path, alias="shot.png", mime_type="image/png")
|
||||
return ImageAttachment(
|
||||
source=FileImageSource(path=path), alias="shot.png", mime_type="image/png"
|
||||
)
|
||||
|
||||
|
||||
def _user_message(image: ImageAttachment) -> LLMMessage:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue