Added new provider PI (Hacky way to use) (#1291)

* Added new provider PI (Hacky way to use)

* Updated models endpoint made it show real info about the model.py

* Added cloudscraper to the requirements

* Fixed some bugs aka made streaming also return role
This commit is contained in:
madonchik123
2023-12-02 01:11:52 +03:00
committed by GitHub
parent 1ade1d959c
commit b0276f6c9e
8 changed files with 170 additions and 12 deletions

View File

@@ -3,4 +3,4 @@ import g4f.api
if __name__ == "__main__":
print(f'Starting server... [g4f v-{g4f.version}]')
g4f.api.Api(engine = g4f, debug = True).run(ip = "127.0.0.1:1337")
g4f.api.Api(engine = g4f, debug = True).run(ip = "0.0.0.0:10000")