Code Monkey home page Code Monkey logo

chatgpt-proxy's Introduction

18870's GitHub stats

From: 07 July 2024 - To: 14 July 2024

Python        32 hrs 25 mins  ⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣄⣀   92.79 %
JavaScript    1 hr 9 mins     ⣷⣀⣀⣀⣀⣀⣀⣀⣀⣀⣀⣀⣀⣀⣀⣀⣀⣀⣀⣀⣀⣀⣀⣀⣀   03.33 %
Other         22 mins         ⣤⣀⣀⣀⣀⣀⣀⣀⣀⣀⣀⣀⣀⣀⣀⣀⣀⣀⣀⣀⣀⣀⣀⣀⣀   01.09 %
Go            14 mins         ⣄⣀⣀⣀⣀⣀⣀⣀⣀⣀⣀⣀⣀⣀⣀⣀⣀⣀⣀⣀⣀⣀⣀⣀⣀   00.71 %
Markdown      13 mins         ⣄⣀⣀⣀⣀⣀⣀⣀⣀⣀⣀⣀⣀⣀⣀⣀⣀⣀⣀⣀⣀⣀⣀⣀⣀   00.62 %

Since Apr 24 2021
wakatime

chatgpt-proxy's People

Contributors

18870 avatar

Stargazers

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

Watchers

 avatar

chatgpt-proxy's Issues

这个怎么用

我部署成功了,但不懂怎么运用

2023-04-14 12:04:00,458 - chatgpt_proxy.proxy - ERROR - Response:
{"models":[{"slug":"text-davinci-002-render-sha","max_tokens":4097,"title":"Turbo (Default for free users)","description":"The standard ChatGPT model","tags":[],"qualitative_properties":{}}]}
�[32mINFO�[0m: 127.0.0.1:7369 - "�[1mGET / HTTP/1.1�[0m" �[31m404 Not Found�[0m
�[32mINFO�[0m: 127.0.0.1:7459 - "�[1mGET /backend-api HTTP/1.1�[0m" �[33m307 Temporary Redirect�[0m
�[32mINFO�[0m: 127.0.0.1:7459 - "�[1mGET /backend-api/ HTTP/1.1�[0m" �[31m404 Not Found�[0m
�[32mINFO�[0m: 127.0.0.1:7550 - "�[1mGET /api/auth/session HTTP/1.1�[0m" �[31m404 Not Found�[0m
�[32mINFO�[0m: 127.0.0.1:7584 - "�[1mGET /backend-api/api/auth/session HTTP/1.1�[0m" �[31m404 Not Found�[0m

运行的时候报错,是为什么呢?

python3 -m chatgpt_proxy
INFO: Started server process [45020]
INFO: Waiting for application startup.
2023-04-16 16:51:21,651 - chatgpt_proxy.proxy - ERROR - 'ascii' codec can't encode character '\xdf' in position 102: ordinal not in range(128)
Traceback (most recent call last):
File "/Users/s/PycharmProjects/chatgpt_crack_test/chatgpt-proxy/chatgpt_proxy/proxy.py", line 169, in _refresh_task
await self._refresh_puid()
File "/Users/s/PycharmProjects/chatgpt_crack_test/chatgpt-proxy/chatgpt_proxy/proxy.py", line 151, in _refresh_puid
resp = await client.get(
^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/httpx/_client.py", line 1754, in get
return await self.request(
^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/httpx/_client.py", line 1530, in request
return await self.send(request, auth=auth, follow_redirects=follow_redirects)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/httpx/_client.py", line 1617, in send
response = await self._send_handling_auth(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/httpx/_client.py", line 1645, in _send_handling_auth
response = await self._send_handling_redirects(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/httpx/_client.py", line 1682, in _send_handling_redirects
response = await self._send_single_request(request)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/httpx/_client.py", line 1719, in _send_single_request
response = await transport.handle_async_request(request)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/httpx/_transports/asgi.py", line 162, in handle_async_request
await self.app(scope, receive, send)
File "/usr/local/lib/python3.11/site-packages/fastapi/applications.py", line 276, in call
await super().call(scope, receive, send)
File "/usr/local/lib/python3.11/site-packages/starlette/applications.py", line 122, in call
await self.middleware_stack(scope, receive, send)
File "/usr/local/lib/python3.11/site-packages/starlette/middleware/errors.py", line 184, in call
raise exc
File "/usr/local/lib/python3.11/site-packages/starlette/middleware/errors.py", line 162, in call
await self.app(scope, receive, _send)
File "/usr/local/lib/python3.11/site-packages/starlette/middleware/exceptions.py", line 79, in call
raise exc
File "/usr/local/lib/python3.11/site-packages/starlette/middleware/exceptions.py", line 68, in call
await self.app(scope, receive, sender)
File "/usr/local/lib/python3.11/site-packages/fastapi/middleware/asyncexitstack.py", line 21, in call
raise e
File "/usr/local/lib/python3.11/site-packages/fastapi/middleware/asyncexitstack.py", line 18, in call
await self.app(scope, receive, send)
File "/usr/local/lib/python3.11/site-packages/starlette/routing.py", line 718, in call
await route.handle(scope, receive, send)
File "/usr/local/lib/python3.11/site-packages/starlette/routing.py", line 276, in handle
await self.app(scope, receive, send)
File "/usr/local/lib/python3.11/site-packages/starlette/routing.py", line 66, in app
response = await func(request)
^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/fastapi/routing.py", line 237, in app
raw_response = await run_endpoint_function(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/fastapi/routing.py", line 163, in run_endpoint_function
return await dependant.call(**values)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/s/PycharmProjects/chatgpt_crack_test/chatgpt-proxy/chatgpt_proxy/proxy.py", line 64, in proxy
rp_resp = await self._send_request(
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/s/PycharmProjects/chatgpt_crack_test/chatgpt-proxy/chatgpt_proxy/proxy.py", line 89, in _send_request
rp_req = self.client.build_request(url=url, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/httpx/_client.py", line 358, in build_request
return Request(
^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/httpx/_models.py", line 335, in init
Cookies(cookies).set_cookie_header(self)
File "/usr/local/lib/python3.11/site-packages/httpx/_models.py", line 1045, in set_cookie_header
self.jar.add_cookie_header(urllib_request)
File "/usr/local/Cellar/[email protected]/3.11.2_1/Frameworks/Python.framework/Versions/3.11/lib/python3.11/http/cookiejar.py", line 1373, in add_cookie_header
request.add_unredirected_header(
File "/usr/local/lib/python3.11/site-packages/httpx/_models.py", line 1191, in add_unredirected_header
self.request.headers[key] = value
~~~~~~~~~~~~~~~~~~~~^^^^^
File "/usr/local/lib/python3.11/site-packages/httpx/_models.py", line 235, in setitem
set_value = value.encode(self._encoding or "utf-8")
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
UnicodeEncodeError: 'ascii' codec can't encode character '\xdf' in position 102: ordinal not in range(128)
INFO: Application startup complete.
INFO: Uvicorn running on http://127.0.0.1:7800 (Press CTRL+C to quit)

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.