Hozirda OpenAssistant API xizmatlarini taqdim etmaydi. Ammo, bu erda "so'rovlar" kutubxonasi yordamida API chaqirishni yuboradigan python dasturi misoli mavjud. "''import so'rovlari def send_prompt: " '# `<API_KEY>` ni API kalitining taqdim etilgan api_key = "<API_KEY>" sarlavhalari bilan almashtiring = { "Mulohaza turi": "application/json", "Authorization": f"Bearer {api_key}" } # API uchinchi nuqtasi uchun oxirgi nuqta = "API_URL" # Ma'lumotlar so'rovida yuboriladigan ma'lumotlar = {} # So'rovni oxirgi nuqtada yuborish = javob so'rovlari. post. endpoint, headers = headers, json = data)
spam fails_task lang_mismatch pii not_appropriate hate_speech sexual_content quality toxicity humor helpfulness creativity violence