GUI for ChatGPT API and many LLMs. Supports agents, file-based QA, GPT finetuning and query with web search. All with a neat UI.
GNU General Public License v3.0
15.07k
stars
2.28k
forks
source link
solve customized OpenAIVision model api_host issue #1125
Closed
vc12345679 closed 1 month ago
作者自述
描述
更正 OpenAIVision 内自定义 api_host 的调用。
更正后,以 DeepSeek V2 模型为例,相应 json 配置如下
运行结果![chat_DeepSeek-V2](https://github.com/GaiZhenbiao/ChuanhuChatGPT/assets/9109415/5971dc2e-c79e-418c-9e58-81905463824f)
相关问题
1117
补充信息
OpenAIVisionClient.__init__()
时已进行自定义 api_host 判断,并正确赋值给一系列self.xxx_url
,如下:此时各变量分别为
但在
_get_response()
和_single_query_at_once()
中,执行自定义api_host判断时各变量分别为
因此,相应的
requests.post
所对应的 url 应为self.chat_completion_url
,而非shared.state.chat_completion_url