Skip to content

Commit

Permalink
moved up SIT return for genAI
Browse files Browse the repository at this point in the history
  • Loading branch information
bwsarge committed Oct 14, 2023
1 parent e23e80c commit b62fa70
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions functions/src/definitions/common/genAI.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,9 @@ async function rationaliseMessage(message: string, category: string) {
if (category.includes("irrelevant") || category === "unsure") {
return null
}

if (env === "SIT") {
return "This is a rationalisation"
}
let meaningfulLength: number = 300
switch (category) {
case "illicit":
Expand All @@ -93,9 +95,6 @@ async function rationaliseMessage(message: string, category: string) {
//don't bother with rationalisation if remaining message is too short to be meaningful.
return null
}
if (env === "SIT") {
return "This is a rationalisation"
}
try {
const rationalisationHyperparameters = hyperparameters?.rationalisation
const model: string = rationalisationHyperparameters.model
Expand Down

0 comments on commit b62fa70

Please sign in to comment.