Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Changing the names from Astra to Ten Agent #305

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added demo/bun.lockb
Binary file not shown.
2 changes: 1 addition & 1 deletion demo/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "astra.ai-playground",
"name": "TEN Agent",
"version": "0.4.0",
"private": true,
"scripts": {
Expand Down
8 changes: 4 additions & 4 deletions demo/src/app/api/agents/start/graph.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -63,23 +63,23 @@ export const voiceNameMap: LanguageMap = {
// This is the place where you can customize the properties for different graphs to override default property.json
export const getGraphProperties = (graphName: string, language: string, voiceType: string) => {
let localizationOptions = {
"greeting": "ASTRA agent connected. How can i help you today?",
"greeting": "Hey, I\'m TEN Agent with OpenAI Realtime API Beta, anything I can help you with?",
"checking_vision_text_items": "[\"Let me take a look...\",\"Let me check your camera...\",\"Please wait for a second...\"]",
}

if (language === "zh-CN") {
localizationOptions = {
"greeting": "Astra已连接,需要我为您提供什么帮助?",
"greeting": "TEN Agent 已连接,需要我为您提供什么帮助?",
"checking_vision_text_items": "[\"让我看看你的摄像头...\",\"让我看一下...\",\"我看一下,请稍候...\"]",
}
} else if (language === "ja-JP") {
localizationOptions = {
"greeting": "ASTRAエージェントに接続されました。今日は何をお手伝いしましょうか?",
"greeting": "TEN Agent に接続されました。今日は何をお手伝いしましょうか?",
"checking_vision_text_items": "[\"ちょっと見てみます...\",\"カメラをチェックします...\",\"少々お待ちください...\"]",
}
} else if (language === "ko-KR") {
localizationOptions = {
"greeting": "ASTRA 에이전트에 연결되었습니다. 오늘은 무엇을 도와드릴까요?",
"greeting": "TEN Agent 에이전트에 연결되었습니다. 오늘은 무엇을 도와드릴까요?",
"checking_vision_text_items": "[\"조금만 기다려 주세요...\",\"카메라를 확인해 보겠습니다...\",\"잠시만 기다려 주세요...\"]",
}
}
Expand Down
Binary file modified demo/src/app/favicon.ico
Binary file not shown.
4 changes: 2 additions & 2 deletions demo/src/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import './global.css'


export const metadata: Metadata = {
title: "Astra.ai",
description: "A multimodal agent powered by TEN",
title: "TEN Agent",
description: "The World's First Multimodal AI Agent with the OpenAI Realtime API (Beta)",
appleWebApp: {
capable: true,
statusBarStyle: "black",
Expand Down
12 changes: 6 additions & 6 deletions demo/src/common/constant.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import { IOptions, ColorItem, LanguageOptionItem, VoiceOptionItem, GraphOptionItem } from "@/types"
export const GITHUB_URL = "https://github.com/TEN-framework/ASTRA.ai"
export const GITHUB_URL = "https://github.com/TEN-framework/TEN-Agent"
export const OPTIONS_KEY = "__options__"
export const DEFAULT_OPTIONS: IOptions = {
channel: "",
userName: "",
userId: 0
}
export const DESCRIPTION = "This is an AI voice assistant powered by ASTRA.ai framework, Agora, Azure and ChatGPT."
export const DESCRIPTION = "The World's First Multimodal AI Agent with the OpenAI Realtime API (Beta)"
export const LANGUAGE_OPTIONS: LanguageOptionItem[] = [
{
label: "English",
Expand Down Expand Up @@ -34,10 +34,10 @@ export const GRAPH_OPTIONS: GraphOptionItem[] = [
label: "Voice Agent with Vision - OpenAI LLM + Azure TTS",
value: "camera.va.openai.azure"
},
{
label: "Voice Agent with Knowledge - RAG + Qwen LLM + Cosy TTS",
value: "va.qwen.rag"
},
// {
// label: "Voice Agent with Knowledge - RAG + Qwen LLM + Cosy TTS",
// value: "va.qwen.rag"
// },
{
label: "Voice Agent with OpenAI Realtime API (Beta)",
value: "va.openai.v2v"
Expand Down
12 changes: 6 additions & 6 deletions demo/src/components/loginCard/index.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -39,19 +39,19 @@
.content {

.title {
margin-bottom: 32px;
color: white;
font-weight: bold;
font-size: 25px;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
gap: 12px;

margin-bottom: 10px;
.text {
margin-top: 8px;
color: var(--Grey-300, #EAECF0);
text-align: center;
font-size: 18px;
font-size: 17px;
font-weight: 500;
margin-bottom: 30px;
}
}

Expand Down
4 changes: 2 additions & 2 deletions demo/src/components/loginCard/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@ const LoginCard = () => {
</section>
<section className={styles.content}>
<div className={styles.title}>
<LogoIcon transform="scale(1.5 1.5)"></LogoIcon>
<span className={styles.text}>Astra - a multimodal interactive agent</span>
<span className={styles.title}>TEN Agent</span>
<span className={styles.text}>The World's First Multimodal AI Agent with the OpenAI Realtime API (Beta)</span>
</div>
<div className={styles.section}>
<input placeholder="User Name" value={userName} onChange={onUserNameChange} ></input>
Expand Down
2 changes: 1 addition & 1 deletion demo/src/platform/pc/description/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ const Description = () => {

return <div className={styles.description}>
<span className={styles.title}>Description</span>
<span className={styles.text}>Astra is a multimodal agent powered by TEN</span>
<span className={styles.text}>The World's First Multimodal AI Agent with the OpenAI Realtime API (Beta)</span>
<span className={`${styles.btnConnect} ${agentConnected ? styles.disconnect : ''}`} onClick={onClickConnect}>
<span className={`${styles.btnText} ${agentConnected ? styles.disconnect : ''}`}>
{!agentConnected ? "Connect" : "Disconnect"}
Expand Down
5 changes: 5 additions & 0 deletions demo/src/platform/pc/header/index.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@
box-shadow: 0px 12px 16px -4px rgba(8, 15, 52, 0.06), 0px 4px 6px -2px rgba(8, 15, 52, 0.03);
box-sizing: border-box;
z-index: 999;

.title {
color: white;
font-weight: bold;
}

.logoWrapper {
display: flex;
Expand Down
3 changes: 2 additions & 1 deletion demo/src/platform/pc/header/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ const Header = () => {

return <div className={styles.header}>
<span className={styles.logoWrapper}>
<LogoIcon></LogoIcon>
{/* <LogoIcon></LogoIcon> */}
<span className={styles.title} >TEN Agent</span>
</span>
<InfoPopover>
<span className={styles.content}>
Expand Down