qcyk_aimodule
v0.0.7
Published
后台Ai助手
Readme
index.html
使用
main.js
import aiModule from "qcyk_aimodule";
Vue.use(aiModule);
.vue
<aiModule model="**********智能体******" ref="aiModule" />
import "qcyk_aimodule/style/btnAi.scss";
import logo from "qcyk_aimodule/img/logo.svg";
handleOpenai() {
const aiModule = this.$refs.aiModule;
aiModule.gethint();aiModule.visible = true;
}
nginx
location /api/v3 {
proxy_pass https://ark.cn-beijing.volces.com/api/v3;
proxy_ssl_server_name on;
proxy_set_header Host ark.cn-beijing.volces.com;
proxy_set_header Connection '';
proxy_http_version 1.1;
chunked_transfer_encoding off;
proxy_buffering off;
proxy_cache off;
proxy_set_header X-Forwarded-For $remote_addr;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header Authorization "Bearer *********密钥*************";
}
