Update React simple-chatbot client to use latest client SDKs
This commit is contained in:
@@ -2,7 +2,7 @@ import {
|
||||
RTVIClientAudio,
|
||||
RTVIClientVideo,
|
||||
useRTVIClientTransportState,
|
||||
} from 'realtime-ai-react';
|
||||
} from '@pipecat-ai/client-react';
|
||||
import { RTVIProvider } from './providers/RTVIProvider';
|
||||
import { ConnectButton } from './components/ConnectButton';
|
||||
import { StatusDisplay } from './components/StatusDisplay';
|
||||
|
||||
@@ -1,4 +1,7 @@
|
||||
import { useRTVIClient, useRTVIClientTransportState } from 'realtime-ai-react';
|
||||
import {
|
||||
useRTVIClient,
|
||||
useRTVIClientTransportState,
|
||||
} from '@pipecat-ai/client-react';
|
||||
|
||||
export function ConnectButton() {
|
||||
const client = useRTVIClient();
|
||||
|
||||
@@ -5,8 +5,8 @@ import {
|
||||
TransportState,
|
||||
TranscriptData,
|
||||
BotLLMTextData,
|
||||
} from 'realtime-ai';
|
||||
import { useRTVIClient, useRTVIClientEvent } from 'realtime-ai-react';
|
||||
} from '@pipecat-ai/client-js';
|
||||
import { useRTVIClient, useRTVIClientEvent } from '@pipecat-ai/client-react';
|
||||
import './DebugDisplay.css';
|
||||
|
||||
export function DebugDisplay() {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { useRTVIClientTransportState } from 'realtime-ai-react';
|
||||
import { useRTVIClientTransportState } from '@pipecat-ai/client-react';
|
||||
|
||||
export function StatusDisplay() {
|
||||
const transportState = useRTVIClientTransportState();
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { type PropsWithChildren } from 'react';
|
||||
import { RTVIClient } from 'realtime-ai';
|
||||
import { DailyTransport } from '@daily-co/realtime-ai-daily';
|
||||
import { RTVIClientProvider } from 'realtime-ai-react';
|
||||
import { RTVIClient } from '@pipecat-ai/client-js';
|
||||
import { DailyTransport } from '@pipecat-ai/daily-transport';
|
||||
import { RTVIClientProvider } from '@pipecat-ai/client-react';
|
||||
|
||||
const transport = new DailyTransport();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user