File tree Expand file tree Collapse file tree 2 files changed +18
-19
lines changed Expand file tree Collapse file tree 2 files changed +18
-19
lines changed Original file line number Diff line number Diff line change 17
17
"author" : " " ,
18
18
"license" : " Apache-2.0" ,
19
19
"dependencies" : {
20
- "@lg-tools/crawler" : " workspace:^" ,
21
20
"@emotion/css" : " ^11.13.5" ,
22
21
"@lg-tools/crawler" : " workspace:^" ,
23
22
"dotenv" : " ^16.5.0" ,
Original file line number Diff line number Diff line change @@ -17,29 +17,29 @@ Be concise in your answers.
17
17
` ,
18
18
} ;
19
19
20
- const {
21
- llm,
22
- embeddedContentStore,
23
- generateUserPrompt,
24
- mongodbClient,
25
- conversations,
26
- } = await initChatBot ( ) ;
20
+ // Start the server and clean up resources on SIGINT.
21
+ const PORT = process . env . PORT || 3030 ;
27
22
28
- // Create the MongoDB Chatbot Server Express.js app configuration
29
- const config : AppConfig = {
30
- conversationsRouterConfig : {
23
+ const startServer = async ( ) => {
24
+ const {
31
25
llm,
32
- conversations ,
26
+ embeddedContentStore ,
33
27
generateUserPrompt,
34
- systemPrompt,
35
- } ,
36
- maxRequestTimeoutMs : 30000 ,
37
- } ;
28
+ mongodbClient,
29
+ conversations,
30
+ } = await initChatBot ( ) ;
38
31
39
- // Start the server and clean up resources on SIGINT.
40
- const PORT = process . env . PORT || 3030 ;
32
+ // Create the MongoDB Chatbot Server Express.js app configuration
33
+ const config : AppConfig = {
34
+ conversationsRouterConfig : {
35
+ llm,
36
+ conversations,
37
+ generateUserPrompt,
38
+ systemPrompt,
39
+ } ,
40
+ maxRequestTimeoutMs : 30000 ,
41
+ } ;
41
42
42
- const startServer = async ( ) => {
43
43
logger . info ( 'Starting server...' ) ;
44
44
const app = await makeApp ( config ) ;
45
45
const server = app . listen ( PORT , ( ) => {
You can’t perform that action at this time.
0 commit comments