
Security News
GPT-6 Astra Attempts Supply Chain Attacks Against Open Source Maintainers in Testing
GPT-6 Astra hits 100% on ExploitBench and finds zero-days autonomously, while independent tests reveal scope violations and monitoring gaps.
g-ai-robot
Advanced tools
封装了QA问答和语音问答功能(vue2版本)
npm install g-ai-robot --save
import gAiRobot from "g-ai-robot";
import "g-ai-robot/dist/g-ai-robot.css"
components: {
gAiRobot,
}
<g-ai-robot
:robotCss="{ zIndex: 9999, right: '10px', top: '300px' }"
placement="left"
>
</g-ai-robot>
| 参数 | 说明 | 类型 | 可选值 | 默认值 |
|---|---|---|---|---|
| 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 | - | - |
| wsServer | 语音监听地址 | String | - | - |
| instructWs | 指令监听地址 | String | - | - |
| eventFun | 触发事件 | Array | - | - |
| 参数 | 说明 | 类型 | 可选值 | 默认值 |
|---|---|---|---|---|
| keywords | 触发关键字 | Array | - | - |
| trigger | 回调触发时机 | String | after/together | - |
| fun | 触发的回调函数 | Function | - | - |
| 参数 | 说明 | 参数 |
|---|---|---|
| searchText | 问答接口 | 接收一个参数:{searchText} 问题的字符串 |
| startMonitorAudio | 开启语音监听 | - |
| uploadWavFile | 语音转文字接口 | 接收一个参数(formData类型):{modelName,audio} modelName:语音模型(tiny/base/small/medium/large), audio:语音文件流 |
| 参数 | 说明 |
|---|---|
| reference | 触发问答弹窗显示的HTML元素 |
FAQs
## 简介 ``` 封装了QA问答和语音问答功能(vue2版本) ```
The npm package g-ai-robot receives a total of 42 weekly downloads. As such, g-ai-robot popularity was classified as not popular.
We found that g-ai-robot demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.

Security News
GPT-6 Astra hits 100% on ExploitBench and finds zero-days autonomously, while independent tests reveal scope violations and monitoring gaps.

Product
Socket can now send alerts and supply chain attack notifications to Microsoft Teams, with filters that route the right updates to each channel.

Security News
pnpm 12 rewrites the package manager in Rust, cutting install times by up to 90% while preserving pnpm 11 workflows and lockfiles.