diff --git a/services/modules/quen3/quen3.js b/services/modules/quen3/qwen3.js similarity index 100% rename from services/modules/quen3/quen3.js rename to services/modules/quen3/qwen3.js diff --git a/test/unit/test.js b/test/unit/test.js index fde00af..b5c12ee 100644 --- a/test/unit/test.js +++ b/test/unit/test.js @@ -155,6 +155,28 @@ describe("Unit Tests", function() { }) }) + + it("Gemini", function (done){ + mapFunctions.get("llm-gemini").function({inputTranscriptPath: summarizePath, documentTypePath: "./storage/documentType/followup_report.txt", language: "en"}).then(resp => { + done() + }).catch(err => { + if(err.includes("(503)")){done()} // Error 503 is gemini overload, so an Error that they can at any time throw at us which would crash the pipeline, so we just ignore it and we just imagine that the test passed + else{ + console.log(err); + done(err) + } + }) + }) + + it("Qwen3", function (done){ + mapFunctions.get("qwen3-235b-a22b").function({inputTranscriptPath: summarizePath, documentTypePath: "./storage/documentType/followup_report.txt", language: "en"}).then(resp => { + done() + }).catch(err => { + done(err) + }) + }) + + it("ChatGPT (Nonexistant Type File)", function (done){ mapFunctions.get("llm-saia_openai_gpt").function({inputTranscriptPath: summarizePath, documentTypePath: "a", language: "en"}).then(resp => { done("Didnt crash") @@ -162,16 +184,6 @@ describe("Unit Tests", function() { done() }) }) - - it("Gemini", function (done){ - mapFunctions.get("llm-gemini").function({inputTranscriptPath: summarizePath, documentTypePath: "./storage/documentType/followup_report.txt", language: "en"}).then(resp => { - done() - }).catch(err => { - if(err.includes("Gemini API error (503)")){done()} // Error 503 is gemini overload, so an Error that they can at any time throw at us which would crash the pipeline, so we just ignore it and we just imagine that the test passed - else{done(err)} - }) - }) - it("Gemini (Nonexistant Type File)", function (done){ mapFunctions.get("llm-gemini").function({inputTranscriptPath: summarizePath, documentTypePath: "a", language: "en"}).then(resp => { done("Didnt crash") @@ -179,6 +191,13 @@ describe("Unit Tests", function() { done() }) }) + it("Qwen3 (Nonexistant Type File)", function (done){ + mapFunctions.get("qwen3-235b-a22b").function({inputTranscriptPath: summarizePath, documentTypePath: "a", language: "en"}).then(resp => { + done("Didnt crash") + }).catch(err => { + done() + }) + }) }) describe("Audio Snippet", function() {