Giter VIP home page Giter VIP logo

chatgpt-api's Introduction

Hi there 👋

Hello!

I'm a full-stack programmer(Yige), 📚 having fun with AI Agent. Always learning.

My Blog: https://www.wyr.me

Some Infomation

visitors

Top Langs

Anurag's GitHub stats

Today's Change

Top Langs Recent Week

Top Langs Recent Month

Top Langs Recent Year

Top Langs Every_6 Months

chatgpt-api's People

Contributors

yi-ge avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

chatgpt-api's Issues

Access Token: Not found

[OpenAI][8][CRITICAL] Access Token: Not found Auth0 did not issue an access token.
[OpenAI][9] Attempting to get access token from: https://chat.openai.com/api/auth/session
[OpenAI][9] Access Token: Not found, Please try again with a proxy (or use a new proxy if you are using one)

Failed to create access token.
how to solve this?

PyChatGPT.src.pychatgpt.classes.exceptions.Auth0Exception: Failed to make the first request, Try that again

[root@dbci chatgpt-api]# python3 main.py [OpenAI] Email address: eco*****@gmail.com [OpenAI] Password: er******* [OpenAI] Beginning auth process [OpenAI][1] Making request to https://chat.openai.com/auth/login Traceback (most recent call last): File "main.py", line 42, in <module> options=options) File "/home/wwwroot/chatgpt-api/PyChatGPT/src/pychatgpt/main.py", line 50, in __init__ self._setup() File "/home/wwwroot/chatgpt-api/PyChatGPT/src/pychatgpt/main.py", line 139, in _setup self._create_access_token() File "/home/wwwroot/chatgpt-api/PyChatGPT/src/pychatgpt/main.py", line 157, in _create_access_token openai_auth.create_token() File "/home/wwwroot/chatgpt-api/PyChatGPT/src/pychatgpt/classes/openai.py", line 133, in create_token raise Exceptions.Auth0Exception("Failed to make the first request, Try that again!") PyChatGPT.src.pychatgpt.classes.exceptions.Auth0Exception: Failed to make the first request, Try that again!

登录报错。

No module named 'PyChatGPT.src'

[root@dbci chatgpt-api]# python3 main.py
Traceback (most recent call last):
File "main.py", line 12, in
from PyChatGPT.src.pychatgpt import Chat, Options
ModuleNotFoundError: No module named 'PyChatGPT.src'
[root@dbci chatgpt-api]# python3 -V
Python 3.7.8

Email not found, Check your email address and try again!

求助。bt:

Traceback (most recent call last):
  File "main.py", line 40, in <module>
    email_chat_map[email] = Chat(email=email,
  File "/home/ubuntu/repo/chatgpt-api/PyChatGPT/src/pychatgpt/main.py", line 50, in __init__
    self._setup()
  File "/home/ubuntu/repo/chatgpt-api/PyChatGPT/src/pychatgpt/main.py", line 139, in _setup
    self._create_access_token()
  File "/home/ubuntu/repo/chatgpt-api/PyChatGPT/src/pychatgpt/main.py", line 157, in _create_access_token
    openai_auth.create_token()
  File "/home/ubuntu/repo/chatgpt-api/PyChatGPT/src/pychatgpt/classes/openai.py", line 131, in create_token
    self._part_two()
  File "/home/ubuntu/repo/chatgpt-api/PyChatGPT/src/pychatgpt/classes/openai.py", line 157, in _part_two
    self._part_three(token=csrf_token)
  File "/home/ubuntu/repo/chatgpt-api/PyChatGPT/src/pychatgpt/classes/openai.py", line 190, in _part_three
    self._part_four(url=url)
  File "/home/ubuntu/repo/chatgpt-api/PyChatGPT/src/pychatgpt/classes/openai.py", line 218, in _part_four
    self._part_five(state=state)
  File "/home/ubuntu/repo/chatgpt-api/PyChatGPT/src/pychatgpt/classes/openai.py", line 260, in _part_five
    self._part_six(state=state, captcha=captcha_input)
  File "/home/ubuntu/repo/chatgpt-api/PyChatGPT/src/pychatgpt/classes/openai.py", line 301, in _part_six
    raise Exceptions.Auth0Exception("[OpenAI][6] Email not found, Check your email address and try again!")
PyChatGPT.src.pychatgpt.classes.exceptions.Auth0Exception: [OpenAI][6] Email not found, Check your email address and try again!

检查了变量,email 设置过。

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.