Merge branch 'main' into main
This commit is contained in:
		
						commit
						7b25153361
					
				
					 6 changed files with 59 additions and 27 deletions
				
			
		| 
						 | 
				
			
			@ -1,6 +1,6 @@
 | 
			
		|||
"use client"
 | 
			
		||||
import React, { use, useEffect, useRef, useState } from "react";
 | 
			
		||||
import ConversationFrontend from "../components/ConversationFrontend";
 | 
			
		||||
import ConversationFrontend from '../components/ConversationFrontend';
 | 
			
		||||
import InputFrontend from "../components/InputFrontend";
 | 
			
		||||
import { sendToVoiceRecognition } from "./voice_backend"
 | 
			
		||||
import axios from "axios";
 | 
			
		||||
| 
						 | 
				
			
			@ -55,6 +55,7 @@ const InputOutputBackend: React.FC = () => {
 | 
			
		|||
  }, [preferredCurrency, preferredLanguage, timeFormat, dateFormat, preferredMeasurement, timeZone]);
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
  const conversationRef = useRef<HTMLDivElement>(null)
 | 
			
		||||
  const [copyClicked, setCopyClicked] = useState(false)
 | 
			
		||||
  const [accessToken, setAccessToken] = useState("")
 | 
			
		||||
  const postWorkerRef = useRef<Worker | null>(null)
 | 
			
		||||
| 
						 | 
				
			
			@ -269,6 +270,7 @@ const InputOutputBackend: React.FC = () => {
 | 
			
		|||
  return (
 | 
			
		||||
    <>
 | 
			
		||||
      <ConversationFrontend
 | 
			
		||||
        ref={conversationRef}
 | 
			
		||||
        messages={messages}
 | 
			
		||||
        onResendClick={handleResendClick}
 | 
			
		||||
        onEditClick={handleEditClick}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue