= client.chat.completions.create( model="gpt-4o", messages=[ { "role": "user", "content": [ { "type": "text", "text": "Gib mir eine Liste aller Porsche-Modelle und deren Erscheinungsjahr in JSON„ } ] }, { "role": "assistant", "content": [ { "type": "text", "text": "\n{\n \"Porsche_356\": 1948,\n \"Porsche_550_Spyder\": 1953,\n \"Porsche_911\": 1964,…}" } ] } ], response_format={ "type": "json_object" } ) { "Porsche_356": 1948, "Porsche_550_Spyder": 1953, "Porsche_911": 1964, "Porsche_912": 1965, "Porsche_914": 1969, "Porsche_924": 1976, "Porsche_928": 1977, "Porsche_944": 1982, "Porsche_959": 1986, "Porsche_964": 1989, "Porsche_968": 1991, "Porsche_993": 1994, "Porsche_Boxster": 1996, "Porsche_Cayenne": 2002, "Porsche_Carrera_GT": 2003, "Porsche_997": 2004, "Porsche_Cayman": 2005, "Porsche_Panamera": 2009, … }