pref(ChatGPT): advanced streaming and text transformation, support reasoner model

This commit is contained in:
Jacky 2025-01-31 20:51:48 +08:00
parent 4f674ec13e
commit 2af29eb80f
No known key found for this signature in database
GPG key ID: 215C21B10DF38B4D
4 changed files with 273 additions and 97 deletions

View file

@ -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()