summaryrefslogtreecommitdiffstats
path: root/README.md
diff options
context:
space:
mode:
authorTekky <98614666+xtekky@users.noreply.github.com>2023-09-22 21:30:06 +0200
committerGitHub <noreply@github.com>2023-09-22 21:30:06 +0200
commit2cb59b4e10dc387ec4c3fafe2c889cadcc59c376 (patch)
treeb0984639158826c8dc1b50d0feeee035eafe8c8e /README.md
parent~ (diff)
parentimport AutoTokenizer in app.py (diff)
downloadgpt4free-2cb59b4e10dc387ec4c3fafe2c889cadcc59c376.tar
gpt4free-2cb59b4e10dc387ec4c3fafe2c889cadcc59c376.tar.gz
gpt4free-2cb59b4e10dc387ec4c3fafe2c889cadcc59c376.tar.bz2
gpt4free-2cb59b4e10dc387ec4c3fafe2c889cadcc59c376.tar.lz
gpt4free-2cb59b4e10dc387ec4c3fafe2c889cadcc59c376.tar.xz
gpt4free-2cb59b4e10dc387ec4c3fafe2c889cadcc59c376.tar.zst
gpt4free-2cb59b4e10dc387ec4c3fafe2c889cadcc59c376.zip
Diffstat (limited to 'README.md')
-rw-r--r--README.md5
1 files changed, 4 insertions, 1 deletions
diff --git a/README.md b/README.md
index 13b781e5..763417ba 100644
--- a/README.md
+++ b/README.md
@@ -279,6 +279,9 @@ asyncio.run(run_async())
### interference openai-proxy api (use with openai python package)
+If you want to use the embedding function, you need to get a huggingface token. You can get one at https://huggingface.co/settings/tokens make sure your role is set to write. If you have your token, just use it instead of the OpenAI api-key.
+
+
get requirements:
```sh
@@ -294,7 +297,7 @@ python3 -m interference.app
```py
import openai
-openai.api_key = ""
+openai.api_key = "Empty if you don't use embeddings, otherwise your hugginface token"
openai.api_base = "http://localhost:1337"