diff --git a/README.md b/README.md index f7ba07e40..745bf02dd 100644 --- a/README.md +++ b/README.md @@ -24,7 +24,7 @@ npm run dev This should start the console application on [http://localhost:3000](http://localhost:3000). -_Note:_ The `server.js` file uses [@fastify/vite](https://fastify-vite.dev/) to build and serve the Astro frontend contained in the `/client` folder. You can find the configuration in the [`vite.config.js` file](./vite.config.js) +_Note:_ The `server.js` file uses [@fastify/vite](https://fastify-vite.dev/) to build and serve the React frontend contained in the `/client` folder. You can find the configuration in the [`vite.config.js` file](./vite.config.js). ## Previous WebSockets version diff --git a/src/components/EventConsole.astro b/src/components/EventConsole.astro deleted file mode 100644 index 8fd96fee4..000000000 --- a/src/components/EventConsole.astro +++ /dev/null @@ -1,40 +0,0 @@ -
-
- OpenAI -

realtime console

-
-
- - diff --git a/src/components/ToolsConsole.astro b/src/components/ToolsConsole.astro deleted file mode 100644 index 81c002683..000000000 --- a/src/components/ToolsConsole.astro +++ /dev/null @@ -1,16 +0,0 @@ -
-
-
- - diff --git a/src/layouts/Layout.astro b/src/layouts/Layout.astro deleted file mode 100644 index b1fbc3a6c..000000000 --- a/src/layouts/Layout.astro +++ /dev/null @@ -1,47 +0,0 @@ - - - - - - - - Realtime Console - - - - - - - - - - - - diff --git a/src/pages/index.astro b/src/pages/index.astro deleted file mode 100644 index d805a5f41..000000000 --- a/src/pages/index.astro +++ /dev/null @@ -1,10 +0,0 @@ ---- -import Layout from "../layouts/Layout.astro"; -import EventConsole from "../components/EventConsole.astro"; -import ToolsConsole from "../components/ToolsConsole.astro"; ---- - - - - - diff --git a/src/pages/token.json.ts b/src/pages/token.json.ts deleted file mode 100644 index 5dabb2b1b..000000000 --- a/src/pages/token.json.ts +++ /dev/null @@ -1,20 +0,0 @@ -export async function GET() { - const r = await fetch("https://api.openai.com/v1/realtime/sessions", { - method: "POST", - headers: { - Authorization: `Bearer ${process.env.OPENAI_API_KEY}`, - "Content-Type": "application/json", - }, - body: JSON.stringify({ - model: "gpt-4o-realtime-preview-2024-12-17", - voice: "verse", - }), - }); - - return new Response(r.body, { - status: 200, - headers: { - "Content-Type": "application/json", - }, - }); -}