import websocket import json # WebSocket serverining URL-ni belgilash url = "wss://ejemplo.com/websocket" # WebSocket ws = websocket.WebSocket() ws.connect(url) # JSONni jo'natmoqchi bo'lgan JSONni yaratish json_data = {"field1": "valor1", "field2": "valor2"} # JSONni json_stringga aylantirish = json.dumps(json_data) # JSONni serverga WebSocket ws.send orqali yuborish ((json_str) # WebSocket.ws.close (WEBSOS)
spam fails_task lang_mismatch pii not_appropriate hate_speech sexual_content quality toxicity humor helpfulness creativity violence