代码拉取完成,页面将自动刷新
同步操作将从 liuweidong/fc-tongyi-qwen 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
edition: 1.0.0
name: fc-qwen
vars:
region: 'cn-beijing'
apiKey: 'sk-490adceaa9644f5e95b644faede71699'
model: 'qwen-turbo' # 千问模型
code: 'fc-qwen'
service:
name: 'fc-qwen'
description: '通义千问客户端部署到函数计算'
internetAccess: true
services:
client:
component: fc
props:
region: ${vars.region}
service: ${vars.service}
function:
name: proxy
description: 通义千问代理服务
handler: index.handler
timeout: 600
diskSize: 512
caPort: 8000
instanceType: c1
runtime: custom.debian10
cpu: 1
instanceConcurrency: 100
memorySize: 1024
layers:
- acs:fc:${vars.region}:official:layers/Python310/versions/2
- acs:fc:${vars.region}:official:layers/Python310-Package-Collection/versions/2
- acs:fc:${vars.region}:official:layers/Python3-Flask2x/versions/2
environmentVariables:
DASHSCOPE_API_KEY: ${vars.apiKey}
MODEL_NAME: ${vars.model}
PYTHONPATH: /opt/python:/code:/code/python
LD_LIBRARY_PATH: /code:/code/lib:/usr/local/lib:/opt/lib:/opt/php8.1/lib:/opt/php8.0/lib:/opt/php7.2/lib
PATH: /opt/python3.10/bin:/usr/local/bin/apache-maven/bin:/usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/ruby/bin:/opt/bin:/code:/code/bin
codeUri: ./code/proxy
triggers:
- name: defaultTrigger
description: ''
type: http
qualifier: LATEST
config:
methods:
- GET
- POST
- PUT
- DELETE
authType: anonymous
disableURLInternet: false
customDomains:
- domainName: auto
protocol: HTTP
routeConfigs:
- path: /*
proxy:
component: fc
actions:
pre-deploy:
- run: npm i
path: ./code/client
props:
region: ${vars.region}
service: ${vars.service}
function:
name: client
description: 函数计算大模型服务客户端
timeout: 3000
layers:
- acs:fc:${vars.region}:official:layers/Nodejs18/versions/1
instanceType: c1
runtime: custom.debian10
instanceConcurrency: 5
memorySize: 3072
diskSize: 10240
cpu: 2.0
environmentVariables:
NODE_PATH: /opt/nodejs/node_modules
PATH: >-
/opt/nodejs18/bin::/usr/local/bin/apache-maven/bin:/usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/ruby/bin:/opt/bin:/code:/code/bin
BASE_URL: '${client.output.url.system_intranet_url}' # 接入chat server 内部网络
CODE: ${vars.code}
codeUri: ./code/client
caPort: 3000
triggers:
- name: defaultTrigger
type: http
config:
authType: anonymous
methods:
- GET
- POST
- PUT
- DELETE
- HEAD
- OPTIONS
customDomains:
- domainName: auto
protocol: HTTP
routeConfigs:
- path: /*
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。