import requests from colorama import Fore, Style, init init(autoreset=True) print(Fore.RED +""" ━━━━━━━━━━━━━━━━━━━━━━ ________________________ __ ____/__ __ \__ __/ _ / __ __ /_/ /_ / / /_/ / _ ____/_ / \____/ /_/ /_/ ━━━━━━━━━━━━━━━━━━━━━━ """) print(Fore.YELLOW+"━━━━━━━━━━━━━━━━━━━━━━") print(Fore.YELLOW+"@pythonwortex") print(Fore.YELLOW+"━━━━━━━━━━━━━━━━━━━━━━") print() print() while True: soru = input(Fore.CYAN + "Soru |: " + Style.RESET_ALL) gpt = requests.post( 'https://gpt.sockets.lol/gpt', headers={'content-type': 'application/json'}, json={'model': 'gpt-4o', 'prompt': soru, 'messages': [], 'markdown': False} ) if gpt.status_code == 200: response_data = gpt.json() if "response" in response_data and "choices" in response_data["response"]: content = response_data["response"]["choices"][0]["message"]["content"] print(Fore.MAGENTA + "Cevap |: " + Style.RESET_ALL + content) print()