{"id":22914559,"url":"https://github.com/meghajbhat/simple-chatbot","last_synced_at":"2025-06-11T01:07:44.099Z","repository":{"id":241558989,"uuid":"806886112","full_name":"meghajbhat/Simple-Chatbot","owner":"meghajbhat","description":"This repository contains my first Nexus internship project: a simple chatbot using Python and the ChatGPT API. The project is compatible with Python IDEs such as VS Code, PyCharm, and IDLE.","archived":false,"fork":false,"pushed_at":"2024-05-29T07:30:41.000Z","size":862,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-12-14T05:15:38.858Z","etag":null,"topics":["chat-bot","chatbot","chatgpt-api","chatgpt-python","python"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/meghajbhat.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-05-28T05:20:31.000Z","updated_at":"2024-12-09T06:11:30.000Z","dependencies_parsed_at":"2024-05-29T20:25:11.146Z","dependency_job_id":null,"html_url":"https://github.com/meghajbhat/Simple-Chatbot","commit_stats":null,"previous_names":["meghajbhat/aiml-project-series","meghajbhat/aiml-project-series1","meghajbhat/simple-chatbot"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/meghajbhat%2FSimple-Chatbot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/meghajbhat%2FSimple-Chatbot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/meghajbhat%2FSimple-Chatbot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/meghajbhat%2FSimple-Chatbot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/meghajbhat","download_url":"https://codeload.github.com/meghajbhat/Simple-Chatbot/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/meghajbhat%2FSimple-Chatbot/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259178497,"owners_count":22817387,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["chat-bot","chatbot","chatgpt-api","chatgpt-python","python"],"created_at":"2024-12-14T05:15:42.347Z","updated_at":"2025-06-11T01:07:44.072Z","avatar_url":"https://github.com/meghajbhat.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"NAME : MEGHA BHAT\nEMAIL : meghajbhat@gmail.com\n\n\n# ChatGPT API Simple Chatbot\n\nThis project is a simple chatbot that uses OpenAI's GPT-3.5-turbo model. \nIt consists of a client and a server script that communicate over HTTP. \nThe server handles the interaction with the OpenAI API, and the client provides a simple command-line interface for users to interact with the chatbot.\n\n## Table of Contents\n\n- [Features](#features)\n- [Installation](#installation)\n- [Usage](#usage)\n- [Configuration](#configuration)\n- [Contributing](#contributing)\n- [Acknowledgements](#acknowledgements)\n\n## Features\n\n- Simple and intuitive command-line interface for chatting with GPT-3.5-turbo.\n- Proxy server that handles API requests and responses.\n- Maintains conversation history for context-aware responses.\n- Secure communication with OpenAI API.\n\n## Installation\n\n1. Clone the repository:\n    ```sh\n    git clone https://github.com/meghajbhat/AIML-Project-Series1.git\n    cd AIML-Project-Series1\n    ```\n\n2. Navigate to the `ChatGPT-API-Simple-Chatbot` directory:\n    ```sh\n    cd \"ChatGPT-API-Simple-Chatbot\"\n    ```\n\n3. Create and activate a virtual environment (optional but recommended):\n    ```sh\n    python -m venv venv\n    source venv/bin/activate   # On Windows: venv\\Scripts\\activate\n    ```\n\n4. Install the required packages:\n    ```sh\n    pip install -r requirements.txt\n    ```\n\n## Usage\n\n### Running the Server\n\n1. Open a terminal and navigate to the project directory.\n2. Start the server by running:\n    ```sh\n    python basicserver.py\n    ```\n3. The server will start on port `65432`.\n\n### Running the Client\n\n1. Open another terminal and navigate to the project directory.\n2. Start the client by running:\n    ```sh\n    python basicclient.py\n    ```\n3. Interact with the chatbot by typing your questions. Type `exit` to quit the client.\n\n## Configuration\n\n1. **OpenAI API Key**:\n   - Replace `'YOUR_OPEN_API_KEY_HERE'` in `basicserver.py` with your actual OpenAI API key.\n\n2. **Model Configuration**:\n   - The model used is `gpt-3.5-turbo-1106`. You can change this in the `query_chatgpt` method if you want to use a different model.\n\n## Contributing\n\nContributions are welcome! Please fork the repository and submit a pull request for any improvements or bug fixes.\n\n1. Fork the Project.\n2. Create your feature branch (`git checkout -b feature/AmazingFeature`).\n3. Commit your changes (`git commit -m 'Add some AmazingFeature'`).\n4. Push to the branch (`git push origin feature/AmazingFeature`).\n5. Open a Pull Request.\n\n## Acknowledgements\n\n- [OpenAI](https://www.openai.com) for providing the GPT-3.5-turbo model.\n- The Python community for various useful libraries.\n\n---\n\nFeel free to open an issue if you find a bug or have a question. Happy coding!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmeghajbhat%2Fsimple-chatbot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmeghajbhat%2Fsimple-chatbot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmeghajbhat%2Fsimple-chatbot/lists"}