fix(live-conversation): harden agent runtime setup
This commit is contained in:
@@ -1,4 +1,6 @@
|
||||
node_modules
|
||||
.venv
|
||||
**/.venv
|
||||
dist
|
||||
build
|
||||
pnpm-lock.yaml
|
||||
|
||||
@@ -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")
|
||||
|
||||
|
||||
@@ -7,6 +7,7 @@ export default tseslint.config(
|
||||
'**/dist/**',
|
||||
'**/build/**',
|
||||
'**/node_modules/**',
|
||||
'**/.venv/**',
|
||||
'**/*.config.*',
|
||||
'examples/livekit-gemini-hacker-starter/**',
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user