From 30cb34826907a4900666082f6fad4cd1dd7ab14c Mon Sep 17 00:00:00 2001 From: Ryan Voots Date: Sun, 7 Jan 2024 10:03:53 -0500 Subject: [PATCH] serves things up sort of --- lib/OpenAIAsync/Server.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/OpenAIAsync/Server.pm b/lib/OpenAIAsync/Server.pm index 56d8568..7579552 100644 --- a/lib/OpenAIAsync/Server.pm +++ b/lib/OpenAIAsync/Server.pm @@ -268,7 +268,7 @@ class OpenAIAsync::Server :repr(HASH) :strict(params) { method _resp_custom($req, $code, $str, $json = 0) { my $response = HTTP::Response->new( $code ); - $response->content_type('text/plain') unless $json; + $response->content_type('text/plain') unless $json; # TODO this needs to be more flexible due to audio outputs $response->content_type('application/json') if $json; $response->add_content($str); $response->content_length(length $str);