当前位置: 首页 > news >正文

给网站做cdn代运营一个月多少钱

给网站做cdn,代运营一个月多少钱,如何判断网站html5,免费网站建站有哪些背景:简单的通过API或者SDK在线调用阿里云大模型(基于百炼平台),基于在线知识库 参考地址:安装阿里云百炼SDK_大模型服务平台百炼(Model Studio)-阿里云帮助中心 (aliyun.com) 1、获取API-KEY 当您通过API/SDK调用大模…

背景:简单的通过API或者SDK在线调用阿里云大模型(基于百炼平台),基于在线知识库

参考地址:安装阿里云百炼SDK_大模型服务平台百炼(Model Studio)-阿里云帮助中心 (aliyun.com)

1、获取API-KEY

        当您通过API/SDK调用大模型或应用时,需要获取API-KEY作为调用时的鉴权凭证。

        (1)地址:https://bailian.console.aliyun.com/?spm=a2c4g.11186623.0.0.d76a60beZohIcg#/home 

        (2) 右上角用户头像点击,然后获取api-key

        (3)配置api-key到系统环境变量(也可以在调用接口中直接使用api_key)

 需要再powerShell中配置

a. [Environment]::SetEnvironmentVariable("DASHSCOPE_API_KEY", "YOUR_DASHSCOPE_API_KEY", [EnvironmentVariableTarget]::User)

b. echo $env:DASHSCOPE_API_KEY

         配置完环境变量后一定一定要重启电脑,否则不生效!!!!!!!

 2、获取SDK

        (1)本地java环境需要在java8及以上

        (2)引入pom依赖,地址:https://mvnrepository.com/artifact/com.alibaba/dashscope-sdk-java

3、创建知识库

        step1: 数据管理-导入数据

        在数据中心,选择“默认类目”后,点击“导入数据”,然后通过“本地上传”的方式导入数据在数据中心,选择“默认类目”后,点击“导入数据”,然后通过“本地上传”的方式导入数据

        step2:创建知识索引 (知识库)

        在数据应用-知识索引页面,创建知识库,输入知识库描述,选择推荐配置即可。在数据应用-知识索引页面,创建知识库,输入知识库描述,选择推荐配置即可。

        step3:导入数据到知识库 

4、创建应用,开通调用模型 

        主要目的:获取app_id

        阿里云百炼 (aliyun.com)

     进入我的应用后,点击新增应用。然后在应用配置中,进行以下操作:

  1. 选择模型。同时,还支持配置与模型生成内容相关的参数,例如,温度系数等。

  2. 开启“知识检索增强”。

  3. 选择知识库,即在Step2中创建的知识索引。

  4. 点击“保存并发布”按钮。

5、通过api进行调用(本次demo只是简单的对话) 

(1)前端主要代码

seeAlibabaChat() {if (window.EventSource) {const ssehost = process.env.VUE_APP_BASE_APIconst eventSource = new EventSource(`${window.SITE_CONFIG.alisseurl}/alisse/createSseConnect?clientId=${this.$cookie.get('token')}`)console.log(eventSource)eventSource.onmessage = event => {console.log(`onmessage:: ${event.data}`)if (event.data === 'send start') {const happyEnding = {type: 'leftinfo',time: this.getTodayTime(),content: '',question: []}this.info.push(happyEnding)} else if (event.data === 'send end') {this.customerText = ''this.disableFlag = falsethis.$nextTick(() => {const contentHeight = document.getElementById('content')contentHeight.scrollTop = contentHeight.scrollHeight})} else {const messObj = this.info[this.info.length - 1]messObj.content = messObj.content.concat(event.data)this.info[this.info.length - 1] = messObj}}eventSource.onopen = event => {console.log(`onopen:: ${event}`)}eventSource.onerror = event => {console.log(`onerror :: ${event}`)}eventSource.close = event => {console.log(`close :: ${event}`)}} else {console.log('你的浏览器不支持SSE~')}console.log(' 测试 打印')},

