blazickjp / GPT-CodeApp

This project is everything Chat-GPT should be for developers! An advanced AI-driven coding companion tailored for developers. Seamlessly bridging the gap between traditional coding and AI capabilities, we offer real-time chat interactions, on-demand agent functions, and intuitive code management. Feedback welcome!
MIT License
33 stars 12 forks source link

Enhancements and Refactoring in Backend and Frontend #13

Closed blazickjp closed 1 year ago

blazickjp commented 1 year ago

PR Type:

Refactoring, Enhancement


PR Description:

This PR includes several enhancements and refactoring in both backend and frontend. It includes updates to the backend agent functions, shell commands, memory manager, and database. In the frontend, changes have been made to the chat box, modal bar, right sidebar, search bar, and index page. The PR also includes updates to the pytest workflow and README file. Additionally, some code comments and unused code have been removed.


PR Main Files Walkthrough:

files: `backend/agent/agent_functions/changes.py`: Removed field validator for 'original' field in the Change class. Updated the instructions in the Changes class. `backend/agent/agent_functions/shell_commands.py`: Removed field validator for 'command_line' field in the Command class. `backend/agent/memory_manager.py`: Minor changes in the set_system function. `backend/database/my_codebase.py`: Added a new environment variable 'UPDATE_FULL'. Updated the update_file function to insert or update file details in the database. Separated the update of embeddings and summary into a new function 'update_embed_and_summary'. `backend/main.py`: Commented out the import of openai and its api_base setting. `frontend/components/ChatBox.js`: Added new components 'CustomOrderedList' and 'CustomListItem' for ordered and unordered lists respectively in the chat box. `frontend/components/ModalBar.js`: Removed the 'tokens' text from the token count display in the modal bar. `frontend/components/RightSidebar.js`: Removed the 'T' text from the token count display in the right sidebar. `frontend/components/SearchBar.js`: Added a title to the file option in the search bar. `frontend/pages/index.js`: Uncommented the buttons for toggling the left and right sidebars. `.github/workflows/pytest_ubuntu.yml`: Added a strategy matrix to run the pytest workflow on ubuntu, macos, and windows.
blazickjp commented 1 year ago

/describe