diff --git a/docs/remoter/basic.md b/docs/remoter/basic.md index 714c5c0b..45adb95d 100644 --- a/docs/remoter/basic.md +++ b/docs/remoter/basic.md @@ -146,6 +146,7 @@ type UnifiedModelConfig = ICustomAgentModelProviderLlmConfig & { - `inBrowserExt` 设置组件运行于普通页面还是浏览器扩展,默认值为 `false` - `genUiAble` 双向绑定是否启用生成式 UI 渲染,默认值为 `false`。输入框旁的「生成式 UI」开关是否显示由**当前模型配置**决定:仅当配置中同时包含 `baseURL` 和 `genuiUrl` 时才会显示 - `genUiComponents` 生成式 UI 已内置一批组件;如需支持额外组件,可通过该属性导入,例如:`shallowReactive({ TinyUser, TinyAlert })` +- `allowSpeech` 启用语言输入模式,默认值为 `false` ## 二、事件 diff --git a/packages/next-remoter/src/components/TinyRobotChat.vue b/packages/next-remoter/src/components/TinyRobotChat.vue index 996fb776..7a508409 100644 --- a/packages/next-remoter/src/components/TinyRobotChat.vue +++ b/packages/next-remoter/src/components/TinyRobotChat.vue @@ -74,6 +74,9 @@ :multiple="true" @select="onFilesSelected" /> + @@ -107,7 +110,8 @@ import { TrMcpServerPicker, TrHistory, TrAttachments, - TrUploadButton + TrUploadButton, + VoiceButton } from '@opentiny/tiny-robot' import type { PluginInfo, MarketCategoryOption } from '@opentiny/tiny-robot' @@ -266,6 +270,11 @@ const props = defineProps({ pillItems: { type: Array, default: undefined + }, + /** 支持语音输入功能 */ + allowSpeech: { + type: Boolean, + default: false } })