monra commited on
Commit
6370fd4
1 Parent(s): 724f683

Fix: Jailbreak in new Provider

Browse files
Files changed (1) hide show
  1. g4f/Provider/Providers/Yqcloud.py +1 -1
g4f/Provider/Providers/Yqcloud.py CHANGED
@@ -21,7 +21,7 @@ def _create_completion(model: str, messages: list, stream: bool, chatId: str, **
21
  }
22
 
23
  json_data = {
24
- 'prompt': messages[-1]['content'],
25
  'userId': f'#/chat/{chatId}',
26
  'network': True,
27
  'apikey': '',
 
21
  }
22
 
23
  json_data = {
24
+ 'prompt': str(messages),
25
  'userId': f'#/chat/{chatId}',
26
  'network': True,
27
  'apikey': '',