在使用 gptel 的时候,如何设置 coding-system?我用英文提问,没问题。但如果用中文提问,gptel 就会出现问题。下面是 gptel-log
返回的问题是
ModelScope error: (((803c8659482df9e43577fd1d9adc7434 . 0)(803c8659482df9e43577fd1d9adc7434 . 0)(803c8659482df9e43577fd1d9adc7434 . 0)) Could not parse HTTP response.) Could not parse HTTP response.
如果你是使用的 Windows 或者一些非标准输出/返回模型那么可以这样:
- (setq gptel-use-curl 'nil)
- 将 gptel-backend 配置的模型中 :stream 配置成 nil
详细讨论: [求助] gptel 如何解决 中文(非英文?) 乱码问题? - #15,来自 ISouthRain
没有任何返回
将 :stream 设置成 nil 后,问题依旧。
将 gptel-use-curl 设置成 nil 后,会出现
error in process sentinel: Wrong type argument: integer-or-marker-p, nil
gptel-include-reasoning
这个变量设置成 nil 再看一下
还是有问题,显示错误 error in process sentinel: Wrong type argument: integer-or-marker-p, nil
更新 gptel 版本后,设置 (setq gptel-use-curl 'nil) 即可正常用中文了