summaryrefslogtreecommitdiffstats
path: root/piexample.py
diff options
context:
space:
mode:
authorH Lohaus <hlohaus@users.noreply.github.com>2023-12-02 00:08:34 +0100
committerGitHub <noreply@github.com>2023-12-02 00:08:34 +0100
commitf2bdd839502f3d3fa50dc221ae71e22cba44c1da (patch)
tree4cdd527acfd2e5514a3ca638c136a0c5d59faf04 /piexample.py
parentAdded new provider PI (Hacky way to use) (#1291) (diff)
parentUpdate pi provider (diff)
downloadgpt4free-f2bdd839502f3d3fa50dc221ae71e22cba44c1da.tar
gpt4free-f2bdd839502f3d3fa50dc221ae71e22cba44c1da.tar.gz
gpt4free-f2bdd839502f3d3fa50dc221ae71e22cba44c1da.tar.bz2
gpt4free-f2bdd839502f3d3fa50dc221ae71e22cba44c1da.tar.lz
gpt4free-f2bdd839502f3d3fa50dc221ae71e22cba44c1da.tar.xz
gpt4free-f2bdd839502f3d3fa50dc221ae71e22cba44c1da.tar.zst
gpt4free-f2bdd839502f3d3fa50dc221ae71e22cba44c1da.zip
Diffstat (limited to 'piexample.py')
-rw-r--r--piexample.py25
1 files changed, 0 insertions, 25 deletions
diff --git a/piexample.py b/piexample.py
deleted file mode 100644
index 23280d2b..00000000
--- a/piexample.py
+++ /dev/null
@@ -1,25 +0,0 @@
-from g4f import Provider
-
-import g4f
-
-Conversation = Provider.PI.Start_Conversation()
-
-Chat_History = Provider.PI.GetChatHistory(Conversation)
-
-response = g4f.ChatCompletion.create(
- model="pi",
- provider=g4f.Provider.PI,
- messages=[
- {
- "role": "user",
- "content": 'Hello who are you?'
- }
- ],
- stream=False,
- conversation=Conversation
-)
-
-for message in response:
- print(message, flush=True, end='')
-
-Chat_Title = Provider.PI.GetConversationTitle(Conversation)