fix(live-conversation): harden agent runtime setup

This commit is contained in:
Yahya Alhinai
2026-06-28 08:09:48 +00:00
parent 97e5af4487
commit a80a737ea7
3 changed files with 5 additions and 0 deletions
+2
View File
@@ -11,6 +11,8 @@ from livekit.agents import Agent, AgentServer, AgentSession, RunContext, functio
from livekit.plugins import google
load_dotenv(".env.local")
if not os.getenv("GOOGLE_API_KEY") and os.getenv("GEMINI_API_KEY"):
os.environ["GOOGLE_API_KEY"] = os.environ["GEMINI_API_KEY"]
logger = logging.getLogger("podman-live-conversation")