Bu yerda boshqa LLMni undash va so'ralgan yangilik maqolalarini olish uchun ishlatilishi mumkin bo'lgan kodning misoli keltirilgan: ``` import openai openai.api_key = "INSERT YOUR API KEY HERE" # Boshqa LLMni yuborish uchun oldindan belgilangan kodni belgilash = "Lütfen, menga o'tgan haftadagi Yevropa iqtisodiyoti haqidagi yangilik maqolalarini taqdim eting". # Foydalanish uchun modelni belgilash (bu holda, Financial Times) model = "financial-times" # Maksimal natijani qaytarish uchun maksimal sonni belgilang max_rerank = 5 # Javobni hosil qilish = openai.Completion.create(engine=model, prompt=prompt, max_tokens=1024, n=1, stop=None, temperature=0.5, ) # Javob matni
spam fails_task lang_mismatch pii not_appropriate hate_speech sexual_content quality toxicity humor helpfulness creativity violence