chatgpt-python icon indicating copy to clipboard operation
chatgpt-python copied to clipboard

Not working since latest update

Open jamieasp opened this issue 2 years ago • 8 comments

Thanks for the update - excited to try streaming.

Neither .stream nor .chat are working for me since the last update though:

conversation.chat(query) Traceback (most recent call last): File "", line 1, in File "/home/runner/replitappname/venv/lib/python3.8/site-packages/chatgpt/chatgpt.py", line 412, in chat raise ChatgptError( chatgpt.errors.ChatgptError: \n

jamieasp avatar Dec 12 '22 03:12 jamieasp

me too

bumandpunk avatar Dec 12 '22 03:12 bumandpunk

me too This code:

` #!/usr/bin/env python

-- coding: utf-8 --

import sys from chatgpt import Conversation

conversation = Conversation()

for chunk in conversation.stream("We are going to start a conversation. I will speak English and you will speak Portuguese."): print(chunk, end="") sys.stdout.flush()

print(conversation.chat("What's the color of the sky?")) `

doing nothing

darwinva97 avatar Dec 12 '22 04:12 darwinva97

The guys from openAI has updated the login mechanism. I think I know how to fix the thing, and I will make an update to address the issue today or tomorrow.

AlexSua avatar Dec 12 '22 08:12 AlexSua

btw, do we support using the API key to login. Guess that's safer and easier for wider adoption.

MJeremy2017 avatar Dec 12 '22 13:12 MJeremy2017

OpenAI sure doesn't feel so open.

Rainjob avatar Dec 14 '22 04:12 Rainjob

Got an error, I think it comes from Cloudflare protection

"

<div class="footer" role="contentinfo">
    <div class="footer-inner">
        <div class="clearfix diagnostic-wrapper">
            <div class="ray-id">Ray ID: <code>77999b74e9781294</code></div>
        </div>
        <div class="text-center">Performance &amp; security by <a rel="noopener noreferrer" href="https://www.cloudflare.com?utm_source=challenge&utm_campaign=m" target="_blank">Cloudflare</a></div>
    </div>
</div>"

alkollo avatar Dec 14 '22 20:12 alkollo

https://github.com/acheong08/ChatGPT/issues/261 I think this issue is deeply related. (translated by google translate)

kazu-321 avatar Dec 15 '22 03:12 kazu-321

Has this been fixed yet?

gptlang avatar Dec 27 '22 15:12 gptlang