-
Notifications
You must be signed in to change notification settings - Fork 119
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update: temp fix for ratelimit (cloudflare)
- Loading branch information
Showing
8 changed files
with
135 additions
and
112 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,15 @@ | ||
import argparse | ||
from importlib import metadata | ||
from poe_api_wrapper import PoeExample | ||
|
||
def main(): | ||
parser = argparse.ArgumentParser(prog='poe',description='Poe.com wrapper. Have free access to ChatGPT, Claude, Llama, Gemini, Google-PaLM and more!') | ||
parser.add_argument('--b', help='p-b token for poe.com | m-b token for quora.com', required=True) | ||
parser.add_argument('--lat', help='p-lat token for poe.com | m-lat token for quora.com', required=True) | ||
parser.add_argument('-v','--version',action='version', version='v'+metadata.version('poe-api-wrapper')) | ||
parser.add_argument('-b', help='p-b token for poe.com', required=True) | ||
parser.add_argument('-lat', help='p-lat token for poe.com', required=True) | ||
parser.add_argument('-f', help='formkey for poe.com') | ||
parser.add_argument('-v', '--version',action='version', version='v'+metadata.version('poe-api-wrapper')) | ||
args = parser.parse_args() | ||
from poe_api_wrapper import PoeExample | ||
PoeExample({'b': args.b, 'lat': args.lat}).chat_with_bot() | ||
PoeExample({'p-b': args.b, 'p-lat': args.lat, 'formkey': args.f}).chat_with_bot() | ||
|
||
if __name__=='__main__': | ||
main() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.