Skip to content

Commit

Permalink
fix: set response Content-Type to text/event-stream
Browse files Browse the repository at this point in the history
  • Loading branch information
ShinChven committed Aug 12, 2023
1 parent 4bfb817 commit 1047f68
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion express-openai-azure-proxy.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ app.all('/v1/models', async (req, res) => {
}

const json = JSON.stringify(data, null, 2);
res.setHeader('Content-Type', 'application/json');
res.setHeader('Content-Type', 'text/event-stream');
res.send(json);
});

Expand Down

0 comments on commit 1047f68

Please sign in to comment.