forked from chrisyy2003/lingyin-bot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
test.py
12 lines (11 loc) · 2.58 KB
/
test.py
1
2
3
4
5
6
7
8
9
10
11
12
from revChatGPT.revChatGPT import Chatbot
config = {
"session_token": "eyJhbGciOiJkaXIiLCJlbmMiOiJBMjU2R0NNIn0..b3e6jv9ULc8PdbHq.21bDDbqJ-8OYFkQ_LtiTQbB_IKSRMpXYg5-EtCRhbCNVH8PykWklDOsFbpiE-nDjsBO6Mxzg3pZE4ElibkOPSaewjbbeP7db0xWBdHWoN1ld7Z5Va8cAXf2PMARp5y1lYoHZQ-8eXqJ781Lkl6bWpRZJW5MpWaF7-vXYcaQkRNWcje_23lunuHlM5q6lTgxWNBN5kAmhGkQ1UAo1_cFgdoeaMDy8IxLQ_pDuy-u9GkzHPUMfIL7V9N23AWjq8lohbhv_ZA9H0I2-EQBbRIH9nlyNZCB6K3wXYhJkGZb7-Ia-j92U3xcg9AOuRDs5E4T5UctX20V3I9-obxcJcSpwsllzcoboeWbkMNI_DFGBx21Em-YnxIw774fgPkQN6V--NyzbyvjgkqwuvExMwJ4-VWBb67qqLZTdWZjXkBfyf1gxR2jZqCJF3vDmtJtauqOnKnIS_YBFez9HTH5okCJWO-fFcrGtu565h4pKPt14ZZqAnA3L36Mkd4mcBhru0F2_Y5_ZOAtWuFFTRufMdp-ltVzzmknMNJFeVqow210CiY1zq5XqGdpTOuO-bsgDEdu3NuzFMFRuQGKk6xngKaTiryNiChdlausQr8WO0me7Ml5KayOOVwrXw3I8ZVpum_g8gXQ0WElq2FClvoZJT_TLupn3MBz0SBtEKzr1yjlCxcMrXtrVi1JUWp5-9sNQ98foq9RA-stTs1Tr5aTi7McjGp5ZbLIFidrCeyUnjgvp3-kWpP6yFCosrzVsYSOUVCCNAmb64kTcPoXO7dZr8SkKvjjrSB5J6gImjThgK8WdBDQqMP_vHZCHPf-nUSemuOeK-eZjz_LT4DY43SbUe_15uYdmLERh682nHuLybfu69E822dhpd0To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blguHY39kCl7mUiZiuo_9J1xOOJMlEUrCX5CS_UOiWIPyHNP1OAdsJX_KRs2QAQLZ83XWSUvI19vYoeTiZZaQ2yG25Ic5ugMGXm44vOYpqqfiT2UeMZpVq_WyeGvFq1mWp09G3iGxAB0dBfHRK_0YKnHqrrFJTEFyHFs86dhSUmS24zZcWklPw4jeSe7aETlZy8R6xCN7sprCssdEw61nQdN0cx_GZ7UOGpXAJsaweeXy20oNO705j5mOHIOy4MWYB59n1WHAvFh6SN5-kbsBpuiHBHJK3Q8eari1w.hxvhN6nOdHsNp2SRqfv0Ew",
"proxy": "http://127.0.0.1:6152"
}
chatbot = Chatbot(config, conversation_id=None)
res = chatbot.get_chat_response("hello")
print(res)
while msg := input("输入问题: "):
res = chatbot.get_chat_response(msg)
print(res)