backend / new.py
vaibhavard
firstcommit
7a8853f
raw
history blame contribute delete
527 Bytes
# 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()