summaryrefslogtreecommitdiffstats
path: root/README.md
diff options
context:
space:
mode:
authorGuspan Tanadi <36249910+guspan-tanadi@users.noreply.github.com>2023-10-25 11:11:09 +0200
committerGitHub <noreply@github.com>2023-10-25 11:11:09 +0200
commitacdcad31f3c689900204167e860ea8677950cdbb (patch)
tree28749a81391f5851908557da72f90422d06dba97 /README.md
parentMerge pull request #1148 from rover07/fix/grammatical-errors-README.md (diff)
downloadgpt4free-acdcad31f3c689900204167e860ea8677950cdbb.tar
gpt4free-acdcad31f3c689900204167e860ea8677950cdbb.tar.gz
gpt4free-acdcad31f3c689900204167e860ea8677950cdbb.tar.bz2
gpt4free-acdcad31f3c689900204167e860ea8677950cdbb.tar.lz
gpt4free-acdcad31f3c689900204167e860ea8677950cdbb.tar.xz
gpt4free-acdcad31f3c689900204167e860ea8677950cdbb.tar.zst
gpt4free-acdcad31f3c689900204167e860ea8677950cdbb.zip
Diffstat (limited to 'README.md')
-rw-r--r--README.md8
1 files changed, 4 insertions, 4 deletions
diff --git a/README.md b/README.md
index f313156f..da8036f6 100644
--- a/README.md
+++ b/README.md
@@ -327,7 +327,7 @@ python -m g4f.api
```py
import openai
-openai.api_key = "Empty if you don't use embeddings, otherwise your hugginface token"
+openai.api_key = "Empty if you don't use embeddings, otherwise your Hugging Face token"
openai.api_base = "http://localhost:1337/v1"
@@ -546,8 +546,8 @@ python etc/tool/create_provider.py
#### Create Provider
1. Check out the current [list of potential providers](https://github.com/zukixa/cool-ai-stuff#ai-chat-websites), or find your own provider source!
-2. Create a new file in [g4f/provider](./g4f/provider) with the name of the Provider
-3. Implement a class that extends [BaseProvider](./g4f/provider/base_provider.py).
+2. Create a new file in [g4f/Provider](./g4f/Provider) with the name of the Provider
+3. Implement a class that extends [BaseProvider](./g4f/Provider/base_provider.py).
```py
from __future__ import annotations
@@ -573,7 +573,7 @@ class HogeService(AsyncGeneratorProvider):
4. Here, you can adjust the settings, for example, if the website does support streaming, set `supports_stream` to `True`...
5. Write code to request the provider in `create_async_generator` and `yield` the response, _even if_ it's a one-time response, do not hesitate to look at other providers for inspiration
-6. Add the Provider Name in [g4f/provider/**init**.py](./g4f/provider/__init__.py)
+6. Add the Provider Name in [g4f/Provider/**init**.py](./g4f/Provider/__init__.py)
```py
from .HogeService import HogeService