From 6203e521d0fcd0b09b9fbb398a36012e2df74795 Mon Sep 17 00:00:00 2001 From: digitallysavvy Date: Wed, 2 Oct 2024 22:18:20 -0400 Subject: [PATCH] updated env file --- shared/open-ai-integration/quickstart.mdx | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/shared/open-ai-integration/quickstart.mdx b/shared/open-ai-integration/quickstart.mdx index d5935b833..2eeafa5bd 100644 --- a/shared/open-ai-integration/quickstart.mdx +++ b/shared/open-ai-integration/quickstart.mdx @@ -139,9 +139,6 @@ cd agora-openai-converse # Port of api server SERVER_PORT= - - # Override this if you want to develop against a local dev server - # REALTIME_API_BASE_URI=ws://localhost:8081 ``` 1. Create a virtual environment and activate it: @@ -1044,6 +1041,7 @@ def run_agent_in_process( ``` ### HTTP Routes for Managing Agents + The start_agent and stop_agent routes are the main HTTP endpoints that allow clients to control the agents. As part of the start and stop we need to keep track of the active_processes. ```python @@ -1256,9 +1254,10 @@ Your knowledge cutoff is 2023-10. You are a helpful, witty, and friendly AI. Act ## Parse Args and Logger -This project implements a few helper functions to support in parsing command line arguments and to handle logging. The setup of these components is beyond the scope of this guide, but for the purposes of providing a complete working codebase, the code for each is included below. +This project implements a few helper functions to support in parsing command line arguments and to handle logging. The setup of these components is beyond the scope of this guide, but for the purposes of providing a complete working codebase, the code for each is included below. ### Parse Args + ```python import argparse import logging @@ -1276,7 +1275,7 @@ class RealtimeKitOptions(TypedDict): def parse_args(): parser = argparse.ArgumentParser(description="Manage server and agent actions.") - + # Create a subparser for actions (server and agent) subparsers = parser.add_subparsers(dest="action", required=True) @@ -1324,7 +1323,7 @@ def setup_logger( # Prevent the logger from propagating to the root logger (disable extra output) logger.propagate = False - + # Clear existing handlers to avoid duplicate messages if logger.hasHandlers(): logger.handlers.clear()