Skip to content

Get it to work with mistral #1570

Answered by yuchanns
DanielAndreasen asked this question in Q&A
Discussion options

You must be logged in to vote

All you need is inherit:

return {
    "yetone/avante.nvim",
    -- event = "VeryLazy",
    version = false, -- Set this to "*" to always pull the latest release version, or set it to false to update to the latest code changes.
    opts = {
        provider = "mistral", -- "claude" or "openai" or "azure"
        vendors = {
            mistral = {
                api_key_name = "MISTRAL_API_KEY",
+                endpoint = "https://api.mistral.ai/v1/",
-                endpoint = "https://api.mistral.ai/v1/chat/completions",
                model = "mistral-large-latest",
+               __inherited_from = "openai",
-               parse_curl_args = function(opts, code_opts)
-

Replies: 4 comments 13 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
5 replies
@yuchanns
Comment options

Answer selected by DanielAndreasen
@DanielAndreasen
Comment options

@yuchanns
Comment options

@DanielAndreasen
Comment options

@yuchanns
Comment options

Comment options

You must be logged in to vote
6 replies
@sheenazien8
Comment options

@DanielAndreasen
Comment options

@sheenazien8
Comment options

@sheenazien8
Comment options

@yuchanns
Comment options

Comment options

You must be logged in to vote
2 replies
@sheenazien8
Comment options

@abelxiaoxing
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants
Converted from issue

This discussion was converted from issue #1563 on March 12, 2025 11:50.