New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

hugchat-api

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hugchat-api

huggingface.co/chat, 'stream' response and 'Search Web' supported. (MetaAI's new model supported)

  • 0.0.2.5
  • PyPI
  • Socket score

Maintainers
1

Huggingchat api

You Star You Win A BILLION$$$(maybe,it's not impossible that it would happen)

This is my first pypi project. Experienced some annoying moments, but i managed to do it anyway

PyPI version PyPI pyversions

Downloads

pip install hugchat-api

[!NOTE]
VERSIONS BEFORE v0.0.1.6 ARE DEPRECATED! PLEASE UPDATE TO THE LASTEST.
For documentation, please see Wiki

Lastest Change

Last update: 2023-09-30

  • Fix: summarize api removed causing endless loop
  • Feat! : ( Testing, not sure if it's working 🤨 ) System prompt injection
  • rm: Open-Assistant is removed from ListBots
  • Fix: Chatflow error not shown in Message hence hard to debug from log
  • Update: Change multiple type hints to Union to adapt lower python version #87

Screenshots

Normal Chat

hugchat_normal

With Search Web

hugchat_web

Terminal Usage

Start up

python -m hugchat_api.terminal_cli -u your_email
ParamsDescriptions
-uLogin Email
-pUse password or not (optional)
-fIgnore the saved cookie and login
--debugOpen cli in with debug log type, log file can be found with the name: terminal_cli.log

Commands

Use / + command to execute:

CommandsDescriptions
q/exitExit the program
lsList all conversations
cd cd into the chosen conversation
newCreate a new conversation
rm delete the chosen conversation
oldPrint out the conversation's histories
webSwitch 'Search Web' enable option
proProvide prompt for System

Anything not start with / will be seen as chat message.

Example:

(None) > /ls
#* Conversations established:
#
#       0. [649471fa525d2d2474973871] - Hello there! How can I help you? Let me know if you need something specific done.
#       1. [64946fb2525d2d247497382c] - Hi there! How can I assist you?

(None) > /cd 0
(647e09ccabd9de3d82d6fba0) > hi
#(user): hi
#(HFBot): ...
(647e09ccabd9de3d82d6fba0) > /web
#WEB_SEARCH is set to `True`
(647e09ccabd9de3d82d6fba0) > hi
# ...(steps about web search)
#(HFBot): ...

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc