@@ -11,7 +11,7 @@ describe("NilaiOpenAIClient", () => {
1111
1212 beforeEach ( ( ) => {
1313 client = new NilaiOpenAIClient ( {
14- baseURL : "https://nilai-a779.nillion.network/nuc/ v1/" ,
14+ baseURL : "https://nilai-a779.nillion.network/v1/" ,
1515 apiKey : process . env . NILLION_API_KEY || "" ,
1616 } ) ;
1717 } ) ;
@@ -20,7 +20,7 @@ describe("NilaiOpenAIClient", () => {
2020 it ( "should add authorization header via prepareRequest" , async ( ) => {
2121 try {
2222 const _completion = await client . chat . completions . create ( {
23- model : "meta-llama/Llama-3.1-8B-Instruct " ,
23+ model : "google/gemma-3-27b-it " ,
2424 messages : [
2525 { role : "system" , content : "Talk like a pirate." } ,
2626 { role : "user" , content : "Are semicolons optional in JavaScript?" } ,
@@ -176,9 +176,10 @@ describe("authentication modes", () => {
176176 beforeEach ( ( ) => {
177177 client = new NilaiOpenAIClient ( {
178178 authType : AuthType . API_KEY ,
179- baseURL : "https://nilai-a779.nillion.network/nuc/ v1/" ,
179+ baseURL : "https://nilai-a779.nillion.network/v1/" ,
180180 apiKey :
181- "c2b961027b26c38824bdc2eccf9cdada6646d1b87c665ddf235c33a57335bd47" ,
181+ process . env . NILLION_API_KEY ||
182+ "Nillion2025" , // Use a default key for testing purposes
182183 } ) ;
183184 } ) ;
184185
@@ -222,7 +223,7 @@ describe("OpenAI", () => {
222223 it ( "should add authorization header via prepareRequest" , async ( ) => {
223224 try {
224225 const _completion = await client . chat . completions . create ( {
225- model : "meta-llama/Llama-3.1-8B-Instruct " ,
226+ model : "google/gemma-3-27b-it " ,
226227 messages : [
227228 { role : "system" , content : "Talk like a pirate." } ,
228229 { role : "user" , content : "Are semicolons optional in JavaScript?" } ,
@@ -251,7 +252,7 @@ describe("newClient", () => {
251252 it ( "should add authorization header via prepareRequest" , async ( ) => {
252253 try {
253254 const _completion = await client . chat . completions . create ( {
254- model : "meta-llama/Llama-3.1-8B-Instruct " ,
255+ model : "google/gemma-3-27b-it " ,
255256 messages : [
256257 { role : "system" , content : "Talk like a pirate." } ,
257258 { role : "user" , content : "Are semicolons optional in JavaScript?" } ,
0 commit comments