npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

g-ai-robot3

v0.1.40

Published

``` 封装了QA问答和语音问答功能(vue3版本) ```

Downloads

174

Readme

g-ai-robot3

简介

封装了QA问答和语音问答功能(vue3版本)

安装(npm or yarn)

npm install g-ai-robot3 --save

使用

import gAiRobot from "g-ai-robot";
import "g-ai-robot3/dist/g-ai-robot3.css"

<g-ai-robot
  :robotCss="{ zIndex: 9999, left: '10px', bottom: '300px' }"
  placement="top-end"
>
</g-ai-robot>

props

| 参数 | 说明 | 类型 | 可选值 | 默认值 |
|---------- |-------------------|------------|---------|---------| | isDebug | 开启debug打印 | Boolean | - | - | | title | 问答标题 | String | - | - | | greet | 问答问候语 | String | - | - | | waitTxt | 问答等候语 | String | - | - | | systemName | 系统编码 | String | - | - | | robotCss | 机器人在视口中的位置 | object | - | left: "10px", bottom: "10px" | | placement | 问答弹窗位置 |String | left/right/top/bottom/top-start/top-end/bottom-start/bottom-end | top-end | | useAudio | 语音功能 |Boolean | true/false | true | | space | 监听时间间隔 |Number | - | 3000 | | mode | 交互模式 |String | text/audio | text | | openInstruct | 是否开启指令控制 |Boolean | true/false | true | | qaServer | 问答服务地址 |String | - | - | | audioServer | 语音服务地址 |String | - | - | | cozeInfo | 扣字大模型参数 |Object | - | - | | wsServer | 语音监听地址 |String | - | - | | instructWs | 指令监听地址 |String | - | - | | eventFun | 触发事件 |Array | - | - | | searchTextCallback | 扣子大模型事件流回调函数 |Function | - | - |

cozeInfo

| 参数 | 说明 | 类型 | 可选值 | 默认值 |
|---------- |-------------------|------------|---------|---------| | iss | | String | - | - | | kid | | String | - | - | | private_key | | String | - | - | | bot_id | | String | - | - |

eventFun

| 参数 | 说明 | 类型 | 可选值 | 默认值 |
|---------- |-------------------|------------|---------|---------| | keywords | 触发关键字 | Array | - | - | | trigger | 回调触发时机 | String | after/together | - | | fun | 触发的回调函数 | Function | - | - |

方法

| 参数 | 说明 | 参数 | |---------- |------------------ |--------------| | searchText | 问答接口 |接收一个参数:{searchText} 问题的字符串 | | startMonitorAudio | 开启语音监听 | - | | uploadWavFile | 语音转文字接口 |接收一个参数(formData类型):{modelName,audio} modelName:语音模型(tiny/base/small/medium/large), audio:语音文件流 |

Slot

| 参数 | 说明 |
|---------- |--------------| | reference | 触发问答弹窗显示的HTML元素 |