diff options
author | chatgpt-tricks <143020293+chatgpt-tricks@users.noreply.github.com> | 2023-09-19 19:57:53 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-19 19:57:53 +0200 |
commit | c75372e999243c8ddd2fcd6ec0b54899d83f8433 (patch) | |
tree | 42223fb885940281353f39b5e713f14014b829f0 /README.md | |
parent | Adding embedding support using huggingface to app.py (diff) | |
download | gpt4free-c75372e999243c8ddd2fcd6ec0b54899d83f8433.tar gpt4free-c75372e999243c8ddd2fcd6ec0b54899d83f8433.tar.gz gpt4free-c75372e999243c8ddd2fcd6ec0b54899d83f8433.tar.bz2 gpt4free-c75372e999243c8ddd2fcd6ec0b54899d83f8433.tar.lz gpt4free-c75372e999243c8ddd2fcd6ec0b54899d83f8433.tar.xz gpt4free-c75372e999243c8ddd2fcd6ec0b54899d83f8433.tar.zst gpt4free-c75372e999243c8ddd2fcd6ec0b54899d83f8433.zip |
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -278,7 +278,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 +296,7 @@ python3 -m interference.app ```py import openai -openai.api_key = "" +openai.api_key = "Emppty if you dont use embeddings, otherwise your hugginface token" openai.api_base = "http://localhost:1337" |