You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
def can_multi_process(llm) -> bool:
from request_llms.bridge_all import model_info
def default_condition(llm) -> bool:
# legacy condition
if llm.startswith('gpt-'): return True
if llm.startswith('api2d-'): return True
if llm.startswith('azure-'): return True
if llm.startswith('spark'): return True
if llm.startswith('qianfan'): return True
if llm.startswith('gemini-'): return True
if llm.startswith('moonshot-'): return True
if llm.startswith('one-'): return True
if llm.startswith('zhipuai') or llm.startswith('glm-'): return True
return False
Class | 类型
程序主体
Feature Request | 功能请求
def can_multi_process(llm) -> bool:
from request_llms.bridge_all import model_info
在/gpt_academic/crazy_functions/crazy_utils.py这个文件夹下增加以上代码(通过模型前缀判断是否开启多线程的bool值)
The text was updated successfully, but these errors were encountered: