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 #278

Merged
merged 5 commits into from
Sep 18, 2024
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
19 changes: 9 additions & 10 deletions agents/property.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
"max_tokens": 512,
"prompt": "",
"proxy_url": "$OPENAI_PROXY_URL",
"greeting": "ASTRA agent connected. How can i help you today?",
"greeting": "TEN Agent connected. How can I help you today?",
"max_memory_length": 10
}
},
Expand Down Expand Up @@ -246,7 +246,7 @@
"max_tokens": 512,
"prompt": "",
"proxy_url": "$OPENAI_PROXY_URL",
"greeting": "ASTRA agent connected. How can i help you today?",
"greeting": "TEN Agent connected. How can I help you today?",
"max_memory_length": 10
}
},
Expand Down Expand Up @@ -444,7 +444,7 @@
"model": "anthropic.claude-3-5-sonnet-20240620-v1:0",
"max_tokens": 512,
"prompt": "",
"greeting": "ASTRA agent connected. How can i help you today?",
"greeting": "TEN Agent connected. How can I help you today?",
"max_memory_length": 10
}
},
Expand Down Expand Up @@ -609,7 +609,7 @@
"max_tokens": 512,
"prompt": "",
"proxy_url": "$OPENAI_PROXY_URL",
"greeting": "ASTRA agent connected. How can i help you today?",
"greeting": "TEN Agent connected. How can I help you today?",
"max_memory_length": 10
}
},
Expand Down Expand Up @@ -805,7 +805,6 @@
"api_key": "$QWEN_API_KEY",
"model": "qwen-max",
"max_tokens": 512,
"greeting": "ASTRA agent connected. How can i help you today?",
"prompt": "",
"max_memory_length": 10
}
Expand Down Expand Up @@ -1012,7 +1011,7 @@
"model": "anthropic.claude-3-5-sonnet-20240620-v1:0",
"max_tokens": 512,
"prompt": "",
"greeting": "ASTRA agent connected. How can i help you today?",
"greeting": "TEN Agent connected. How can I help you today?",
"max_memory_length": 10
}
},
Expand Down Expand Up @@ -1193,7 +1192,7 @@
"model": "anthropic.claude-3-5-sonnet-20240620-v1:0",
"max_tokens": 512,
"prompt": "",
"greeting": "ASTRA agent connected. How can i help you today?",
"greeting": "TEN Agent connected. How can I help you today?",
"max_memory_length": 10
}
},
Expand Down Expand Up @@ -1419,7 +1418,7 @@
"max_tokens": 512,
"prompt": "",
"proxy_url": "$OPENAI_PROXY_URL",
"greeting": "ASTRA agent connected. How can i help you today?",
"greeting": "TEN Agent connected. How can I help you today?",
"checking_vision_text_items": "[\"Let me take a look...\",\"Let me check your camera...\",\"Please wait for a second...\"]",
"max_memory_length": 10,
"enable_tools": true
Expand Down Expand Up @@ -1625,7 +1624,7 @@
"name": "gemini_llm",
"property": {
"api_key": "$GEMINI_API_KEY",
"greeting": "ASTRA agent connected. How can i help you today?",
"greeting": "TEN Agent connected. How can I help you today?",
"max_memory_length": 10,
"max_output_tokens": 512,
"model": "gemini-1.5-flash",
Expand Down Expand Up @@ -1908,7 +1907,7 @@
"addon": "llama_index_chat_engine",
"name": "llama_index",
"property": {
"greeting": "ASTRA agent connected. How can i help you today?",
"greeting": "TEN Agent connected. How can I help you today?",
"chat_memory_token_limit": 3000
}
}
Expand Down
Binary file added playground/bun.lockb
Binary file not shown.
2 changes: 1 addition & 1 deletion playground/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "astra.ai",
"name": "TEN Agent",
"version": "0.4.0",
"private": true,
"scripts": {
Expand Down
8 changes: 4 additions & 4 deletions playground/src/apis/routes.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,23 +57,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": "TEN agent connected. How can I help you today?",
"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
4 changes: 2 additions & 2 deletions playground/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: "TEN Agent is an open-source multimodal AI agent that can speak, see, and access a knowledge base(RAG).",
appleWebApp: {
capable: true,
statusBarStyle: "black",
Expand Down
4 changes: 2 additions & 2 deletions playground/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 = "TEN Agent is an open-source multimodal AI agent that can speak, see, and access a knowledge base(RAG)."
export const LANGUAGE_OPTIONS: LanguageOptionItem[] = [
{
label: "English",
Expand Down
7 changes: 4 additions & 3 deletions playground/src/components/loginCard/index.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -39,19 +39,20 @@
.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;

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

Expand Down
5 changes: 3 additions & 2 deletions playground/src/components/loginCard/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,9 @@ 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>
{/* <LogoIcon transform="scale(1.5 1.5)"></LogoIcon> */}
<span className={styles.title} >TEN Agent</span>
<span className={styles.text}>A realtime multimodal AI agent powered by <a href="https://theten.ai" >TEN</a></span>
</div>
<div className={styles.section}>
<input placeholder="User Name" value={userName} onChange={onUserNameChange} ></input>
Expand Down
2 changes: 1 addition & 1 deletion playground/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}>TEN Agent is a multimodal AI agent that can speak, see, and access a knowledge base.</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 playground/src/platform/pc/header/index.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,11 @@
display: flex;
align-items: center;

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

.text {
margin-left: 8px;
color: var(---white, #FFF);
Expand Down
3 changes: 2 additions & 1 deletion playground/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