Spaces:
Paused
Paused
matt HOFFNER
commited on
Commit
·
ae34ac2
1
Parent(s):
9f076f8
add ai search call
Browse files- package-lock.json +156 -0
- package.json +1 -0
- src/app/search/web/page.jsx +1 -0
- tsconfig.json +0 -35
package-lock.json
CHANGED
|
@@ -14,6 +14,7 @@
|
|
| 14 |
"eventsource-parser": "^1.0.0",
|
| 15 |
"html-react-parser": "^3.0.9",
|
| 16 |
"next": "13.1.6",
|
|
|
|
| 17 |
"react": "18.2.0",
|
| 18 |
"react-dom": "18.2.0",
|
| 19 |
"react-icons": "^4.7.1",
|
|
@@ -725,6 +726,11 @@
|
|
| 725 |
"resolved": "https://registry.npmjs.org/ast-types-flow/-/ast-types-flow-0.0.7.tgz",
|
| 726 |
"integrity": "sha512-eBvWn1lvIApYMhzQMsu9ciLfkBY499mFZlNqG+/9WR7PVlroQw0vG30cOQQbaKz3sCEc44TAOu2ykzqXSNnwag=="
|
| 727 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 728 |
"node_modules/autoprefixer": {
|
| 729 |
"version": "10.4.13",
|
| 730 |
"resolved": "https://registry.npmjs.org/autoprefixer/-/autoprefixer-10.4.13.tgz",
|
|
@@ -777,6 +783,14 @@
|
|
| 777 |
"node": ">=4"
|
| 778 |
}
|
| 779 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 780 |
"node_modules/axobject-query": {
|
| 781 |
"version": "3.1.1",
|
| 782 |
"resolved": "https://registry.npmjs.org/axobject-query/-/axobject-query-3.1.1.tgz",
|
|
@@ -984,6 +998,17 @@
|
|
| 984 |
"resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz",
|
| 985 |
"integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA=="
|
| 986 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 987 |
"node_modules/comma-separated-tokens": {
|
| 988 |
"version": "2.0.3",
|
| 989 |
"resolved": "https://registry.npmjs.org/comma-separated-tokens/-/comma-separated-tokens-2.0.3.tgz",
|
|
@@ -1125,6 +1150,14 @@
|
|
| 1125 |
"url": "https://github.com/sponsors/ljharb"
|
| 1126 |
}
|
| 1127 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1128 |
"node_modules/dequal": {
|
| 1129 |
"version": "2.0.3",
|
| 1130 |
"resolved": "https://registry.npmjs.org/dequal/-/dequal-2.0.3.tgz",
|
|
@@ -1955,6 +1988,25 @@
|
|
| 1955 |
"resolved": "https://registry.npmjs.org/flatted/-/flatted-3.2.7.tgz",
|
| 1956 |
"integrity": "sha512-5nqDSxl8nn5BSNxyR3n4I6eDmbolI6WT+QqR547RwxQapgjQBmtktdP+HTBb/a/zLsbzERTONyUB5pefh5TtjQ=="
|
| 1957 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1958 |
"node_modules/for-each": {
|
| 1959 |
"version": "0.3.3",
|
| 1960 |
"resolved": "https://registry.npmjs.org/for-each/-/for-each-0.3.3.tgz",
|
|
@@ -1963,6 +2015,19 @@
|
|
| 1963 |
"is-callable": "^1.1.3"
|
| 1964 |
}
|
| 1965 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1966 |
"node_modules/fraction.js": {
|
| 1967 |
"version": "4.2.0",
|
| 1968 |
"resolved": "https://registry.npmjs.org/fraction.js/-/fraction.js-4.2.0.tgz",
|
|
@@ -3355,6 +3420,25 @@
|
|
| 3355 |
"node": ">=8.6"
|
| 3356 |
}
|
| 3357 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3358 |
"node_modules/minimatch": {
|
| 3359 |
"version": "3.1.2",
|
| 3360 |
"resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz",
|
|
@@ -3647,6 +3731,15 @@
|
|
| 3647 |
"url": "https://github.com/sponsors/sindresorhus"
|
| 3648 |
}
|
| 3649 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3650 |
"node_modules/optionator": {
|
| 3651 |
"version": "0.9.1",
|
| 3652 |
"resolved": "https://registry.npmjs.org/optionator/-/optionator-0.9.1.tgz",
|
|
@@ -5369,6 +5462,11 @@
|
|
| 5369 |
"resolved": "https://registry.npmjs.org/ast-types-flow/-/ast-types-flow-0.0.7.tgz",
|
| 5370 |
"integrity": "sha512-eBvWn1lvIApYMhzQMsu9ciLfkBY499mFZlNqG+/9WR7PVlroQw0vG30cOQQbaKz3sCEc44TAOu2ykzqXSNnwag=="
|
| 5371 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 5372 |
"autoprefixer": {
|
| 5373 |
"version": "10.4.13",
|
| 5374 |
"resolved": "https://registry.npmjs.org/autoprefixer/-/autoprefixer-10.4.13.tgz",
|
|
@@ -5393,6 +5491,14 @@
|
|
| 5393 |
"resolved": "https://registry.npmjs.org/axe-core/-/axe-core-4.6.3.tgz",
|
| 5394 |
"integrity": "sha512-/BQzOX780JhsxDnPpH4ZiyrJAzcd8AfzFPkv+89veFSr1rcMjuq2JDCwypKaPeB6ljHp9KjXhPpjgCvQlWYuqg=="
|
| 5395 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 5396 |
"axobject-query": {
|
| 5397 |
"version": "3.1.1",
|
| 5398 |
"resolved": "https://registry.npmjs.org/axobject-query/-/axobject-query-3.1.1.tgz",
|
|
@@ -5530,6 +5636,14 @@
|
|
| 5530 |
"resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz",
|
| 5531 |
"integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA=="
|
| 5532 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 5533 |
"comma-separated-tokens": {
|
| 5534 |
"version": "2.0.3",
|
| 5535 |
"resolved": "https://registry.npmjs.org/comma-separated-tokens/-/comma-separated-tokens-2.0.3.tgz",
|
|
@@ -5631,6 +5745,11 @@
|
|
| 5631 |
"integrity": "sha512-hsBd2qSVCRE+5PmNdHt1uzyrFu5d3RwmFDKzyNZMFq/EwDNJF7Ee5+D5oEKF0hU6LhtoUF1macFvOe4AskQC1Q==",
|
| 5632 |
"dev": true
|
| 5633 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 5634 |
"dequal": {
|
| 5635 |
"version": "2.0.3",
|
| 5636 |
"resolved": "https://registry.npmjs.org/dequal/-/dequal-2.0.3.tgz",
|
|
@@ -6253,6 +6372,11 @@
|
|
| 6253 |
"resolved": "https://registry.npmjs.org/flatted/-/flatted-3.2.7.tgz",
|
| 6254 |
"integrity": "sha512-5nqDSxl8nn5BSNxyR3n4I6eDmbolI6WT+QqR547RwxQapgjQBmtktdP+HTBb/a/zLsbzERTONyUB5pefh5TtjQ=="
|
| 6255 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 6256 |
"for-each": {
|
| 6257 |
"version": "0.3.3",
|
| 6258 |
"resolved": "https://registry.npmjs.org/for-each/-/for-each-0.3.3.tgz",
|
|
@@ -6261,6 +6385,16 @@
|
|
| 6261 |
"is-callable": "^1.1.3"
|
| 6262 |
}
|
| 6263 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 6264 |
"fraction.js": {
|
| 6265 |
"version": "4.2.0",
|
| 6266 |
"resolved": "https://registry.npmjs.org/fraction.js/-/fraction.js-4.2.0.tgz",
|
|
@@ -7126,6 +7260,19 @@
|
|
| 7126 |
"picomatch": "^2.3.1"
|
| 7127 |
}
|
| 7128 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 7129 |
"minimatch": {
|
| 7130 |
"version": "3.1.2",
|
| 7131 |
"resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz",
|
|
@@ -7312,6 +7459,15 @@
|
|
| 7312 |
"is-wsl": "^2.2.0"
|
| 7313 |
}
|
| 7314 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 7315 |
"optionator": {
|
| 7316 |
"version": "0.9.1",
|
| 7317 |
"resolved": "https://registry.npmjs.org/optionator/-/optionator-0.9.1.tgz",
|
|
|
|
| 14 |
"eventsource-parser": "^1.0.0",
|
| 15 |
"html-react-parser": "^3.0.9",
|
| 16 |
"next": "13.1.6",
|
| 17 |
+
"openai": "^3.3.0",
|
| 18 |
"react": "18.2.0",
|
| 19 |
"react-dom": "18.2.0",
|
| 20 |
"react-icons": "^4.7.1",
|
|
|
|
| 726 |
"resolved": "https://registry.npmjs.org/ast-types-flow/-/ast-types-flow-0.0.7.tgz",
|
| 727 |
"integrity": "sha512-eBvWn1lvIApYMhzQMsu9ciLfkBY499mFZlNqG+/9WR7PVlroQw0vG30cOQQbaKz3sCEc44TAOu2ykzqXSNnwag=="
|
| 728 |
},
|
| 729 |
+
"node_modules/asynckit": {
|
| 730 |
+
"version": "0.4.0",
|
| 731 |
+
"resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz",
|
| 732 |
+
"integrity": "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q=="
|
| 733 |
+
},
|
| 734 |
"node_modules/autoprefixer": {
|
| 735 |
"version": "10.4.13",
|
| 736 |
"resolved": "https://registry.npmjs.org/autoprefixer/-/autoprefixer-10.4.13.tgz",
|
|
|
|
| 783 |
"node": ">=4"
|
| 784 |
}
|
| 785 |
},
|
| 786 |
+
"node_modules/axios": {
|
| 787 |
+
"version": "0.26.1",
|
| 788 |
+
"resolved": "https://registry.npmjs.org/axios/-/axios-0.26.1.tgz",
|
| 789 |
+
"integrity": "sha512-fPwcX4EvnSHuInCMItEhAGnaSEXRBjtzh9fOtsE6E1G6p7vl7edEeZe11QHf18+6+9gR5PbKV/sGKNaD8YaMeA==",
|
| 790 |
+
"dependencies": {
|
| 791 |
+
"follow-redirects": "^1.14.8"
|
| 792 |
+
}
|
| 793 |
+
},
|
| 794 |
"node_modules/axobject-query": {
|
| 795 |
"version": "3.1.1",
|
| 796 |
"resolved": "https://registry.npmjs.org/axobject-query/-/axobject-query-3.1.1.tgz",
|
|
|
|
| 998 |
"resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz",
|
| 999 |
"integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA=="
|
| 1000 |
},
|
| 1001 |
+
"node_modules/combined-stream": {
|
| 1002 |
+
"version": "1.0.8",
|
| 1003 |
+
"resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz",
|
| 1004 |
+
"integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==",
|
| 1005 |
+
"dependencies": {
|
| 1006 |
+
"delayed-stream": "~1.0.0"
|
| 1007 |
+
},
|
| 1008 |
+
"engines": {
|
| 1009 |
+
"node": ">= 0.8"
|
| 1010 |
+
}
|
| 1011 |
+
},
|
| 1012 |
"node_modules/comma-separated-tokens": {
|
| 1013 |
"version": "2.0.3",
|
| 1014 |
"resolved": "https://registry.npmjs.org/comma-separated-tokens/-/comma-separated-tokens-2.0.3.tgz",
|
|
|
|
| 1150 |
"url": "https://github.com/sponsors/ljharb"
|
| 1151 |
}
|
| 1152 |
},
|
| 1153 |
+
"node_modules/delayed-stream": {
|
| 1154 |
+
"version": "1.0.0",
|
| 1155 |
+
"resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz",
|
| 1156 |
+
"integrity": "sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ==",
|
| 1157 |
+
"engines": {
|
| 1158 |
+
"node": ">=0.4.0"
|
| 1159 |
+
}
|
| 1160 |
+
},
|
| 1161 |
"node_modules/dequal": {
|
| 1162 |
"version": "2.0.3",
|
| 1163 |
"resolved": "https://registry.npmjs.org/dequal/-/dequal-2.0.3.tgz",
|
|
|
|
| 1988 |
"resolved": "https://registry.npmjs.org/flatted/-/flatted-3.2.7.tgz",
|
| 1989 |
"integrity": "sha512-5nqDSxl8nn5BSNxyR3n4I6eDmbolI6WT+QqR547RwxQapgjQBmtktdP+HTBb/a/zLsbzERTONyUB5pefh5TtjQ=="
|
| 1990 |
},
|
| 1991 |
+
"node_modules/follow-redirects": {
|
| 1992 |
+
"version": "1.15.2",
|
| 1993 |
+
"resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.2.tgz",
|
| 1994 |
+
"integrity": "sha512-VQLG33o04KaQ8uYi2tVNbdrWp1QWxNNea+nmIB4EVM28v0hmP17z7aG1+wAkNzVq4KeXTq3221ye5qTJP91JwA==",
|
| 1995 |
+
"funding": [
|
| 1996 |
+
{
|
| 1997 |
+
"type": "individual",
|
| 1998 |
+
"url": "https://github.com/sponsors/RubenVerborgh"
|
| 1999 |
+
}
|
| 2000 |
+
],
|
| 2001 |
+
"engines": {
|
| 2002 |
+
"node": ">=4.0"
|
| 2003 |
+
},
|
| 2004 |
+
"peerDependenciesMeta": {
|
| 2005 |
+
"debug": {
|
| 2006 |
+
"optional": true
|
| 2007 |
+
}
|
| 2008 |
+
}
|
| 2009 |
+
},
|
| 2010 |
"node_modules/for-each": {
|
| 2011 |
"version": "0.3.3",
|
| 2012 |
"resolved": "https://registry.npmjs.org/for-each/-/for-each-0.3.3.tgz",
|
|
|
|
| 2015 |
"is-callable": "^1.1.3"
|
| 2016 |
}
|
| 2017 |
},
|
| 2018 |
+
"node_modules/form-data": {
|
| 2019 |
+
"version": "4.0.0",
|
| 2020 |
+
"resolved": "https://registry.npmjs.org/form-data/-/form-data-4.0.0.tgz",
|
| 2021 |
+
"integrity": "sha512-ETEklSGi5t0QMZuiXoA/Q6vcnxcLQP5vdugSpuAyi6SVGi2clPPp+xgEhuMaHC+zGgn31Kd235W35f7Hykkaww==",
|
| 2022 |
+
"dependencies": {
|
| 2023 |
+
"asynckit": "^0.4.0",
|
| 2024 |
+
"combined-stream": "^1.0.8",
|
| 2025 |
+
"mime-types": "^2.1.12"
|
| 2026 |
+
},
|
| 2027 |
+
"engines": {
|
| 2028 |
+
"node": ">= 6"
|
| 2029 |
+
}
|
| 2030 |
+
},
|
| 2031 |
"node_modules/fraction.js": {
|
| 2032 |
"version": "4.2.0",
|
| 2033 |
"resolved": "https://registry.npmjs.org/fraction.js/-/fraction.js-4.2.0.tgz",
|
|
|
|
| 3420 |
"node": ">=8.6"
|
| 3421 |
}
|
| 3422 |
},
|
| 3423 |
+
"node_modules/mime-db": {
|
| 3424 |
+
"version": "1.52.0",
|
| 3425 |
+
"resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz",
|
| 3426 |
+
"integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==",
|
| 3427 |
+
"engines": {
|
| 3428 |
+
"node": ">= 0.6"
|
| 3429 |
+
}
|
| 3430 |
+
},
|
| 3431 |
+
"node_modules/mime-types": {
|
| 3432 |
+
"version": "2.1.35",
|
| 3433 |
+
"resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz",
|
| 3434 |
+
"integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==",
|
| 3435 |
+
"dependencies": {
|
| 3436 |
+
"mime-db": "1.52.0"
|
| 3437 |
+
},
|
| 3438 |
+
"engines": {
|
| 3439 |
+
"node": ">= 0.6"
|
| 3440 |
+
}
|
| 3441 |
+
},
|
| 3442 |
"node_modules/minimatch": {
|
| 3443 |
"version": "3.1.2",
|
| 3444 |
"resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz",
|
|
|
|
| 3731 |
"url": "https://github.com/sponsors/sindresorhus"
|
| 3732 |
}
|
| 3733 |
},
|
| 3734 |
+
"node_modules/openai": {
|
| 3735 |
+
"version": "3.3.0",
|
| 3736 |
+
"resolved": "https://registry.npmjs.org/openai/-/openai-3.3.0.tgz",
|
| 3737 |
+
"integrity": "sha512-uqxI/Au+aPRnsaQRe8CojU0eCR7I0mBiKjD3sNMzY6DaC1ZVrc85u98mtJW6voDug8fgGN+DIZmTDxTthxb7dQ==",
|
| 3738 |
+
"dependencies": {
|
| 3739 |
+
"axios": "^0.26.0",
|
| 3740 |
+
"form-data": "^4.0.0"
|
| 3741 |
+
}
|
| 3742 |
+
},
|
| 3743 |
"node_modules/optionator": {
|
| 3744 |
"version": "0.9.1",
|
| 3745 |
"resolved": "https://registry.npmjs.org/optionator/-/optionator-0.9.1.tgz",
|
|
|
|
| 5462 |
"resolved": "https://registry.npmjs.org/ast-types-flow/-/ast-types-flow-0.0.7.tgz",
|
| 5463 |
"integrity": "sha512-eBvWn1lvIApYMhzQMsu9ciLfkBY499mFZlNqG+/9WR7PVlroQw0vG30cOQQbaKz3sCEc44TAOu2ykzqXSNnwag=="
|
| 5464 |
},
|
| 5465 |
+
"asynckit": {
|
| 5466 |
+
"version": "0.4.0",
|
| 5467 |
+
"resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz",
|
| 5468 |
+
"integrity": "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q=="
|
| 5469 |
+
},
|
| 5470 |
"autoprefixer": {
|
| 5471 |
"version": "10.4.13",
|
| 5472 |
"resolved": "https://registry.npmjs.org/autoprefixer/-/autoprefixer-10.4.13.tgz",
|
|
|
|
| 5491 |
"resolved": "https://registry.npmjs.org/axe-core/-/axe-core-4.6.3.tgz",
|
| 5492 |
"integrity": "sha512-/BQzOX780JhsxDnPpH4ZiyrJAzcd8AfzFPkv+89veFSr1rcMjuq2JDCwypKaPeB6ljHp9KjXhPpjgCvQlWYuqg=="
|
| 5493 |
},
|
| 5494 |
+
"axios": {
|
| 5495 |
+
"version": "0.26.1",
|
| 5496 |
+
"resolved": "https://registry.npmjs.org/axios/-/axios-0.26.1.tgz",
|
| 5497 |
+
"integrity": "sha512-fPwcX4EvnSHuInCMItEhAGnaSEXRBjtzh9fOtsE6E1G6p7vl7edEeZe11QHf18+6+9gR5PbKV/sGKNaD8YaMeA==",
|
| 5498 |
+
"requires": {
|
| 5499 |
+
"follow-redirects": "^1.14.8"
|
| 5500 |
+
}
|
| 5501 |
+
},
|
| 5502 |
"axobject-query": {
|
| 5503 |
"version": "3.1.1",
|
| 5504 |
"resolved": "https://registry.npmjs.org/axobject-query/-/axobject-query-3.1.1.tgz",
|
|
|
|
| 5636 |
"resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz",
|
| 5637 |
"integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA=="
|
| 5638 |
},
|
| 5639 |
+
"combined-stream": {
|
| 5640 |
+
"version": "1.0.8",
|
| 5641 |
+
"resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz",
|
| 5642 |
+
"integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==",
|
| 5643 |
+
"requires": {
|
| 5644 |
+
"delayed-stream": "~1.0.0"
|
| 5645 |
+
}
|
| 5646 |
+
},
|
| 5647 |
"comma-separated-tokens": {
|
| 5648 |
"version": "2.0.3",
|
| 5649 |
"resolved": "https://registry.npmjs.org/comma-separated-tokens/-/comma-separated-tokens-2.0.3.tgz",
|
|
|
|
| 5745 |
"integrity": "sha512-hsBd2qSVCRE+5PmNdHt1uzyrFu5d3RwmFDKzyNZMFq/EwDNJF7Ee5+D5oEKF0hU6LhtoUF1macFvOe4AskQC1Q==",
|
| 5746 |
"dev": true
|
| 5747 |
},
|
| 5748 |
+
"delayed-stream": {
|
| 5749 |
+
"version": "1.0.0",
|
| 5750 |
+
"resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz",
|
| 5751 |
+
"integrity": "sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ=="
|
| 5752 |
+
},
|
| 5753 |
"dequal": {
|
| 5754 |
"version": "2.0.3",
|
| 5755 |
"resolved": "https://registry.npmjs.org/dequal/-/dequal-2.0.3.tgz",
|
|
|
|
| 6372 |
"resolved": "https://registry.npmjs.org/flatted/-/flatted-3.2.7.tgz",
|
| 6373 |
"integrity": "sha512-5nqDSxl8nn5BSNxyR3n4I6eDmbolI6WT+QqR547RwxQapgjQBmtktdP+HTBb/a/zLsbzERTONyUB5pefh5TtjQ=="
|
| 6374 |
},
|
| 6375 |
+
"follow-redirects": {
|
| 6376 |
+
"version": "1.15.2",
|
| 6377 |
+
"resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.2.tgz",
|
| 6378 |
+
"integrity": "sha512-VQLG33o04KaQ8uYi2tVNbdrWp1QWxNNea+nmIB4EVM28v0hmP17z7aG1+wAkNzVq4KeXTq3221ye5qTJP91JwA=="
|
| 6379 |
+
},
|
| 6380 |
"for-each": {
|
| 6381 |
"version": "0.3.3",
|
| 6382 |
"resolved": "https://registry.npmjs.org/for-each/-/for-each-0.3.3.tgz",
|
|
|
|
| 6385 |
"is-callable": "^1.1.3"
|
| 6386 |
}
|
| 6387 |
},
|
| 6388 |
+
"form-data": {
|
| 6389 |
+
"version": "4.0.0",
|
| 6390 |
+
"resolved": "https://registry.npmjs.org/form-data/-/form-data-4.0.0.tgz",
|
| 6391 |
+
"integrity": "sha512-ETEklSGi5t0QMZuiXoA/Q6vcnxcLQP5vdugSpuAyi6SVGi2clPPp+xgEhuMaHC+zGgn31Kd235W35f7Hykkaww==",
|
| 6392 |
+
"requires": {
|
| 6393 |
+
"asynckit": "^0.4.0",
|
| 6394 |
+
"combined-stream": "^1.0.8",
|
| 6395 |
+
"mime-types": "^2.1.12"
|
| 6396 |
+
}
|
| 6397 |
+
},
|
| 6398 |
"fraction.js": {
|
| 6399 |
"version": "4.2.0",
|
| 6400 |
"resolved": "https://registry.npmjs.org/fraction.js/-/fraction.js-4.2.0.tgz",
|
|
|
|
| 7260 |
"picomatch": "^2.3.1"
|
| 7261 |
}
|
| 7262 |
},
|
| 7263 |
+
"mime-db": {
|
| 7264 |
+
"version": "1.52.0",
|
| 7265 |
+
"resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz",
|
| 7266 |
+
"integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg=="
|
| 7267 |
+
},
|
| 7268 |
+
"mime-types": {
|
| 7269 |
+
"version": "2.1.35",
|
| 7270 |
+
"resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz",
|
| 7271 |
+
"integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==",
|
| 7272 |
+
"requires": {
|
| 7273 |
+
"mime-db": "1.52.0"
|
| 7274 |
+
}
|
| 7275 |
+
},
|
| 7276 |
"minimatch": {
|
| 7277 |
"version": "3.1.2",
|
| 7278 |
"resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz",
|
|
|
|
| 7459 |
"is-wsl": "^2.2.0"
|
| 7460 |
}
|
| 7461 |
},
|
| 7462 |
+
"openai": {
|
| 7463 |
+
"version": "3.3.0",
|
| 7464 |
+
"resolved": "https://registry.npmjs.org/openai/-/openai-3.3.0.tgz",
|
| 7465 |
+
"integrity": "sha512-uqxI/Au+aPRnsaQRe8CojU0eCR7I0mBiKjD3sNMzY6DaC1ZVrc85u98mtJW6voDug8fgGN+DIZmTDxTthxb7dQ==",
|
| 7466 |
+
"requires": {
|
| 7467 |
+
"axios": "^0.26.0",
|
| 7468 |
+
"form-data": "^4.0.0"
|
| 7469 |
+
}
|
| 7470 |
+
},
|
| 7471 |
"optionator": {
|
| 7472 |
"version": "0.9.1",
|
| 7473 |
"resolved": "https://registry.npmjs.org/optionator/-/optionator-0.9.1.tgz",
|
package.json
CHANGED
|
@@ -15,6 +15,7 @@
|
|
| 15 |
"eventsource-parser": "^1.0.0",
|
| 16 |
"html-react-parser": "^3.0.9",
|
| 17 |
"next": "13.1.6",
|
|
|
|
| 18 |
"react": "18.2.0",
|
| 19 |
"react-dom": "18.2.0",
|
| 20 |
"react-icons": "^4.7.1",
|
|
|
|
| 15 |
"eventsource-parser": "^1.0.0",
|
| 16 |
"html-react-parser": "^3.0.9",
|
| 17 |
"next": "13.1.6",
|
| 18 |
+
"openai": "^3.3.0",
|
| 19 |
"react": "18.2.0",
|
| 20 |
"react-dom": "18.2.0",
|
| 21 |
"react-icons": "^4.7.1",
|
src/app/search/web/page.jsx
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
|
|
| 1 |
import { useEffect, useState } from "react";
|
| 2 |
import openai from 'openai';
|
| 3 |
import WebSearchResults from "@/components/WebSearchResults";
|
|
|
|
| 1 |
+
"use client"
|
| 2 |
import { useEffect, useState } from "react";
|
| 3 |
import openai from 'openai';
|
| 4 |
import WebSearchResults from "@/components/WebSearchResults";
|
tsconfig.json
DELETED
|
@@ -1,35 +0,0 @@
|
|
| 1 |
-
{
|
| 2 |
-
"compilerOptions": {
|
| 3 |
-
"lib": [
|
| 4 |
-
"dom",
|
| 5 |
-
"dom.iterable",
|
| 6 |
-
"esnext"
|
| 7 |
-
],
|
| 8 |
-
"allowJs": true,
|
| 9 |
-
"skipLibCheck": true,
|
| 10 |
-
"strict": false,
|
| 11 |
-
"forceConsistentCasingInFileNames": true,
|
| 12 |
-
"noEmit": true,
|
| 13 |
-
"incremental": true,
|
| 14 |
-
"esModuleInterop": true,
|
| 15 |
-
"module": "esnext",
|
| 16 |
-
"moduleResolution": "node",
|
| 17 |
-
"resolveJsonModule": true,
|
| 18 |
-
"isolatedModules": true,
|
| 19 |
-
"jsx": "preserve",
|
| 20 |
-
"plugins": [
|
| 21 |
-
{
|
| 22 |
-
"name": "next"
|
| 23 |
-
}
|
| 24 |
-
]
|
| 25 |
-
},
|
| 26 |
-
"include": [
|
| 27 |
-
"next-env.d.ts",
|
| 28 |
-
".next/types/**/*.ts",
|
| 29 |
-
"**/*.ts",
|
| 30 |
-
"**/*.tsx"
|
| 31 |
-
],
|
| 32 |
-
"exclude": [
|
| 33 |
-
"node_modules"
|
| 34 |
-
]
|
| 35 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|