Merged
Conversation
added 2 commits
January 3, 2025 16:44
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request introduces a new chatbot module in Rust, including its dependencies, build configurations, and core functionalities. The most important changes are the addition of essential dependencies, the creation of a Makefile for project management, the implementation of the chatbot's main logic, and the setup of the main entry point for the application.
Dependencies and Configuration:
module2/chatbot/Cargo.toml: Added the necessary dependencies for the chatbot, includingreqwest,tokio,serde,serde_json, anddotenv.Build and Project Management:
module2/chatbot/Makefile: Created a Makefile to manage various tasks such as building, running, testing, linting, formatting, and version bumping of the project.Core Functionality:
module2/chatbot/src/chatbot.rs: Implemented the main logic for the chatbot, including functions for running the chat loop, calling the API, and handling user input and AI responses.Module Setup:
module2/chatbot/src/lib.rs: Added a module declaration for the chatbot.Main Entry Point:
module2/chatbot/src/main.rs: Set up the main function to initialize the environment, create an HTTP client, retrieve the API key, and start the chatbot loop.