We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6fa726a commit 562675aCopy full SHA for 562675a
package.json
@@ -1,6 +1,6 @@
1
{
2
"name": "@nillion/nilai-ts",
3
- "version": "0.0.0-alpha.2",
+ "version": "0.0.0-alpha.3",
4
"description": "Nilai Typescript SDK",
5
"type": "module",
6
"main": "dist/index.js",
src/client.ts
@@ -61,6 +61,8 @@ export class NilaiOpenAIClient extends OpenAI {
61
break;
62
case AuthType.DELEGATION_TOKEN:
63
processedOptions.apiKey = "<placeholder>";
64
+ // Because no real API key is needed, we can allow the browser to use it
65
+ processedOptions.dangerouslyAllowBrowser = true;
66
67
default:
68
throw new Error(`Invalid auth type: ${authType}`);
0 commit comments