Support for other ChatGPT Providers #376
qwertzui11
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi everyone
May I suggest that support/documentation for other ChatGPT-alike providers gets added. eg MistralAi or OpenRouter.
The APIs are very alike and don't need many changes.
In fact
OpenRouter
needs no changes at all:However MistralAi would need some adoptions:
One has to remove some of the params like
top_p
, otherwise theMistralAPI
will return with the http code422
.However these parameters can't be removed due to M.options = vim.tbl_deep_extend("force", {}, M.defaults(), options)
So I'd like to suggest that
openai_params
andopenai_edit_params
might be functions that then create aparams
list.Or a setting for a function to build the curl command.
This could also help to resolve the issue #199 with the logging of requests.
What do you think? Shall I provide a Pull Request?
Thx for your time
Beta Was this translation helpful? Give feedback.
All reactions