Skip to content

Commit

Permalink
updated env file
Browse files Browse the repository at this point in the history
  • Loading branch information
digitallysavvy committed Oct 3, 2024
1 parent aab67ba commit 6203e52
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions shared/open-ai-integration/quickstart.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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)

Expand Down Expand Up @@ -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()
Expand Down

0 comments on commit 6203e52

Please sign in to comment.