Modern React component with full Talk Box + Chatlas integration
The classic chat.show("browser") method
import talk_box as tb
bot = (
tb.ChatBot()
.model("gpt-4")
.preset("technical_advisor")
.temperature(0.3)
)
# Launch traditional interface
bot.show("browser")
Modern React-based interface with full control
import { TalkBoxChat } from '@talk-box/react-chat';
function App() {
return (
<TalkBoxChat
chatBot={{
model: "gpt-4",
preset: "technical_advisor",
temperature: 0.3
}}
theme="light"
apiBaseUrl="http://127.0.0.1:8000"
/>
);
}
http://127.0.0.1:8000
http://localhost:5173
cd talk_box/web_components/python_server
python3 chat_server.py
cd talk_box/web_components/react-chat
npm run dev
Visit http://localhost:5173