[Fix] Fix lint (#1334)

* update needlebench docs

* update model_name_mapping dict

* update README

* fix_lint
This commit is contained in:
Mo Li 2024-07-18 17:15:06 +08:00 committed by GitHub
parent 1bfb4217ff
commit f40add2596
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -376,7 +376,7 @@ class APITemplateParser:
res = [] res = []
for prompt in prompts: for prompt in prompts:
if isinstance(prompt, str): if isinstance(prompt, str):
raise TypeError('Mixing str without explict role is not ' raise TypeError('Mixing str without explicit role is not '
'allowed in API models!') 'allowed in API models!')
else: else:
api_role, cont = self._role2api_role(prompt, role_dict, api_role, cont = self._role2api_role(prompt, role_dict,