mirror of
https://github.com/xtekky/gpt4free.git
synced 2024-11-23 17:23:57 +03:00
Update README.md
This commit is contained in:
parent
596e1d899f
commit
c75372e999
@ -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"
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user