From b206a1eb6364e519741ceb89e3f3b63910b4e1ef Mon Sep 17 00:00:00 2001 From: Raju Komati Date: Fri, 28 Apr 2023 02:27:06 +0530 Subject: update openai_rev module add test file with simple use --- testing/accounts.txt | 14 ++++++++++++++ testing/forefront_test.py | 2 +- testing/poe_account_create_test.py | 9 ++++++--- testing/poe_test.py | 2 +- testing/test_main.py | 21 +++++++++++++++++++++ 5 files changed, 43 insertions(+), 5 deletions(-) create mode 100644 testing/test_main.py (limited to 'testing') diff --git a/testing/accounts.txt b/testing/accounts.txt index 5d687ab7..82a8957d 100644 --- a/testing/accounts.txt +++ b/testing/accounts.txt @@ -1,3 +1,17 @@ idkaovprvbrjbb@bugfoo.com:eyJhbGciOiJSUzI1NiIsImtpZCI6Imluc18yTzZ3UTFYd3dxVFdXUWUyQ1VYZHZ2bnNaY2UiLCJ0eXAiOiJKV1QifQ.eyJhenAiOiJodHRwczovL2FjY291bnRzLmZvcmVmcm9udC5haSIsImV4cCI6MTY4MjYxNDUxOSwiaWF0IjoxNjgyNjE0NDU5LCJpc3MiOiJodHRwczovL2NsZXJrLmZvcmVmcm9udC5haSIsIm5iZiI6MTY4MjYxNDQ0OSwic2lkIjoic2Vzc18yUDFBeFNHNnFHdzhWSFNla2lhMVB0NWJYdW8iLCJzdWIiOiJ1c2VyXzJQMUF4TWlNRzFLb00xeFFUQVExcFFjd0d3dyJ9.Nw82ExUQMvJE8oVAmUYl81dS9J43YK0AQYwLJjE5fCozanqQi946q_6DRRQz-9kkm-Zd60zuFzl_ANgZ9lLOOSMd89oJArbu3VUOA8Q-BOtUE0INmwvPCP7KtLDEVRGEsF8oIddwE1Da1rEToBEHrwBuzOVbRvoKqbJ7KZrRB7tHzUVyik3n7K3bddyecIA5Gtj8Nmc_NvwVaBelHOfjH0eoU7y0oza-bOJPNCRosjV3kFdoYhHNtNvQkfIF7MSmqyeC-NHhDVdmv57ehkVdr_H0_MyoT2kNWEk1ETzST36Lhu06yaaWzAPhjpcThN8Q7OFNXSHUA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0ebV_rtEoD9mSuFytjcG_cufdKCTZoS_ddAckQZDduzfK1LtenbUMNigd9YjTXBeJV6tNOJIyiKXJCA58_puT7_baMKKnCiSlOA4OazatbLBv8vwKrCz1zdFZvkvPLmXoZ4-EA16CWxbmaJmi-G7fzdfohqxuZn7vguWumSgx8P3YDODggYfqvy3cd2-PAcpde066UgWCvRqXWn8s-01EropKbI_lg +ogokkecbrckufe@bugfoo.com:eyJhbGciOiJSUzI1NiIsImtpZCI6Imluc18yTzZ3UTFYd3dxVFdXUWUyQ1VYZHZ2bnNaY2UiLCJ0eXAiOiJKV1QifQ.eyJhenAiOiJodHRwczovL2FjY291bnRzLmZvcmVmcm9udC5haSIsImV4cCI6MTY4MjYyODgwMSwiaWF0IjoxNjgyNjI4NzQxLCJpc3MiOiJodHRwczovL2NsZXJrLmZvcmVmcm9udC5haSIsIm5iZiI6MTY4MjYyODczMSwic2lkIjoic2Vzc18yUDFkdThHWkdJUHR4bXZvY2ZQMVJaSU12TnEiLCJzdWIiOiJ1c2VyXzJQMWR1N1RIN0VEeGx6NTQwTktITHdFalZSWCJ9.S-VMHfS9U-OYRBJsL6VjQzQawnV3opwYf0AQNQYiXaieMQTD8Op351zx9X6wKUk7JWeNZykP9-D8eNMBR8MeQ4ePxIRWmLtVnTBxJsoTNkXpC9FpbRzhTr84fXwkFccg-Yr3uPqdYuDz2EiPpROi3D2o072cNU1ZE2P4gSf6MOkatXP2l7ZYyNyI9WJEjkDJ5nRuGErPk9HLUuWzpqefmJSoo0PyrCT0OZSSGaNeB-QrcrLrw19UxqHcBdMYsay0HicX8A94HFerVlGz14s8aM4TdZNHWRZAgI627-HP23DZe53HUVTBCsRA6KYv4D7TI1PzVGrZVMweG1oaMkvr0A diff --git a/testing/forefront_test.py b/testing/forefront_test.py index 092d1a74..8d25ed89 100644 --- a/testing/forefront_test.py +++ b/testing/forefront_test.py @@ -6,4 +6,4 @@ print(token) # get a response for response in forefront.StreamingCompletion.create(token=token, prompt='hello world', model='gpt-4'): - print(response) + print(response.text, end='') diff --git a/testing/poe_account_create_test.py b/testing/poe_account_create_test.py index 24751c4a..7072597f 100644 --- a/testing/poe_account_create_test.py +++ b/testing/poe_account_create_test.py @@ -1,17 +1,20 @@ from hashlib import md5 from json import dumps from re import findall +from typing import Optional -from quora import extract_formkey -from quora.mail import Emailnator from tls_client import Session as TLS from twocaptcha import TwoCaptcha +from openai_rev.quora import extract_formkey +from openai_rev.quora.mail import Emailnator + solver = TwoCaptcha('72747bf24a9d89b4dcc1b24875efd358') class Account: - def create(proxy: None or str = None, logging: bool = False, enable_bot_creation: bool = False): + @staticmethod + def create(proxy: Optional[str] = None, logging: bool = False, enable_bot_creation: bool = False): client = TLS(client_identifier='chrome110') client.proxies = {'http': f'http://{proxy}', 'https': f'http://{proxy}'} if proxy else None diff --git a/testing/poe_test.py b/testing/poe_test.py index 5cab067c..809804f2 100644 --- a/testing/poe_test.py +++ b/testing/poe_test.py @@ -1,6 +1,6 @@ from time import sleep -import quora +from openai_rev import quora token = quora.Account.create(proxy=None, logging=True) print('token', token) diff --git a/testing/test_main.py b/testing/test_main.py new file mode 100644 index 00000000..956c004b --- /dev/null +++ b/testing/test_main.py @@ -0,0 +1,21 @@ +from openai_rev import openai_rev, Provider, quora, forefront + +# usage You +response = openai_rev.Completion.create(Provider.You, prompt='Write a poem on Lionel Messi') +print(response) +print(f'END') +# usage Poe +# token = quora.Account.create(logging=False) +token = 'GKzCahZYGKhp76LfE197xw==' +response = openai_rev.Completion.create( + Provider.Poe, prompt='Write a poem on Lionel Messi', token=token, model='ChatGPT' +) +print(response) +print(f'END') + +# usage forefront +token = forefront.Account.create(logging=False) +response = openai_rev.Completion.create( + Provider.ForeFront, prompt='Write a poem on Lionel Messi', model='gpt-4', token=token +) +print(response) -- cgit v1.2.3