forked from React-Group/interstellar_ai
Compare commits
No commits in common. "e348c2dae788607110f88daf236c7550dfaa44fa" and "4669def4b1b5e7d05d2e883c4991c3078a025540" have entirely different histories.
e348c2dae7
...
4669def4b1
1 changed files with 2 additions and 4 deletions
|
@ -33,16 +33,14 @@ const InputOutputBackend: React.FC = () => {
|
||||||
You use the time format ${timeFormat}.
|
You use the time format ${timeFormat}.
|
||||||
You use the date format ${dateFormat} for all references of dates.
|
You use the date format ${dateFormat} for all references of dates.
|
||||||
You use the ${preferredMeasurement} system. You use the currency ${preferredCurrency}.
|
You use the ${preferredMeasurement} system. You use the currency ${preferredCurrency}.
|
||||||
You will only answer in the language (you will receive the country code) ${preferredLanguage}.
|
You will anwser in ${preferredLanguage}.`
|
||||||
But in the case the user specifically states to answer in an other language do that speaking in a
|
|
||||||
nother language is not stating you should answer in that language. Additionally do not translate your answer into multiple languages`
|
|
||||||
},{ role: "assistant", content: "Hello! How can I help you?" }])
|
},{ role: "assistant", content: "Hello! How can I help you?" }])
|
||||||
const [liveMessage, setLiveMessage] = useState("")
|
const [liveMessage, setLiveMessage] = useState("")
|
||||||
const [inputMessage, setInputMessage] = useState<string>("")
|
const [inputMessage, setInputMessage] = useState<string>("")
|
||||||
const [inputDisabled, setInputDisabled] = useState(false)
|
const [inputDisabled, setInputDisabled] = useState(false)
|
||||||
const [isRecording, setIsRecording] = useState(false)
|
const [isRecording, setIsRecording] = useState(false)
|
||||||
const [audioURL, setAudioURL] = useState<string | null>(null)
|
const [audioURL, setAudioURL] = useState<string | null>(null)
|
||||||
const mediaRecorderRef = useRef<MediaRecorder | null>(null)
|
const mediaRecorderRef = useRef<MediaRecorder | null>(null)
|
||||||
const audioChunks = useRef<Blob[]>([])
|
const audioChunks = useRef<Blob[]>([])
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue