mirror of
https://github.com/open-compass/opencompass.git
synced 2025-05-30 16:03:24 +08:00
[Fix] Fix lint (#1334)
* update needlebench docs * update model_name_mapping dict * update README * fix_lint
This commit is contained in:
parent
1bfb4217ff
commit
f40add2596
@ -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,
|
||||||
|
Loading…
Reference in New Issue
Block a user