binary-husky / gpt_academic

为GPT/GLM等LLM大语言模型提供实用化交互接口,特别优化论文阅读/润色/写作体验,模块化设计,支持自定义快捷按钮&函数插件,支持Python和C++等项目剖析&自译解功能,PDF/LaTex论文翻译&总结功能,支持并行问询多种LLM模型,支持chatglm3等本地模型。接入通义千问, deepseekcoder, 讯飞星火, 文心一言, llama2, rwkv, claude2, moss等。
https://github.com/binary-husky/gpt_academic/wiki/online
GNU General Public License v3.0
64.39k stars 7.97k forks source link

[Feature]: How to implement the use of different API keys for GPT3.5 and GPT4? #1106

Open DojHe opened 1 year ago

DojHe commented 1 year ago

Class | 类型

None

Feature Request | 功能请求

Sometimes I need to switch between the GPT3.5 and 4.0 models. I want to achieve the purpose of having them use different API keys. Is there currently a way to implement this?

binary-husky commented 1 year ago

Currently we do not have such design on the configuration interface, as GPT4 api compat backward to GPT3.5.

However, this is easy to achieve by implementing your special rule under https://github.com/binary-husky/gpt_academic/blob/16ff5ddcdc2be805108d8fc70d7b2ec11ba8aea2/toolbox.py#L671

DojHe commented 1 year ago

Currently we do not have such design on the configuration interface, as GPT4 api compat backward to GPT3.5.

However, this is easy to achieve by implementing your special rule under

https://github.com/binary-husky/gpt_academic/blob/16ff5ddcdc2be805108d8fc70d7b2ec11ba8aea2/toolbox.py#L671

Thank you!