Skip to content
This repository has been archived by the owner on Oct 19, 2023. It is now read-only.

Commit

Permalink
feat: add app logs link
Browse files Browse the repository at this point in the history
  • Loading branch information
zac-li committed Apr 19, 2023
1 parent f07b9c6 commit e954c09
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -524,3 +524,10 @@ curl -sX POST 'https://langchain.wolf.jina.ai/api/run' \
| [Sequential Chains](examples/sequential_executors.md) | N/A | Build & scale `Chains` in separate `Executor`s |
| [Branching Chains](examples/branching.md) | N/A | Branching `Chains` in separate `Executor`s to allow parallel execution |
## Frequently Asked Questions
- [My client that connects to the App gets timed-out, what should I do?](#my-client-that-connects-to-the-app-gets-timed-out-what-should-I-do)
### My client that connects to the App gets timed-out, what should I do?
If you make long HTTP requests, you may experience timeouts due to limitations in the OSS we used in `langchain-serve`. While we are working to permanently address this issue, we recommend using HTTP/1.1 in your client as a temporary workaround.
6 changes: 5 additions & 1 deletion lcserve/flow.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
BABYAGI_APP_NAME = 'babyagi'
ServingGatewayConfigFile = 'servinggateway_config.yml'
JCloudConfigFile = 'jcloud_config.yml'
APP_LOGS_URL = 'https://dashboard.wolf.jina.ai/d/flow/flow-monitor?var-flow={flow}&var-datasource=thanos&orgId=2&from=now-24h&to=now&viewPanel=85'


def syncify(f):
Expand Down Expand Up @@ -506,9 +507,12 @@ def _replace_wss_with_https(endpoint: str):

status: Dict = app_status['status']
endpoint = _get_endpoint(status)
_add_row('AppID', app_id, bold_key=True, bold_value=True)
flow_namespace = app_id.split("-")[1]

_add_row('App ID', app_id, bold_key=True, bold_value=True)
_add_row('Phase', status.get('phase', ''))
_add_row('Endpoint', endpoint)
_add_row('App logs', APP_LOGS_URL.format(flow=flow_namespace))
_add_row('Swagger UI', _replace_wss_with_https(f'{endpoint}/docs'))
_add_row('OpenAPI JSON', _replace_wss_with_https(f'{endpoint}/openapi.json'))
console.print(_t)
Expand Down

0 comments on commit e954c09

Please sign in to comment.