Bu yerda Python kodining misollari mavjud, ular HTTP so'rovlarini GET usuli bilan HTTP API-ga so'rovlar kutubxonasi yordamida amalga oshiradi: import requests url = "https://api.example.com/data" response = requests.get(url) if response.status_code == 200: data = response.json() print(data) else: print("So'rovni bajarish xatosi:", response.status_code) Ushbu misolda, https://api.example.com/data URL-ga GET so'rovini amalga oshiradi va javobni response o'zgaruvchida saqlaydi. So'ngra javobning holat kodi 200-ni tekshiradi, ya'ni so'rov muvaffaqiyatli bajarilganligini anglatadi. Agar so'rov muvaffaqiyatli bo'lsa, javob JSON formatga aylantiriladi va ekranda ko'rsatiladi
spam fails_task lang_mismatch pii not_appropriate hate_speech sexual_content quality toxicity humor helpfulness creativity violence