Comments (2)
折腾半天,把 0.0.0.0 替换为 localhost 后,终于跑起来了,太折磨
from search_with_lepton.
2024-02-04 21:14:33.492 | INFO | main:init:313 - Creating KV. May take a while for the first time.
2024-02-04 21:14:41.316 | INFO | leptonai.photon.photon:_uvicorn_run:820 - Setting up signal handlers for graceful incoming traffic shutdown after 5 seconds.
2024-02-04 21:14:41,316 - 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-02-04 21:14:41,323 - INFO: Started server process [9096]
2024-02-04 21:14:41,323 - INFO: Waiting for application startup.
2024-02-04 21:14:41.323 | INFO | leptonai.photon.photon:uvicorn_startup:763 - Starting photon app - running startup prep code.
2024-02-04 21:14:41,323 - INFO: Application startup complete.
2024-02-04 21:14:41,324 - INFO: Uvicorn running on http://0.0.0.0:8080 (Press CTRL+C to quit)
Hey I may have came across the same problem.Do you mean by replacing 0.0.0.0 to localhost🤔?
from search_with_lepton.
Related Issues (20)
- RuntimeError: Directory 'ui' does not exist HOT 5
- 集成searxng
- How to answer search results in Chinese! HOT 4
- I modified the information in the INDEX.html file under the UI folder, why is there no effect? HOT 1
- lepton search client config gpt-4 HOT 2
- APIError (API response code 404) HOT 2
- it occur wrong when use npm run build, show useSearchParams() should be wrapped in a suspense boundary at page "/search"
- how to add a button to start new dialogue
- The SSL Verification error
- Frontend fails to fetch the backend request HOT 5
- Why does the content accessed via domain name not have the streaming print output effect, while accessing via IP and port shows the print output effect? HOT 1
- How to obtain video references, for example, from YouTube videos and similar sources, such as Perplexity
- Why >lep login Failed??? HOT 2
- Why >lep login Failed??? HOT 4
- > python3 search_with_lepton.py HOT 2
- Good repository
- openai.AuthenticationError: Unauthorized HOT 2
- start server failed Invalid URL '/api/v1/kv/namespaces': No scheme supplied
- Can not reply in other language
- [BUG] ModuleNotFoundError: No module named 'leptonai.api.workspace' HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from search_with_lepton.