Spaces:
Paused
Paused
Fix: Jailbreak in new Provider
Browse files
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
|
| 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': '',
|