Skip to content

Commit

Permalink
Update bridge_all.py (#1472)
Browse files Browse the repository at this point in the history
删除 "chatgpt_website" 函数,从而不再支持域基于逆向工程的方法的接口,该方法对应的实现项目为:https://github.com/acheong08/ChatGPT-to-API/。目前,该项目已被开发者 archived,且该方法由于其实现的原理,而不可能是稳健和完美的,因此不是可持续维护的。
  • Loading branch information
hongyi-zhao authored Jan 13, 2024
1 parent 0a28055 commit 2bc65a9
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions request_llms/bridge_all.py
Original file line number Diff line number Diff line change
Expand Up @@ -498,22 +498,6 @@ def decode(self, *args, **kwargs):
})
except:
print(trimmed_format_exc())
if "chatgpt_website" in AVAIL_LLM_MODELS: # 接入一些逆向工程https://github.com/acheong08/ChatGPT-to-API/
try:
from .bridge_chatgpt_website import predict_no_ui_long_connection as chatgpt_website_noui
from .bridge_chatgpt_website import predict as chatgpt_website_ui
model_info.update({
"chatgpt_website": {
"fn_with_ui": chatgpt_website_ui,
"fn_without_ui": chatgpt_website_noui,
"endpoint": openai_endpoint,
"max_token": 4096,
"tokenizer": tokenizer_gpt35,
"token_cnt": get_token_num_gpt35,
}
})
except:
print(trimmed_format_exc())
if "spark" in AVAIL_LLM_MODELS: # 讯飞星火认知大模型
try:
from .bridge_spark import predict_no_ui_long_connection as spark_noui
Expand Down

0 comments on commit 2bc65a9

Please sign in to comment.