OpenAI.AuthenticationError: 未经授权

作者: watertianyi创建于 2024年7月2日更新于 2024年7月10日

2024-07-02 11:13:58.658 | INFO | __main__:init:426 - Creating KV. May take a while for the first time. 2024-07-02 11:13:58.662 | INFO | leptonai.photon.photon:_uvicorn_run:837 - Setting up signal handlers for graceful incoming traffic shutdown after 5 seconds. 2024-07-02 11:13:58,662 - INFO: If you are using standard photon, a few urls that may be helpful: - http://0.0.0.0:8080/docs OpenAPI documentation - http://0.0.0.0:8080/redoc Redoc documentation - http://0.0.0.0:8080/openapi.json Raw OpenAPI schema - http://0.0.0.0:8080/metrics Prometheus metrics If you are using Python clients, here is an example code snippet: from leptonai.client import Client, local client = Client(local(port=8080)) client.healthz() # checks the health of the photon client.paths() # lists all the paths of the photon client.method_name? # If client has a method_name method, get the docstring client.method_name(...) # calls the method_name method If you are using ipython, you can use tab completion by typing `client.` and then press tab. 2024-07-02 11:13:58,672 - INFO: Started server process [778289] 2024-07-02 11:13:58,672 - INFO: Waiting for application startup. 2024-07-02 11:13:58.673 | INFO | leptonai.photon.photon:uvicorn_startup:776 - Starting photon app - running startup prep code. 2024-07-02 11:13:58,673 - INFO: Application startup complete. 2024-07-02 11:13:58,673 - INFO: Uvicorn running on http://0.0.0.0:8080 (Press CTRL+C to quit) 2024-07-02 11:14:03,179 - INFO: 127.0.0.1:50610 - "GET / HTTP/1.1" 307 Temporary Redirect 2024-07-02 11:14:03,198 - INFO: 127.0.0.1:50610 - "GET /ui/index.html HTTP/1.1" 304 Not Modified 2024-07-02 11:14:03,220 - INFO: 127.0.0.1:50610 - "GET /ui/_next/static/media/c9a5bc6a7c948fb0-s.p.woff2 HTTP/1.1" 304 Not Modified 2024-07-02 11:14:03,221 - INFO: 127.0.0.1:50614 - "GET /ui/_next/static/css/c45868dfc0d7a6fe.css HTTP/1.1" 304 Not Modified 2024-07-02 11:14:03,231 - INFO: 127.0.0.1:50614 - "GET /ui/_next/static/chunks/webpack-fc4785faa12a4784.js HTTP/1.1" 304 Not Modified 2024-07-02 11:14:03,232 - INFO: 127.0.0.1:50610 - "GET /ui/_next/static/chunks/fd9d1056-7fda3e9b28bca7f7.js HTTP/1.1" 304 Not Modified 2024-07-02 11:14:03,232 - INFO: 127.0.0.1:50622 - "GET /ui/_next/static/chunks/938-fe6b19e2b7ce9569.js HTTP/1.1" 304 Not Modified 2024-07-02 11:14:03,233 - INFO: 127.0.0.1:50644 - "GET /ui/_next/static/chunks/445-0d7890e16447ec0a.js HTTP/1.1" 304 Not Modified 2024-07-02 11:14:03,233 - INFO: 127.0.0.1:50632 - "GET /ui/_next/static/chunks/main-app-e7ab2f567f2172b4.js HTTP/1.1" 304 Not Modified 2024-07-02 11:14:03,234 - INFO: 127.0.0.1:50658 - "GET /ui/_next/static/chunks/app/page-aa89276e7ee62c06.js HTTP/1.1" 304 Not Modified 2024-07-02 11:14:09,343 - INFO: 127.0.0.1:50658 - "GET

内容来源: leptonai/search_with_lepton