fix: Remove reasoning tag from tts utterance
This commit is contained in:
parent
80f5812355
commit
7264f30d81
@ -18,7 +18,7 @@ import { useTTS } from "@/hooks/useTTS"
|
|||||||
import { tagColors } from "@/utils/color"
|
import { tagColors } from "@/utils/color"
|
||||||
import { removeModelSuffix } from "@/db/models"
|
import { removeModelSuffix } from "@/db/models"
|
||||||
import { GenerationInfo } from "./GenerationInfo"
|
import { GenerationInfo } from "./GenerationInfo"
|
||||||
import { parseReasoning } from "@/libs/reasoning"
|
import { parseReasoning, removeReasoning } from "@/libs/reasoning"
|
||||||
import { humanizeMilliseconds } from "@/utils/humanize-miliseconds"
|
import { humanizeMilliseconds } from "@/utils/humanize-miliseconds"
|
||||||
type Props = {
|
type Props = {
|
||||||
message: string
|
message: string
|
||||||
@ -213,7 +213,7 @@ export const PlaygroundMessage = (props: Props) => {
|
|||||||
cancel()
|
cancel()
|
||||||
} else {
|
} else {
|
||||||
speak({
|
speak({
|
||||||
utterance: props.message
|
utterance: removeReasoning(props.message),
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}}
|
}}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user