You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+16-15Lines changed: 16 additions & 15 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,34 +1,35 @@
1
1
# CodeWhisperer
2
2
3
-
CodeWhisperer is an innovative Node.js application that allows users to have conversations with their code repositories. By leveraging the power of OpenAI's AI models, it can summarize text files and entire code repositories to facilitate a chat-like interaction.
3
+
CodeWhisperer is a web-based application designed to facilitate insightful interactions between users and their code repositories. By leveraging cutting-edge AI technologies, CodeWhisperer provides intelligent summaries and detailed explanations, engaging users in a conversational interface that demystifies complex codebases.
4
4
5
5
## Overview
6
6
7
-
The application is built using Express for server management, MongoDB for data persistence, and Bootstrap for the front-end interface. It primarily interacts with OpenAI's API to create summaries of repositories and engage users in conversations about their code. The app processes GitHub repositories by cloning them, generating summaries through the gpt-3.5-turbo-16k and gpt-4-turbo-preview AI models, and then communicates the results via email using Sendgrid.
7
+
The app integrates the Express framework within a Node.js environment, utilizing MongoDB for data persistence. For UI elegance and interactivity, Bootstrap is employed. The core functionality is built around OpenAI's powerful language models, enabling the app to generate concise text summaries and interactive Q&A sessions about a user's code repository.
8
8
9
9
## Features
10
10
11
-
-Accepts GitHub repository URLs and user email addresses for processing
12
-
- Clones repositories and summarizes text files and overall project contents
13
-
-Communicates with OpenAI's API to generate summaries and answer user queries
14
-
-Sends email notifications with links to interact with the repository summary
15
-
-Provides a chat interface for dynamic interaction with the project summary
11
+
-Submits GitHub repository URLs and email addresses for processing
12
+
- Clones GitHub repositories and communicates with OpenAI API to generate summaries
13
+
-Provides interactive explanations of code via a unique link, offering insights into repositories
14
+
-Utilizes Sendgrid for email notifications upon the completion of repository analysis
15
+
-Proffers a unique and engaging way to understand and engage with one's programming projects
16
16
17
17
## Getting started
18
18
19
19
### Requirements
20
20
21
-
- Node.js environment
22
-
- MongoDB instance
23
-
-OpenAI API key
24
-
-Sendgrid credentials for email notifications
21
+
- Node.js
22
+
- MongoDB
23
+
-A Sendgrid account for email services
24
+
-An OpenAI API key for natural language processing
25
25
26
26
### Quickstart
27
27
28
-
1. Clone the repository to your machine.
29
-
2. Install necessary Node.js packages with `npm install`.
30
-
3. Configure the required environment variables within an `.env` file.
31
-
4. Run the application using `npm start` or `node server.js`.
28
+
1. Ensure that MongoDB is running on your system.
29
+
2. Clone the repository to your local machine.
30
+
3. Install node modules by running `npm install`.
31
+
4. Set up the necessary environment variables in an `.env` file.
32
+
5. Start the application with `npm start`, and navigate to `localhost:3001` on your web browser.
messages: [{role: "system",content: "Summarize this project based on the individual file summaries."},{role: "user",content: combinedSummaries}],
49
-
max_tokens: 1024,
57
+
messages: [{role: "system",content: "Summarize this project based on the individual file summaries and the list of all file paths."},{role: "user",content: combinedSummariesWithPaths}],
58
+
max_tokens: 2048,
50
59
temperature: 0.5
60
+
}).catch(error=>{
61
+
console.error('Error during OpenAI project summary call with all file paths:',error.message,error.stack);// gpt_pilot_debugging_log
62
+
throwerror;
51
63
});
52
-
64
+
console.log(`Project summary with all file paths has been generated.`);// gpt_pilot_debugging_log
0 commit comments