$VAR1 = bless( { '_protocol' => 'HTTP/1.1', '_content' => '{"status":"SUCCESS","data":"promt","response":{"id":"xxx","object":"chat.completion","created":1690752087,"model":"gpt-3.5-turbo-0613","choices":[{"index":0,"message":{"role":"assistant","content":"{\\n \\"related_words\\": [\\n \\"Bundeskanzlerin\\",\\n \\"Politik\\",\\n \\"Deutschland\\",\\n \\"CDU\\",\\n \\"Kanzleramt\\",\\n \\"Bundesregierung\\",\\n \\"Politikerin\\",\\n \\"Bundestag\\",\\n \\"Regierung\\",\\n \\"Partei\\",\\n \\"Wahl\\",\\n \\"Bundeskanzler\\",\\n \\"Europäische Union\\",\\n \\"Bundesrepublik\\",\\n \\"Europa\\",\\n \\"Führungsperson\\",\\n \\"Staatschefin\\",\\n \\"Frauenpolitik\\",\\n \\"G8-Gipfel\\",\\n \\"Macht\\"\\n ]\\n}"},"finish_reason":"stop"}],"usage":{"prompt_tokens":48,"completion_tokens":145,"total_tokens":193}}}', '_msg' => 'OK', '_request' => bless( { '_content' => '{"text":"prompt"}', '_headers' => bless( { 'user-agent' => 'libwww-perl/6.62', 'content-type' => 'application/json' }, 'HTTP::Headers' ), '_uri_canonical' => bless( do{\(my $o = 'http://127.0.0.1:8000/complete/')}, 'URI::http' ), '_method' => 'POST', '_uri' => $VAR1->{'_request'}{'_uri_canonical'} }, 'HTTP::Request' ), '_rc' => '200', '_headers' => bless( { 'client-peer' => '127.0.0.1:8000', 'client-response-num' => 1, '::std_case' => { 'client-date' => 'Client-Date', 'client-peer' => 'Client-Peer', 'client-response-num' => 'Client-Response-Num' }, 'content-length' => '894', 'connection' => 'close', 'date' => 'Sun, 30 Jul 2023 21:21:25 GMT', 'client-date' => 'Sun, 30 Jul 2023 21:21:31 GMT', 'content-type' => 'application/json', 'server' => 'uvicorn' }, 'HTTP::Headers' ) }, 'HTTP::Response' ); JSON data was successfully returned! malformed UTF-8 character in JSON string, at character offset 242 (before "\x{fffd}che Union",\n...") at /Users/post.pl line 29.