From e74af803e7add7790b366545f1fe6c80934de798 Mon Sep 17 00:00:00 2001 From: Heiner Lohaus Date: Fri, 1 Dec 2023 23:56:12 +0100 Subject: Update pi provider --- piexample.py | 25 ------------------------- 1 file changed, 25 deletions(-) delete mode 100644 piexample.py (limited to 'piexample.py') 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) -- cgit v1.2.3