@@ -21,7 +21,7 @@ import "dotenv/config";
2121
2222// Initialize client with API key from environment variables
2323const client = new NilaiOpenAIClient ({
24- baseURL: " https://nilai-a779.nillion.network/nuc/ v1/" ,
24+ baseURL: " https://nilai-a779.nillion.network/v1/" ,
2525 apiKey: process .env .NILLION_API_KEY ,
2626});
2727
@@ -46,7 +46,7 @@ import "dotenv/config";
4646
4747// Set up your API key in a .env file or environment variable
4848const client = new NilaiOpenAIClient ({
49- baseURL: " https://nilai-a779.nillion.network/nuc/ v1/" ,
49+ baseURL: " https://nilai-a779.nillion.network/v1/" ,
5050 apiKey: process .env .NILLION_API_KEY , // Your private key
5151});
5252
@@ -90,7 +90,7 @@ const server = new DelegationTokenServer(process.env.NILLION_API_KEY, {
9090
9191// Client-side: Initialize client for delegation token mode
9292const client = new NilaiOpenAIClient ({
93- baseURL: " https://nilai-a779.nillion.network/nuc/ v1/" ,
93+ baseURL: " https://nilai-a779.nillion.network/v1/" ,
9494 authType: AuthType .DELEGATION_TOKEN ,
9595});
9696
@@ -137,7 +137,7 @@ import "dotenv/config";
137137import { NilaiOpenAIClient } from " @nillion/nilai-ts" ;
138138
139139const client = new NilaiOpenAIClient ({
140- baseURL: " https://nilai-a779.nillion.network/nuc/ v1/" ,
140+ baseURL: " https://nilai-a779.nillion.network/v1/" ,
141141 apiKey: process .env .NILLION_API_KEY ,
142142});
143143```
0 commit comments