返回提交历史
Modified
README.md
+4
-2
XFEstudio/gpt4free
Update README.md
c75372e9
代码差异
1 个文件
+4
-2
@@ -278,7 +278,9 @@ asyncio.run(run_async())
278
278
```
279
279
280
280
### interference openai-proxy api (use with openai python package)
281
281
#### if you want to use the embedding function, you need to get a huggingface token.
282
#### You can get one at https://huggingface.co/settings/tokens make sure your role is set to write.
283
#### If you have your token, just use it instead of the OpenAI api-key.
282
284
get requirements:
283
285
284
286
```sh
@@ -294,7 +296,7 @@ python3 -m interference.app
294
296
```py
295
297
import openai
296
298
297
openai.api_key = ""
299
openai.api_key = "Emppty if you dont use embeddings, otherwise your hugginface token"
298
300
openai.api_base = "http://localhost:1337"
299
301
300
302