Instructions to use Wellz1000/hermes-2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- HERMES
How to use Wellz1000/hermes-2 with HERMES:
# No code snippets available yet for this library. # To use this model, check the repository files and the library's documentation. # Want to help? PRs adding snippets are welcome at: # https://github.com/huggingface/huggingface.js
- Notebooks
- Google Colab
- Kaggle
Download hermes_cli/proxy/__init__.py from Wellz1000/hermes-2: direct link, hf CLI and curl.
- Browser
- Download file 806 Bytes
-
https://huggingface.co/Wellz1000/hermes-2/resolve/main/hermes_cli/proxy/__init__.py
- Command line
-
hf download hf://Wellz1000/hermes-2/hermes_cli/proxy/__init__.py
-
curl -L -o __init__.py https://huggingface.co/Wellz1000/hermes-2/resolve/main/hermes_cli/proxy/__init__.py
806 Bytes
| """Local OpenAI-compatible proxy that forwards to OAuth-authenticated upstreams. | |
| Lets external apps (OpenViking, Karakeep, Open WebUI, ...) ride the user's | |
| already-logged-in provider subscription instead of needing a static API key | |
| copy-pasted into each app's config. | |
| The proxy listens on ``127.0.0.1:<port>``, accepts any bearer (the client's | |
| ``Authorization`` header is discarded), and attaches the user's real | |
| upstream credential to the forwarded request. The credential is refreshed | |
| automatically when it approaches expiry. | |
| First-class adapter: | |
| - ``nous`` — Nous Portal (https://inference-api.nousresearch.com/v1) | |
| Future adapters can plug in by implementing ``UpstreamAdapter``. | |
| """ | |
| from hermes_cli.proxy.adapters.base import UpstreamAdapter | |
| __all__ = ["UpstreamAdapter"] | |