summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNate Sesti <33237525+sestinj@users.noreply.github.com>2023-07-27 12:28:26 -0700
committerGitHub <noreply@github.com>2023-07-27 12:28:26 -0700
commit923995f7840586edf6097ebbc6e1e0f8b0e7771d (patch)
tree9d398581c83cae69bde8f2e6f31bc292b040ae23
parent32c11ab7f3e52f5dce054f8b7402704c402b3078 (diff)
downloadsncontinue-923995f7840586edf6097ebbc6e1e0f8b0e7771d.tar.gz
sncontinue-923995f7840586edf6097ebbc6e1e0f8b0e7771d.tar.bz2
sncontinue-923995f7840586edf6097ebbc6e1e0f8b0e7771d.zip
Update customization.md
-rw-r--r--docs/docs/customization.md6
1 files changed, 6 insertions, 0 deletions
diff --git a/docs/docs/customization.md b/docs/docs/customization.md
index 46dd0b0d..c768c97d 100644
--- a/docs/docs/customization.md
+++ b/docs/docs/customization.md
@@ -25,6 +25,12 @@ If you have access, simply set `default_model` to the model you would like to us
See our [5 minute quickstart](https://github.com/continuedev/ggml-server-example) to run any model locally with ggml. While these models don't yet perform as well, they are free, entirely private, and run offline.
+### Self-hosting an open-source model
+
+If you want to self-host on Colab, RunPod, Replicate, HuggingFace, Haven, or another hosting provider you will need to wire up a new LLM class. It only needs to implement 3 methods: `stream_complete`, `complete`, and `stream_chat`, and you can see examples in `continuedev/src/continuedev/libs/llm`.
+
+If by chance the provider has the exact same API interface as OpenAI, the `GGML` class will work for you out of the box, after changing the endpoint at the top of the file.
+
### Azure OpenAI Service
If you'd like to use OpenAI models but are concerned about privacy, you can use the Azure OpenAI service, which is GDPR and HIPAA compliant. After applying for access [here](https://azure.microsoft.com/en-us/products/ai-services/openai-service), you will typically hear back within only a few days. Once you have access, set `default_model` to "gpt-4", and then set the `azure_openai_info` property in the `ContinueConfig` like so: