mirror of
https://github.com/0xJacky/nginx-ui.git
synced 2025-05-11 02:15:48 +02:00
pref(ChatGPT): advanced streaming and text transformation, support reasoner model
This commit is contained in:
parent
4f674ec13e
commit
2af29eb80f
4 changed files with 273 additions and 97 deletions
|
@ -16,7 +16,15 @@ const app = createApp(App)
|
|||
pinia.use(piniaPluginPersistedstate)
|
||||
app.use(pinia)
|
||||
app.use(gettext)
|
||||
app.use(VueDOMPurifyHTML)
|
||||
app.use(VueDOMPurifyHTML, {
|
||||
hooks: {
|
||||
uponSanitizeElement: (node, data) => {
|
||||
if (node.tagName && node.tagName.toLowerCase() === 'think') {
|
||||
data.allowedTags.think = true
|
||||
}
|
||||
},
|
||||
},
|
||||
})
|
||||
|
||||
// after pinia created
|
||||
const settings = useSettingsStore()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue