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 { removeModelSuffix } from "@/db/models"
|
||||
import { GenerationInfo } from "./GenerationInfo"
|
||||
import { parseReasoning } from "@/libs/reasoning"
|
||||
import { parseReasoning, removeReasoning } from "@/libs/reasoning"
|
||||
import { humanizeMilliseconds } from "@/utils/humanize-miliseconds"
|
||||
type Props = {
|
||||
message: string
|
||||
@ -213,7 +213,7 @@ export const PlaygroundMessage = (props: Props) => {
|
||||
cancel()
|
||||
} else {
|
||||
speak({
|
||||
utterance: props.message
|
||||
utterance: removeReasoning(props.message),
|
||||
})
|
||||
}
|
||||
}}
|
||||
|
Loading…
x
Reference in New Issue
Block a user