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

推荐订阅源

奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
小众软件
小众软件
博客园 - 三生石上(FineUI控件)
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
博客园_首页
Last Week in AI
Last Week in AI
美团技术团队
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
Apple Machine Learning Research
Apple Machine Learning Research
WordPress大学
WordPress大学
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
博客园 - Franky
The Cloudflare Blog
罗磊的独立博客
月光博客
月光博客
N
Netflix TechBlog - Medium
C
Check Point Blog
Microsoft Security Blog
Microsoft Security Blog
F
Fortinet All Blogs
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
Microsoft Azure Blog
Microsoft Azure Blog
IT之家
IT之家
Jina AI
Jina AI
J
Java Code Geeks

LangChain Forum - Latest topics

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) Built a live autonomous AI agent network using LangGraph-style economics — looking for feedback How are you validating LangChain agent output before it executes shell commands? Cross-site pattern pool for production agent failures — looking for 5 pilot teams (open spec, CC-BY-4.0) Metadata filter not filtering for alerts Using custom MCP servers with assistants How to use tool calling using ChatLlamaCpp and Gemma 4 E4B with create_agent? CLI - No Longer Sending traces to Langsmith Connecting the Slack integration fails with invalid_team_for_non_distributed_app The Docs says open router can be used with init_chat_model but throws an error Interested to contribute to langgraph postgre checkpointer for multiple adapter support Modal Inference Trouble understanding and editing experiment summary evaluators feedbacks SSL certificate error from httpx with LangGraph server [Feature Request] Wire allowed_msgpack_modules in langgraph.json Serving an agent with the LangGraph CLI dev command Proposal: implement delete_for_runs for SQLite checkpoint savers WikipediaLoader endup in JSONDecodeError Human-in-the-loop approval dashboard for LangGraph agents — open source, free to deploy Ombre — open source security and audit layer for LangChain apps Should interrupt() be split into two primitives — one for human input, one for s2s data fetching? Unable to delete runs from annotation queue First Bedrock call after idle is slow on TTFT (follow-ups in the same trace are fast)
Feature Request: Image Input support for ChatMistralAI
@choudhary-a · 2026-04-19 · via LangChain Forum - Latest topics

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.