Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

linux 1. 解决网络不通导致npm安装异常问题 2. 解决swagger外网拉取慢的问题 #69

Merged
merged 2 commits into from
Jan 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions docker-compose-linux.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,9 @@ services:
- driver: nvidia
count: "all"
capabilities: ["gpu"]

command: /bin/bash -c 'if [ "${LLM_API}" = "local" ]; then /workspace/qanything_local/scripts/run_for_local_option.sh -c $LLM_API -i $DEVICE_ID -b $RUNTIME_BACKEND -m $MODEL_NAME -t $CONV_TEMPLATE -p $TP -r $GPU_MEM_UTILI; else /workspace/qanything_local/scripts/run_for_cloud_option.sh -c $LLM_API -i $DEVICE_ID -b $RUNTIME_BACKEND; fi; while true; do sleep 5; done'

privileged: true
shm_size: '8gb'
volumes:
Expand Down
3 changes: 3 additions & 0 deletions qanything_kernel/qanything_server/sanic_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@
app.config.REQUEST_MAX_SIZE = 400 * 1024 * 1024


# 将 /static 路径映射到 static 文件夹
app.static('/static', './static')

# CORS中间件,用于在每个响应中添加必要的头信息
@app.middleware("response")
async def add_cors_headers(request, response):
Expand Down
1,782 changes: 1,782 additions & 0 deletions qanything_kernel/qanything_server/static/redoc.standalone.js

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions qanything_kernel/qanything_server/static/swagger-ui-bundle.js

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions qanything_kernel/qanything_server/static/swagger-ui.css

Large diffs are not rendered by default.