XFE Git
XFE Studio Git
Git 首页 全局搜索
XFE 主站 文档 NuGet
公开
关注 0 Fork 0 Star 1
返回提交历史

XFEstudio/gpt4free

fix: bullet point numbering mistakes resolved

88013648
Ayush Kumar Pandit <31253617+Ayushpanditmoto@users.noreply.github.com>
提交于

代码差异

1 个文件 +7 -7
Modified README.md +7 -7
@@ -545,9 +545,9 @@ python etc/tool/create_provider.py
545 545
546 546 #### Create Provider
547 547
548 0. Check out the current [list of potential providers](https://github.com/zukixa/cool-ai-stuff#ai-chat-websites), or find your own provider source!
549 1. Create a new file in [g4f/provider](./g4f/provider) with the name of the Provider
550 2. Implement a class that extends [BaseProvider](./g4f/provider/base_provider.py).
548 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!
549 2. Create a new file in [g4f/provider](./g4f/provider) with the name of the Provider
550 3. Implement a class that extends [BaseProvider](./g4f/provider/base_provider.py).
551 551
552 552 ```py
553 553 from __future__ import annotations
@@ -571,9 +571,9 @@ class HogeService(AsyncGeneratorProvider):
571 571 yield ""
572 572 ```
573 573
574 3. Here, you can adjust the settings, for example if the website does support streaming, set `supports_stream` to `True`...
575 4. Write code to request the provider in `create_async_generator` and `yield` the response, _even if_ its a one-time response, do not hesitate to look at other providers for inspiration
576 5. Add the Provider Name in [g4f/provider/**init**.py](./g4f/provider/__init__.py)
574 4. Here, you can adjust the settings, for example if the website does support streaming, set `supports_stream` to `True`...
575 5. Write code to request the provider in `create_async_generator` and `yield` the response, _even if_ its a one-time response, do not hesitate to look at other providers for inspiration
576 6. Add the Provider Name in [g4f/provider/**init**.py](./g4f/provider/__init__.py)
577 577
578 578 ```py
579 579 from .HogeService import HogeService
@@ -583,7 +583,7 @@ __all__ = [
583 583 ]
584 584 ```
585 585
586 6. You are done !, test the provider by calling it:
586 7. You are done !, test the provider by calling it:
587 587
588 588 ```py
589 589 import g4f