Skip to content

Latest commit

 

History

History
125 lines (93 loc) · 5.54 KB

File metadata and controls

125 lines (93 loc) · 5.54 KB
HuggingChat API Badge

HuggingChat API 🤗🤗 - Unofficial Reverse Engineering 🚀

GitHub stars GitHub forks GitHub issues

YouTube Telegram Instagram LinkedIn Buy Me A Coffee

Crafted with ❤️ by Devs Do Code (Sree)

Disclaimer: This project is not officially associated with Hugging Face. It is an independent reverse engineering effort to explore the Hugging Chat API.


🚀 Repository Status Update

🛑 Important Notice: This repository is no longer maintained by the owner Devs Do Code (Sree). Any contributions to this repository are heartily welcomed 💝💝.


📜 Table of Contents


🚀 Quick Start

  1. Clone the repository:
    git clone https://github.com/SreejanPersonal/Hugging-Chat-Reverse-Engineered-API.git
  2. Navigate to the Hugging Chat platform and sign in with your Hugging Face account. (Avoid guest mode for full functionality.)
  3. Choose any available model on Hugging Chat to initiate a new conversation.
  4. Access Developer Tools with Ctrl + Shift + I and select the Network tab.
  5. Engage with the model by entering a query in the chat interface.
  6. Observe the API requests in the Network tab and locate the conversation request.
  7. In the Response Headers section, find the Set-Cookie entry and copy the hf-chat value. Treat this as your API key and keep it confidential.

🛠️ Installation

After cloning the repository and obtaining your HF_CHAT_ID, proceed as follows:

  1. Navigate to the Hugging-Chat-Reverse-Engineered-API directory:
    cd Hugging-Chat-Reverse-Engineered-API
  2. Create a .env file and store your HF_CHAT_ID within:
    echo "HF_CHAT_ID=your_hf_chat_id" > .env
  3. Execute main.py to start interacting with the API:
    python main.py

💻 Usage

To utilize the API, ensure you have the necessary dependencies installed. You can install them using:

pip install -r requirements.txt
  • Running the script:

    python main.py
  • Make sure to replace your_hf_chat_id with the actual hf-chat value obtained from the response headers.


🤝 Contributing

Your contributions are welcome! Please refer to our CONTRIBUTING.md for detailed contribution guidelines.


📜 License

This project is licensed under the MIT License. Full license text is available in the LICENSE file.


📬 Get in Touch

For inquiries or assistance, please open an issue or reach out through our social channels:

YouTube Telegram Instagram LinkedIn Buy Me A Coffee

We appreciate your interest in Hugging-Chat-Reverse-Engineered-API.