pamundut import json kelas OpenAssistantAPI: def __init__(self, api_key): then self.api_key = api_key self.base_url = "https://api.openai.com/v1/engines/openai" def send_prompt(self, prompt): header = {"Content-Type": "application/json", "Authorization": f"Bearer {self.api_key} } data {"prompt": "max_tokens": 100, "temperature": 0.5 } response requests.(f"{self.openai.com/v1/engines/openai" def send_prompt(self.openai.com/jobs", headers=json.dumpsjob inputdata)) if response.status_code 200: return response.json.json.jp) "
spam fails_task lang_mismatch pii not_appropriate hate_speech sexual_content quality toxicity humor helpfulness creativity violence