请问在 gptel 中如何配置火山引擎、腾讯云等平台 deepseek api?
原先一直使用 deepseek 官网的 api,现在无法充值了
请问在 gptel 中如何配置火山引擎、腾讯云等平台 deepseek api?
原先一直使用 deepseek 官网的 api,现在无法充值了
和配置deepseek官方api一样,不过要更换host
、key
和model
名
我尝试用火山的 deepseek,但似乎配置错了
(gptel-make-openai "HuoShan"
:host "ark.cn-beijing.volces.com"
:endpoint "/api/v3"
:stream t
:key "My API Key"
:models '("ep-20250210201143-5m6l7"))
使用 Gemini 2.0 flash thinking 01-21 吧:
注意改掉这两个地方哦:
;;;###autoload
(cl-defun gptel-make-gemini
(name &key curl-args header key request-params
(stream nil)
(host "generativelanguage.googleapis.com")
(protocol "https")
(models gptel--gemini-models)
(endpoint "/v1alpha/models"))
(gemini-2.0-flash-thinking-exp-01-21
:description "Stronger reasoning capabilities."
:capabilities (tool-use media)
:context-window 64
:mime-types ("image/png" "image/jpeg" "image/webp" "image/heic" "image/heif" "application/pdf"
"text/plain" "text/csv" "text/html")
:request-params (:generationConfig (:thinking_config (:include_thoughts t)))
:cutoff-date "2024-08")
;;; 另外推荐 flash 2.0 pro exp 02 05
(gemini-2.0-pro-exp-02-05
:description "Next generation features, superior speed, native tool use"
:capabilities (tool-use json media)
:mime-types ("image/png" "image/jpeg" "image/webp" "image/heic" "image/heif"
"application/pdf" "text/plain" "text/csv" "text/html")
:context-window 2000
:cutoff-date "2024-09")
主要没有 Gemini 和 ChatGPT 的 API,似乎都要国外的电话。
我用大模型来改写 GeoGebra 作图输出的 PGF/TikZ 代码,改写成用 tkz-euclide 作图的代码。 Deepseek 在这方面和 ChatGPT 网页版一样好,比 Gemini 网页版好一点。 当然,直接改写出来的代码还需要适当的优化。
针对我这个需求,我还测试了 ChatGLM、Qwen-plus、Qwen-max-latest 模型,总体的直观感觉是这样的
Deepseek = ChatGPT = Qwen-max-latest > Qwen-plus > ChatGLM