diff --git a/chatchat/baidu.py b/chatchat/baidu.py index 67e7250..ba81afe 100644 --- a/chatchat/baidu.py +++ b/chatchat/baidu.py @@ -25,8 +25,6 @@ def __init__(self, model='ERNIE-Speed-8K', proxy=None, timeout=None): 'ERNIE-Speed-128K': 'ernie-speed-128k', 'ERNIE-Speed-AppBuilder': 'ai_apaas', 'ERNIE-Lite-8K': 'ernie-lite-8k', - 'ERNIE-Lite-8K-0922': 'eb-instant', - 'ERNIE-Bot-turbo-0922': 'eb-instant', 'ERNIE-Tiny-8K': 'ernie-tiny-8k', 'Yi-34B-Chat': 'yi_34b_chat', } diff --git a/chatchat/cli/config.py b/chatchat/cli/config.py index 154c132..07889a9 100644 --- a/chatchat/cli/config.py +++ b/chatchat/cli/config.py @@ -24,7 +24,7 @@ def parse_config(args): cfg = args.cfgs.split('=') plat_key = cfg[0].split('.') usage = 'Usage: chatchat config platform.key=value' - if len(cfg) != 2 and len(plat_key) != 2: + if len(cfg) != 2 or len(plat_key) != 2: print(usage) return diff --git a/setup.py b/setup.py index 3800f45..60ac5fa 100644 --- a/setup.py +++ b/setup.py @@ -3,7 +3,7 @@ setup( name = 'chatchat', packages = find_packages(exclude=['examples']), - version = '0.1.7', + version = '0.1.8', license = 'GPL-2.0', description = 'Large Language Model API', author = 'JiauZhang',