import os from dotenv import load_dotenv from yosoai import send_request load_dotenv() query_info = ''' Given this code extract all the information in a json format about the news.

Booker show with 52 points, whoever has the most games over 50

Standings

The Suns' No. 1 dominated the match won in New Orleans, scoring 52 points. It's about...

28 foto
Partite con 50+ punti: Booker in Top-20
''' def main(): # Get OpenAI API key from environment variables openai_key = os.getenv("API_KEY") if not openai_key: print("Error: OpenAI API key not found in environment variables.") return # Example values for the request request_settings = [ { "title": "title", "type": "str", "description": "Title of the news" } ] # Choose the desired model and other parameters selected_model = "gpt-3.5-turbo" temperature_value = 0.7 # Invoke send_request function result = send_request(openai_key, query_info, request_settings, selected_model, temperature_value, 'cl100k_base') # Print or process the result as needed print("Result:", result) if __name__ == "__main__": main()