1 Star 0 Fork 1

为懒而努力/fc-tongyi-qwen

forked from liuweidong/fc-tongyi-qwen 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
s.yaml 3.19 KB
一键复制 编辑 原始数据 按行查看 历史
serverless-devs 提交于 2024-02-22 14:40 . Initial commit
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: /*
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/homeriver/fc-qwen-s1q4.git
git@gitee.com:homeriver/fc-qwen-s1q4.git
homeriver
fc-qwen-s1q4
fc-tongyi-qwen
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385