有没有支持kimi chat的插件?

运行截图

开启 debug 模式,运行截图

spacemacs 中在 user-config 中的配置:

  (use-package gptel
    :ensure t
    :config
    (setq gptel-model "moonshot-v1-8k")
    (setq gptel-default-mode 'org-mode)
    (setq gptel-backend
          (gptel-make-openai "Moonshot"
            :key 'gptel-api-key
            :models '("moonshot-v1-8k"
                      "moonshot-v1-32k"
                      "moonshot-v1-128k")
            :host "api.moonshot.cn")))

~/.authinfo文件的配置格式如下(仅仅把 TOKEN 替换成 在 kimi api 平台申请的key):

machine api.moonshot.cn login apikey password TOKEN