{"id":17526981,"url":"https://github.com/ogios/huggingchat-api","last_synced_at":"2025-03-06T06:31:13.820Z","repository":{"id":177759858,"uuid":"656660868","full_name":"ogios/huggingchat-api","owner":"ogios","description":"huggingface.co/chat api. Fixed stream response \u0026 web search.","archived":true,"fork":false,"pushed_at":"2023-10-01T03:59:58.000Z","size":98,"stargazers_count":13,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-09-18T04:59:59.440Z","etag":null,"topics":["api","huggingchat","huggingface","python"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ogios.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2023-06-21T11:35:14.000Z","updated_at":"2024-06-15T06:06:00.000Z","dependencies_parsed_at":"2023-09-24T13:10:51.495Z","dependency_job_id":null,"html_url":"https://github.com/ogios/huggingchat-api","commit_stats":null,"previous_names":["ogios/huggingchat-api"],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ogios%2Fhuggingchat-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ogios%2Fhuggingchat-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ogios%2Fhuggingchat-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ogios%2Fhuggingchat-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ogios","download_url":"https://codeload.github.com/ogios/huggingchat-api/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242161580,"owners_count":20081897,"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":["api","huggingchat","huggingface","python"],"created_at":"2024-10-20T15:02:40.999Z","updated_at":"2025-03-06T06:31:13.444Z","avatar_url":"https://github.com/ogios.png","language":"Python","funding_links":[],"categories":["Python"],"sub_categories":[],"readme":"# Huggingchat api\n\n**You Star You Win A BILLION$$$(maybe,it's not impossible that it would happen)**\n\n\u003e This is my first pypi project. Experienced some annoying moments, but i managed to do it anyway\n\n[![PyPI version](https://img.shields.io/pypi/v/hugchat-api.svg)](https://pypi.python.org/pypi/hugchat-api/)\n[![PyPI pyversions](https://img.shields.io/pypi/pyversions/hugchat-api.svg)](https://pypi.python.org/pypi/hugchat-api/)\n\n[![Downloads](https://static.pepy.tech/badge/hugchat-api)](https://pepy.tech/project/hugchat-api)\n\n```shell\npip install hugchat-api\n```\n\n\n\u003e [!NOTE]  \n\u003e **VERSIONS BEFORE `v0.0.1.6` ARE DEPRECATED!  PLEASE UPDATE TO THE LASTEST.**  \n\u003e For documentation, please see [Wiki](https://github.com/ogios/huggingchat-api/wiki)\n\n## Lastest Change\n\u003e Last update: 2023-09-30\n\n- Fix: `summarize` api removed causing endless loop\n- **Feat! :** ( Testing, not sure if it's working 🤨 ) System prompt injection\n- rm: `Open-Assistant` is removed from `ListBots`\n- Fix: `Chatflow` error not shown in `Message` hence hard to debug from log\n- Update: Change multiple type hints to `Union` to adapt lower python version [#87](https://github.com/Soulter/hugging-chat-api/issues/87)\n\n\n## Screenshots\n### Normal Chat\n![hugchat_normal](https://github.com/ogios/huggingchat-api/assets/96933655/7068d243-62c2-4209-a132-ecf7ceb8254a)\n\n### With Search Web\n![hugchat_web](https://github.com/ogios/huggingchat-api/assets/96933655/ec818273-4849-4416-b5ea-e2c555ab1140)\n\n\n\n\n## Terminal Usage\n\n\u003c/summary\u003e\n\n\n### Start up\n```shell\npython -m hugchat_api.terminal_cli -u your_email\n```\n\n| Params | Descriptions                      |\n|--------|-----------------------------------|\n| -u     | Login Email                       |\n| -p     | Use password or not (optional)    |\n| -f     | Ignore the saved cookie and login |\n| --debug| Open cli in with debug log type, log file can be found with the name: `terminal_cli.log` |\n\n### Commands\nUse `/` + `command` to execute:\n\n| Commands   | Descriptions                           |\n|------------|----------------------------------------|\n| q/exit     | Exit the program                       |\n| ls         | List all conversations                 |\n| cd \u003cindex\u003e | cd into the chosen conversation        |\n| new        | Create a new conversation              |\n| rm \u003cindex\u003e | delete the chosen conversation         |\n| old        | Print out the conversation's histories |\n| web        | Switch 'Search Web' enable option      |\n| pro        | Provide prompt for `System`            |\n\n\nAnything not start with `/` will be seen as chat message.\n\nExample:\n```text\n(None) \u003e /ls\n#* Conversations established:\n#\n#       0. [649471fa525d2d2474973871] - Hello there! How can I help you? Let me know if you need something specific done.\n#       1. [64946fb2525d2d247497382c] - Hi there! How can I assist you?\n\n(None) \u003e /cd 0\n(647e09ccabd9de3d82d6fba0) \u003e hi\n#(user): hi\n#(HFBot): ...\n(647e09ccabd9de3d82d6fba0) \u003e /web\n#WEB_SEARCH is set to `True`\n(647e09ccabd9de3d82d6fba0) \u003e hi\n# ...(steps about web search)\n#(HFBot): ...\n```\n\n\u003c/details\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fogios%2Fhuggingchat-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fogios%2Fhuggingchat-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fogios%2Fhuggingchat-api/lists"}