惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

云风的 BLOG
云风的 BLOG
Blog — PlanetScale
Blog — PlanetScale
博客园 - 【当耐特】
博客园_首页
The GitHub Blog
The GitHub Blog
月光博客
月光博客
Hugging Face - Blog
Hugging Face - Blog
有赞技术团队
有赞技术团队
博客园 - 三生石上(FineUI控件)
D
Docker
Stack Overflow Blog
Stack Overflow Blog
WordPress大学
WordPress大学
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
Apple Machine Learning Research
Apple Machine Learning Research
Vercel News
Vercel News
酷 壳 – CoolShell
酷 壳 – CoolShell
雷峰网
雷峰网
小众软件
小众软件
I
InfoQ
A
About on SuperTechFans
T
The Blog of Author Tim Ferriss
S
SegmentFault 最新的问题
Microsoft Azure Blog
Microsoft Azure Blog
博客园 - Franky

LangChain Forum - Latest posts

Prompt_cache_retention: '24h' supported in langchain agents and where to provide it, inside invoke or while creating client? Could RAG pipelines realistically cause deployment timeouts, is Render suitable for first-time RAG deployments? How do I use langchain_postgres' init_vectorstore_table correctly? Proposal: Graph-wide default error handler for StateGraph (fallback for nodes without error_handler) Support timedelta for CachePolicy.ttl, consistent with TimeoutPolicy Question about LangSmith Trace Search via API How to cancel a run correct !! Anyone confirms this issue that deepagent ui streaming is disturb by update in deepagent or bug issue Would pre-inference routing help long-context agent workflows? Best Stack for Building AI Applications Question about LangSmith Trace Search Seeking help regarding the connection between Websocket and tool calls Tool invocation error with empty error message when using `InjectedState` + `Command` return in async tool How to use @langchain/react FileSystem middleware Using ChatSnowflake with agents Built llmsessioncontract on AgentMiddleware: runtime enforcement of tool-call protocols — feedback wanted DeltaChannelHistory not found in langgraph-api:3.12 Improving citation accuracy and reducing hallucinations in custom Parent-Child RAG pipeline (Gemma3:4B + FAISS+BM25 + Cross-encoder reranker) Metadata filter not filtering for alerts Connecting the Slack integration fails with invalid_team_for_non_distributed_app Trouble understanding and editing experiment summary evaluators feedbacks SSL certificate error from httpx with LangGraph server WikipediaLoader endup in JSONDecodeError Human-in-the-loop approval dashboard for LangGraph agents — open source, free to deploy Should interrupt() be split into two primitives — one for human input, one for s2s data fetching? How are people handling data governance across agent handoffs in production? Feature Request: @task metadata Research: Friction Points in Agentic Commerce Transactions How should I provide an agent to a LangGraph server?
Feature Request: Image Input support for ChatMistralAI
@choudhary-a · 2026-04-19 · via LangChain Forum - Latest posts

1

Hi everyone.

Currently the vision models from Mistral are incompatible with the ImageContentBlock format supported by Langchain.

Mistral vision models require that the image inputs be in the following formats:

Image URL:

{
    "type": "image_url",
    "image_url": "https://docs.mistral.ai/img/eiffel-tower-paris.jpg"
}

or Base64 Image:

{
  "type": "image_url",
  "image_url": f"data:image/jpeg;base64,{base64_image}"
}

But the ImageContentBlock & the create_image_block() in Langchain end up creating images in the following formats:

With Image URL:


{
    "type": "image", 
    "id": "lc_5d1ebab5-63cd-4437-8e87-024202ffe31e", 
    "url": "https://docs.mistral.ai/img/eiffel-tower-paris.jpg"
}

Or Base64 Image:

{
    "type": "image",
    "id": "lc_16e07a2d-3b41-40fe-a677-0f3e3d6a6ba4",
    "base64": "base64_image_data",
    "mime_type": "image/png"
}

& so the mistral models end up rejecting these payloads.

I know we can still create the correct payloads manually but since ContentBlocks are supposed to be model agnostic, so I was wondering if we should add a conversion layer in ChatMistralAI model to convert the image content blocks to the format accepted by the Mistral vision models.

If you folks think this is worth pursuing, I’d be happy to create an issue on the repo & raise a PR for this.

@choudhary-akash thank you for identifying it, HumanMessage and ChatMessage content is passed completely unchanged to the Mistral API. There is zero image block handling there. I have been using custom wrapper so having this feature will be great.