Skip to content
Closed
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
5 changes: 2 additions & 3 deletions packages/docs/fluent-editor/demos/ai.vue
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ onMounted(() => {
host: 'http://localhost:11434',
model: 'deepseek-r1:8b',
apiKey: '',
contentMaxLength: 1000
},
},
})
Expand All @@ -34,8 +35,6 @@ onMounted(() => {

<template>
<div id="editor-add-toolbar-item">
<h3>标题:</h3>
<p>内容:</p>
<p>署名:</p>
<p>我曾经跨过山和大海,也穿过人山人海</p>
</div>
</template>
8 changes: 5 additions & 3 deletions packages/docs/fluent-editor/docs/demo/ai.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,13 @@

```typescript
interface AIOption {
// AI大模型主机地址
// AI大模型主机地址,组件默认:'https://api.deepseek.com/v1'
host: string
// 大模型名称
// 大模型名称,组件默认:'deepseek-chat'
model: string
// API 密钥
apiKey: string
apiKey: string,
// 文本字数限制
contentMaxLength?: number,
}
```
Loading
Loading