mirror of
https://github.com/xtekky/gpt4free.git
synced 2024-11-01 03:21:02 +00:00
b0276f6c9e
* 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
7 lines
179 B
Python
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")
|