From 1160ef4fb1950d85211f34b660635ab18a733d88 Mon Sep 17 00:00:00 2001
From: czhen <56986964+shczhen@users.noreply.github.com>
Date: Mon, 25 Nov 2024 12:35:35 +0800
Subject: [PATCH] fix(playground): cfg settings (#437)
* fix(playground): cfg settings
* Update README.md
---
playground/README.md | 6 +
playground/src/app/layout.tsx | 18 +-
.../src/components/Chat/ChatCfgSelect.tsx | 161 ++++++++++--------
3 files changed, 102 insertions(+), 83 deletions(-)
diff --git a/playground/README.md b/playground/README.md
index e466b4e3..e9ef8bde 100644
--- a/playground/README.md
+++ b/playground/README.md
@@ -17,6 +17,12 @@ Local playground for Ten Agent.
- Node.js >= 20
- [pnpm 9.12.3](https://pnpm.io/installation)
+### Run local server
+
+First, make sure you have started the Ten Agent server by following the instructions in the [root README](../README.md#3-start-agent-development-containers).
+
+Then, you can start the playground web UI by running the following steps.
+
### Install dependencies
```bash
diff --git a/playground/src/app/layout.tsx b/playground/src/app/layout.tsx
index f5370ef2..30f66ec4 100644
--- a/playground/src/app/layout.tsx
+++ b/playground/src/app/layout.tsx
@@ -1,9 +1,9 @@
// import { ConfigProvider } from "antd";
-import { StoreProvider } from "@/store";
-import type { Metadata, Viewport } from "next";
-import { Toaster } from "@/components/ui/sonner";
+import { StoreProvider } from "@/store"
+import type { Metadata, Viewport } from "next"
+import { Toaster } from "@/components/ui/sonner"
-import "./global.css";
+import "./global.css"
export const metadata: Metadata = {
title: "TEN Agent | Real-Time Multimodal AI Agent",
@@ -13,7 +13,7 @@ export const metadata: Metadata = {
capable: true,
statusBarStyle: "black",
},
-};
+}
export const viewport: Viewport = {
width: "device-width",
@@ -22,12 +22,12 @@ export const viewport: Viewport = {
maximumScale: 1,
userScalable: false,
viewportFit: "cover",
-};
+}
export default function RootLayout({
children,
}: Readonly<{
- children: React.ReactNode;
+ children: React.ReactNode
}>) {
return (
@@ -43,8 +43,8 @@ export default function RootLayout({
> */}
{children}
{/* */}
-
+