diff options
author | Ty Dunn <ty@tydunn.com> | 2023-09-07 11:19:38 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-07 11:19:38 -0700 |
commit | 8dad79af8b18c08e270382ce1b18a3956fa59626 (patch) | |
tree | 2317e2a5e43624e54e7894e016b9a84a08d1cec9 /continuedev/src/continuedev/core | |
parent | 65887473f4c6711d2a64a087f835f86556c75dff (diff) | |
download | sncontinue-8dad79af8b18c08e270382ce1b18a3956fa59626.tar.gz sncontinue-8dad79af8b18c08e270382ce1b18a3956fa59626.tar.bz2 sncontinue-8dad79af8b18c08e270382ce1b18a3956fa59626.zip |
adding support for Hugging Face Inference Endpoints (#460)
* stream complete sketch
* correct structure but issues
* refactor: :art: clean up hf_inference_api.py
* fix: :bug: quick fix in hf_infrerence_api.py
* feat: :memo: update documentation code for hf_inference_api
* hf docs
* now working
---------
Co-authored-by: Nate Sesti <sestinj@gmail.com>
Diffstat (limited to 'continuedev/src/continuedev/core')
-rw-r--r-- | continuedev/src/continuedev/core/models.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/continuedev/src/continuedev/core/models.py b/continuedev/src/continuedev/core/models.py index 9816d5d9..f24c81ca 100644 --- a/continuedev/src/continuedev/core/models.py +++ b/continuedev/src/continuedev/core/models.py @@ -11,6 +11,7 @@ from ..libs.llm.ollama import Ollama from ..libs.llm.openai import OpenAI from ..libs.llm.replicate import ReplicateLLM from ..libs.llm.together import TogetherLLM +from ..libs.llm.hf_inference_api import HuggingFaceInferenceAPI class ContinueSDK(BaseModel): @@ -37,6 +38,7 @@ MODEL_CLASSES = { ReplicateLLM, Ollama, LlamaCpp, + HuggingFaceInferenceAPI, ] } @@ -49,6 +51,7 @@ MODEL_MODULE_NAMES = { "ReplicateLLM": "replicate", "Ollama": "ollama", "LlamaCpp": "llamacpp", + "HuggingFaceInferenceAPI": "hf_inference_api", } |