Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't use poe #4

Closed
Meksis opened this issue Apr 3, 2023 · 2 comments
Closed

Can't use poe #4

Meksis opened this issue Apr 3, 2023 · 2 comments

Comments

@Meksis
Copy link

Meksis commented Apr 3, 2023

Yesterday I tried to use poe and made some working code for tests. But now It doesn't work and raises an error:

  File "L:\Programms\Python\lib\site-packages\poe\__init__.py", line 85, in create
    next_data = loads(search(r'json">(.+?)</script>', init.text).group(1))
AttributeError: 'NoneType' object has no attribute 'group'

I didn't made any changes with lib.

@Meksis
Copy link
Author

Meksis commented Apr 3, 2023

Forgot to mark that I initialize poe token by self.__gpt_4_token = poe.Account.create(logging = True) and response by response += poe.Completion.create( model = 'gpt-4', prompt = prompt, token = self.__gpt_4_token ).completion.choices[0].text

@xtekky
Copy link
Owner

xtekky commented Apr 6, 2023

hi it works completely fine and I pushed an update, can u try again, if issues persist they are most likely due to altering the code

@xtekky xtekky closed this as completed Apr 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants