Co-authored-by: 雪风 <xuefeng@shifaedu.cn>tags/0.7.1
| """ | """ | ||||
| if model in ['qwen-turbo-chat', 'qwen-plus-chat']: | if model in ['qwen-turbo-chat', 'qwen-plus-chat']: | ||||
| model = model.replace('-chat', '') | model = model.replace('-chat', '') | ||||
| if model == 'farui-plus': | |||||
| model = 'qwen-farui-plus' | |||||
| if model in self.tokenizers: | if model in self.tokenizers: | ||||
| tokenizer = self.tokenizers[model] | tokenizer = self.tokenizers[model] |