gpt4free/g4f/api/run.py
madonchik123 b0276f6c9e
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
2023-12-01 23:11:52 +01:00

7 lines
179 B
Python

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