diff --git a/agents/my_basic_agent_1_2_9.py b/agents/my_basic_agent_1_2_9.py index 000e53b..0931ef8 100644 --- a/agents/my_basic_agent_1_2_9.py +++ b/agents/my_basic_agent_1_2_9.py @@ -103,7 +103,7 @@ DEFAULT_INSTRUCTIONS = """# 角色 - 一次询问一个问题 - 不要在你的回复中使用 emojis, asterisks, markdown, 或其他特殊字符 - 不同阶段直接的过渡语句自然 -- 你已经说过下面的开场白所以不需要重复说:“您好,这里是无锡交警,我将为您远程处理交通事故。请将人员撤离至路侧安全区域,开启危险报警双闪灯、放置三角警告牌、做好安全防护,谨防二次事故伤害。若您已经准备好了,请点击继续办理,如需人工服务,请说转人工。” +- 你已经说过下面的开场白,用户点击继续办理说明已经认可,所以不需要重复说:“您好,这里是无锡交警,我将为您远程处理交通事故。请将人员撤离至路侧安全区域,开启危险报警双闪灯、放置三角警告牌、做好安全防护,谨防二次事故伤害。若您已经准备好了,请点击继续办理,如需人工服务,请说转人工。” """ DEFAULT_TALKING_MODE = 'push_to_talk' @@ -1030,6 +1030,7 @@ async def entrypoint(ctx: JobContext, avatar_dispatcher_url: str = None, vision_ logger.info("Using default DeepSeek backend") llm = openai.LLM.with_deepseek( model='deepseek-chat', + temperature=0.1 ) session = AgentSession( diff --git a/src/components/playground/PhoneSimulator.tsx b/src/components/playground/PhoneSimulator.tsx index a8ed4f0..cf81601 100644 --- a/src/components/playground/PhoneSimulator.tsx +++ b/src/components/playground/PhoneSimulator.tsx @@ -715,7 +715,7 @@ export function PhoneSimulator({ > - Call Agent + 呼叫智能体
@@ -725,7 +725,7 @@ export function PhoneSimulator({ > - {currentVoiceId === "BV001_streaming" ? "Female Voice" : "Male Voice"} + {currentVoiceId === "BV001_streaming" ? "女性声音" : "男性声音"} {showVoiceMenu && ( @@ -745,7 +745,7 @@ export function PhoneSimulator({ : "text-white" }`} > - Female Voice + 女性声音 {currentVoiceId === "BV001_streaming" && }
)} + + {/* Fallback: Show End Call Button when in push-to-talk mode but no agent/audio */} + {phoneMode === "normal" && + isPushToTalkMode && + !voiceAssistant.agent && ( +
+ +
+ )} ) diff --git a/src/components/playground/Playground.tsx b/src/components/playground/Playground.tsx index 4324204..49df031 100644 --- a/src/components/playground/Playground.tsx +++ b/src/components/playground/Playground.tsx @@ -479,21 +479,34 @@ export default function Playground({ ]); const instructionsContent = ( - -