labteral / chatgpt-python

Unofficial Python SDK for OpenAI's ChatGPT
https://labteral.github.io/chatgpt-python/
GNU General Public License v3.0
523 stars 76 forks source link

Not working since latest update #17

Open jamieasp opened 1 year ago

jamieasp commented 1 year ago

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

bumandpunk commented 1 year ago

me too

darwinva97 commented 1 year ago

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

AlexSua commented 1 year ago

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.

MJeremy2017 commented 1 year ago

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

Rainjob commented 1 year ago

OpenAI sure doesn't feel so open.

alkollo commented 1 year ago

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>"
kazu-321 commented 1 year ago

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

gptlang commented 1 year ago

Has this been fixed yet?