Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problems getting gptel to talk to Mistral Le Chat #666

Open
mok0 opened this issue Feb 26, 2025 · 0 comments
Open

Problems getting gptel to talk to Mistral Le Chat #666

mok0 opened this issue Feb 26, 2025 · 0 comments
Labels
question Further information is requested

Comments

@mok0
Copy link

mok0 commented Feb 26, 2025

Briefly describe what you are trying to do

I have been trying to get gptel to work the Mistral Le Chat on the remote model. I have created a login, and fetched an api. I have verified that I am allowed to use the mistral-small model (but not the large one). I even asked Le Chat to help me get it right, but it seems she is just as confused as I am. We finally ended up with this configuration:

(setq gptel-backend
      (gptel-make-openai "MistralLeChat"
                         :host "https://api.mistral.ai/v1"
                         :protocol "https"
                         :key (get-mistral-api-key)
                         :models '("mistral-small")))

but I get the response:

MistralLeChat error: (((4c09fc6eba4df2cf668708e3dc5faa0b . 0)) Could not parse HTTP response.) Could not parse HTTP response.

Le Chat says it's API is OpenAI compatible, so I suppose using the gptel-make-openai macro should work. She and I tried many times but I don't think she knows. Is there a human here that can help?

Additional context
Emacs version: 29.4
Operating system: Linux 6.11.9

@mok0 mok0 added the question Further information is requested label Feb 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant