Skip to content

Compatibility Question: LangChain with Mistral-Large-2411's New Prompt Format #28248

Answered by JetXu-LLM
JetXu-LLM asked this question in Q&A
Discussion options

You must be logged in to vote

I'm following up on my own question with our findings after extensive testing and implementation in production.

TL;DR: The current LangChain implementation works correctly with Mistral-Large-2411 through its API abstraction layer. No changes are needed in the code structure.

Detailed Findings:

  1. API Integration Analysis
    Through our testing with a custom HTTP client interceptor, we confirmed that LangChain correctly handles the new prompt format when interacting with Mistral's API. The messages are properly formatted as:
{
    "messages": [
        {
            "role": "system",
            "content": "system_message"
        },
        {
            "role": "user",
            "content": "…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by JetXu-LLM
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant