Skip to content

Commit

Permalink
Disable AI summaries for now
Browse files Browse the repository at this point in the history
  • Loading branch information
philpax authored Mar 18, 2024
1 parent e11ea22 commit 95511b4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,9 +97,11 @@ async function condenseText(body, token) {
*/
}

// This can be turned off if the account has run out of money or if some other issue has come up
const AI_SUMMARY_ENABLED = false;
async function sendWebHook(content, name, version, reporter, exception, dhash, env) {
var condensed = "User Feedback";
if (content.length > 10 && content.length < 1200) {
if (AI_SUMMARY_ENABLED && content.length > 10 && content.length < 1200) {
try
{
const aiCondensed = await condenseText(content, env.OPENAI_TOKEN);
Expand Down

0 comments on commit 95511b4

Please sign in to comment.