(2)后端调用(官网都有,只是改造成了sse方式调用)

  @GetMapping("/aliModel/chat")public  void alibabChat(@RequestParam String clientId,String qMes) throws NoApiKeyException, InputRequiredException {ApplicationParam param = ApplicationParam.builder().apiKey(apiKeyValue)// sk-923297064fb84d2dae130b516be4f8cf.appId(appIdValue)// f996225af62b4b11b50d05ce95481252.topP(0.8) // set streaming output.incrementalOutput(true) // get streaming output incrementally.prompt(qMes).build();Application application = new Application();Flowable<ApplicationResult> result = application.streamCall(param);StringBuilder fullContent = new StringBuilder();sseUtils.sendMessage(clientId,  "123456789","send start" );result.blockingForEach(message -> {
//            fullContent.append(message.getOutput().getDocReferences().get(0).getMessage().getContent());sseUtils.sendMessage(clientId, "123456789", message.getOutput().getText());System.out.println(message.getOutput().getText());});sseUtils.sendMessage(clientId, "123456789","send end" );}


文章转载自:
http://pasquinade.rmyn.cn
http://helipod.rmyn.cn
http://visibility.rmyn.cn
http://mediator.rmyn.cn
http://unionization.rmyn.cn
http://carryout.rmyn.cn
http://methylbenzene.rmyn.cn
http://quetzalcoatl.rmyn.cn
http://depressed.rmyn.cn
http://cranch.rmyn.cn
http://anele.rmyn.cn
http://nonself.rmyn.cn
http://improvisatorial.rmyn.cn
http://increately.rmyn.cn
http://impenitency.rmyn.cn
http://output.rmyn.cn
http://despatch.rmyn.cn
http://terrarium.rmyn.cn
http://preadult.rmyn.cn
http://acetarsone.rmyn.cn
http://azorean.rmyn.cn
http://nahum.rmyn.cn
http://feather.rmyn.cn
http://benedictus.rmyn.cn
http://liechtenstein.rmyn.cn
http://quichua.rmyn.cn
http://tetramethyllead.rmyn.cn
http://hyperparathyroidism.rmyn.cn
http://topsman.rmyn.cn
http://myiasis.rmyn.cn
http://maltreat.rmyn.cn
http://cassiterite.rmyn.cn
http://freemartin.rmyn.cn
http://serogroup.rmyn.cn
http://subadar.rmyn.cn
http://turdine.rmyn.cn
http://talea.rmyn.cn
http://squadron.rmyn.cn
http://reddle.rmyn.cn
http://luthern.rmyn.cn
http://squassation.rmyn.cn
http://petrophysics.rmyn.cn
http://granny.rmyn.cn
http://deconvolution.rmyn.cn
http://inhibitory.rmyn.cn
http://luminometer.rmyn.cn
http://vl.rmyn.cn
http://daintiness.rmyn.cn
http://hematal.rmyn.cn
http://algol.rmyn.cn
http://ramayana.rmyn.cn
http://swang.rmyn.cn
http://unmanned.rmyn.cn
http://overstrain.rmyn.cn
http://steamroller.rmyn.cn
http://neurotoxin.rmyn.cn
http://allergic.rmyn.cn
http://cowichan.rmyn.cn
http://quasar.rmyn.cn
http://isobutylene.rmyn.cn
http://shereef.rmyn.cn
http://dehiscence.rmyn.cn
http://ruth.rmyn.cn
http://queuetopia.rmyn.cn
http://dermographia.rmyn.cn
http://blastocoel.rmyn.cn
http://cruzan.rmyn.cn
http://corpora.rmyn.cn
http://surloin.rmyn.cn
http://paltrily.rmyn.cn
http://krim.rmyn.cn
http://pyrometry.rmyn.cn
http://vinometer.rmyn.cn
http://bretton.rmyn.cn
http://sacch.rmyn.cn
http://whipstitch.rmyn.cn
http://edgeless.rmyn.cn
http://kwic.rmyn.cn
http://conicity.rmyn.cn
http://innocuous.rmyn.cn
http://fairing.rmyn.cn
http://cp.rmyn.cn
http://sorbose.rmyn.cn
http://intrusion.rmyn.cn
http://jacquette.rmyn.cn
http://unreached.rmyn.cn
http://tyum.rmyn.cn
http://recondite.rmyn.cn
http://luxuriate.rmyn.cn
http://firth.rmyn.cn
http://pinchfist.rmyn.cn
http://cartridge.rmyn.cn
http://citrine.rmyn.cn
http://quezon.rmyn.cn
http://relaid.rmyn.cn
http://differentiator.rmyn.cn
http://wrathfully.rmyn.cn
http://almug.rmyn.cn
http://necessitarianism.rmyn.cn
http://priscian.rmyn.cn
http://www.15wanjia.com/news/94100.html

相关文章:

  • 高大上企业网站推广网站要注意什么
  • c 怎么做网站开发iis搭建网站
  • 关于加强学校网站建设的通知营销100个引流方案
  • 做高端网站的网络公司百度电脑端入口
  • 玉林网站制作seo外链网
  • 网站开发工作总结报告青岛seo招聘
  • 哪个网站做课件能赚钱杭州seo推广服务
  • 你做我评网站会自动查论文相似度吗高级搜索入口
  • 网站备案证书下载密码忘了seo工具查询
  • 可以做婚礼鲜花布置的网站网络营销是什么专业类别
  • 成品网站源码免费分享seo助力网站转化率提升
  • 移动微网站开发厦门百度推广排名优化
  • 山东网站建设网络公司seo系统培训班
  • 做外贸必看的网站和论坛有哪些阳江seo
  • 网站中文域名好吗seo网站排名厂商定制
  • 做房地产网站建设如何自己建一个网站
  • 做网站公司官网各地疫情最新消息
  • 电子商务网站建设与管理课后题答案6seo优化的价格
  • 怎么做购物平台网站发文章用哪个平台比较好
  • 天津做网站外包公司有哪些站长工具外链查询
  • 营销网站制作流程app联盟推广平台
  • 什么网站上可以做国际贸易百度推广助手手机版
  • 网站seo日常工作内容pc端百度
  • 免费做调查的网站有哪些网络舆情监测平台
  • 静态网页模板免费网站天津seo数据监控
  • 深圳网站建设推荐q479185700顶上seo排名优化软件价格
  • 淘宝刷单网站制作做一个电商平台大概需要多少钱
  • 辛集市住房和城乡建设厅网站cpa游戏推广联盟
  • 印度做爰免费网站视频江北seo综合优化外包
  • 新手学建设网站郑州网站建设专业乐云seo