Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions docs/remoter/basic.md
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,7 @@ type UnifiedModelConfig = ICustomAgentModelProviderLlmConfig & {
- `inBrowserExt` 设置组件运行于普通页面还是浏览器扩展,默认值为 `false`
- `genUiAble` 双向绑定是否启用生成式 UI 渲染,默认值为 `false`。输入框旁的「生成式 UI」开关是否显示由**当前模型配置**决定:仅当配置中同时包含 `baseURL` 和 `genuiUrl` 时才会显示
- `genUiComponents` 生成式 UI 已内置一批组件;如需支持额外组件,可通过该属性导入,例如:`shallowReactive({ TinyUser, TinyAlert })`
- `allowSpeech` 启用语言输入模式,默认值为 `false`
Comment thread
shenjunjian marked this conversation as resolved.

## 二、事件

Expand Down
11 changes: 10 additions & 1 deletion packages/next-remoter/src/components/TinyRobotChat.vue
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,9 @@
:multiple="true" @select="onFilesSelected" />
</div>
</template>
<template #footer-right>
<VoiceButton v-if="allowSpeech" />
</template>
</tr-sender>

<!-- 插件面板 -->
Expand Down Expand Up @@ -107,7 +110,8 @@ import {
TrMcpServerPicker,
TrHistory,
TrAttachments,
TrUploadButton
TrUploadButton,
VoiceButton
} from '@opentiny/tiny-robot'

import type { PluginInfo, MarketCategoryOption } from '@opentiny/tiny-robot'
Expand Down Expand Up @@ -266,6 +270,11 @@ const props = defineProps({
pillItems: {
type: Array,
default: undefined
},
/** 支持语音输入功能 */
allowSpeech: {
type: Boolean,
default: false
}
})

Expand Down
Loading