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

推荐订阅源

钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
Jina AI
Jina AI
博客园 - 司徒正美
大猫的无限游戏
大猫的无限游戏
博客园 - 三生石上(FineUI控件)
J
Java Code Geeks
博客园 - 聂微东
酷 壳 – CoolShell
酷 壳 – CoolShell
爱范儿
爱范儿
美团技术团队
腾讯CDC
博客园 - Franky
MyScale Blog
MyScale Blog
人人都是产品经理
人人都是产品经理
罗磊的独立博客
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
月光博客
月光博客
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
aimingoo的专栏
aimingoo的专栏
博客园_首页
V
V2EX
Martin Fowler
Martin Fowler
T
The Blog of Author Tim Ferriss

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.