Spaces:
Building
Building
File size: 527 Bytes
7a8853f |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
# import g4f.debug
# g4f.debug.logging = True
# from g4f.cookies import read_cookie_files
# read_cookie_files("static/")
# from g4f.client import Client
# import g4f.Provider
# client = Client(
# )
# stream = client.chat.completions.create(
# model="gpt-4o",
# messages=[{"role": "user", "content": "are you based on gpt-4o?"}],
# stream=True,
# )
# for chunk in stream:
# print(chunk.choices[0].delta.content or "", end="")
file=open("static/messages.json","a")
file.write(str("A") )
file.close() |