We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e4d043f commit 0c51d75Copy full SHA for 0c51d75
swift/llm/utils/dataset.py
@@ -559,7 +559,8 @@ def _repair_agent_conversations(conversations: str,
559
560
561
def _repair_ms_bench(conversations: str) -> Dict[str, str]:
562
- conversations = ast.literal_eval(conversations)
+ if isinstance(conversations, str):
563
+ conversations = ast.literal_eval(conversations)
564
default_system = 'You are a helpful assistant.'
565
if conversations[0]['from'] == 'system' and conversations[0][
566
'value'] == default_system:
0 commit comments