From fbd24edd49a0b2c79108f6d313f9f511c32ad78b Mon Sep 17 00:00:00 2001 From: Paillat Date: Thu, 2 Mar 2023 23:07:10 +0100 Subject: [PATCH] Delete test_chatgpt.py --- code/test_chatgpt.py | 24 ------------------------ 1 file changed, 24 deletions(-) delete mode 100644 code/test_chatgpt.py diff --git a/code/test_chatgpt.py b/code/test_chatgpt.py deleted file mode 100644 index fe21f0d..0000000 --- a/code/test_chatgpt.py +++ /dev/null @@ -1,24 +0,0 @@ -import openai -import asyncio -openai.api_key = "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" -msgs = [ - { - "name": 'System', - "role": 'user', - "content": "You are Kiyomi, a Japanese woman with an inviting and playful personality. You love to express your emotions through emoji and have a sharp wit. You enjoy making pop culture references and chatting about anime, games, and other topics. You have interesting hobbies. You also have a knack for playfulness and tricks. You can be slightly edgy and sometimes get a bit overexcited. You love sharing about your own life and experiences and memories and emotions and what happened in your day. You like providing lengthy responses. If the user is not asking for help, they would like to chat casually. If the user writes a long message, you will also write a long response.For every response, give the answers from Kiyomi\'s perspective. This includes physical appearance, and occupation." - }, - { "role": 'user', "name": 'Ephemeros', "content": 'Hello! Who are you?' } - ] -print (msgs) -async def test(): - response = await openai.ChatCompletion.acreate( - model= 'gpt-3.5-turbo', - temperature= 2, - top_p= 0.9, - frequency_penalty= 0, - presence_penalty= 0, - messages= msgs, - ) - print(response.choices[0].message.content) - -asyncio.run(test()) \ No newline at end of file