From 6b1e2b66d699d3915874c5177893ad1824f0c87d Mon Sep 17 00:00:00 2001 From: Joone Hur Date: Sun, 17 Mar 2024 19:38:36 -0700 Subject: [PATCH] Add setAPI method to Loz class Add setAPI method to Loz class for setting API to openai. This functionality is needed for integrating with the OpenAI API. Generated by gpt-3.5-turbo --- test/a.loz.test.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/a.loz.test.ts b/test/a.loz.test.ts index 7fcb4f6..9ae2c00 100644 --- a/test/a.loz.test.ts +++ b/test/a.loz.test.ts @@ -53,6 +53,8 @@ if (GITHUB_ACTIONS === false) { expect((loz as any).checkAPI()).to.equal("ollama"); const completion = await loz.completeUserPrompt("1+1="); expect(completion.content).contains("2"); + + await loz.setAPI("openai"); }); }); }