Skip to content

Commit 6c4e1d9

Browse files
committed
Update the module with proxy server
1 parent 68341fa commit 6c4e1d9

File tree

4 files changed

+10
-23
lines changed

4 files changed

+10
-23
lines changed

docusaurus.config.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,6 @@ const config: Config = {
246246
{ rootDir: ".integrationBuilderCache" },
247247
],
248248
path.resolve(__dirname, "plugins", "node-polyfills"),
249-
path.resolve(__dirname, "plugins", "env-variables-plugin"),
250249
[
251250
"@docusaurus/plugin-client-redirects",
252251
{

package.json

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,15 +25,22 @@
2525
"@docusaurus/remark-plugin-npm2yarn": "^3.8.0",
2626
"@docusaurus/theme-common": "^3.8.0",
2727
"@docusaurus/theme-search-algolia": "^3.8.0",
28+
<<<<<<< HEAD
2829
"@lottiefiles/react-lottie-player": "^3.5.4",
2930
"@mdx-js/react": "^3.0.1",
3031
"@radix-ui/react-icons": "^1.3.0",
3132
"@radix-ui/react-select": "^2.1.1",
33+
=======
34+
"@lottiefiles/react-lottie-player": "^3.6.0",
35+
"@mdx-js/react": "^3.1.0",
36+
"@radix-ui/react-icons": "^1.3.2",
37+
"@radix-ui/react-select": "^2.2.5",
38+
>>>>>>> 1deb5a31 (Update the module with proxy server)
3239
"axios": "^1.7.2",
3340
"classnames": "^2.5.1",
3441
"clsx": "^1.2.1",
3542
"copy-to-clipboard": "^3.3.3",
36-
"docusaurus-openai-search": "^2.0.1",
43+
"docusaurus-openai-search": "^3.1.0",
3744
"gray-matter": "^4.0.3",
3845
"hast-util-is-element": "^1.1.0",
3946
"joi": "^17.13.3",
@@ -58,7 +65,7 @@
5865
"@docusaurus/tsconfig": "^3.8.0",
5966
"@toruslabs/eslint-config-react": "^3.4.1",
6067
"@tsconfig/docusaurus": "^2.0.3",
61-
"@types/classnames": "^2.3.1",
68+
"@types/classnames": "^2.3.4",
6269
"@types/mdx-js__react": "^1.5.8",
6370
"@types/parse-numeric-range": "^0.0.1",
6471
"@types/react": "^18.3.1",

plugins/env-variables-plugin/index.js

Lines changed: 0 additions & 17 deletions
This file was deleted.

src/theme/SearchBar/index.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@ export default function SearchBar() {
77
siteConfig: { themeConfig },
88
} = useDocusaurusContext();
99

10-
const apiKey = typeof window !== "undefined" ? (window as any).OPENAI_API_KEY || "" : "";
11-
1210
const systemPrompt =
1311
"You are a helpful Web3Auth expert assistant. Your goal is to provide detailed, accurate information about Web3Auth's authentication solutions, SDKs, and integrations to developers.\n\n" +
1412
"RESPONSE GUIDELINES:\n" +
@@ -30,7 +28,7 @@ export default function SearchBar() {
3028
const aiConfig = {
3129
// OpenAI API settings
3230
openAI: {
33-
apiKey,
31+
proxyUrl: "https://docusaurus-openai-search-backend.vercel.app",
3432
model: "gpt-4.1-nano",
3533
maxTokens: 32768,
3634
temperature: 0.3,

0 commit comments

Comments
 (0)