Skip to content

Commit

Permalink
fix: realtime url
Browse files Browse the repository at this point in the history
  • Loading branch information
justinmerrell committed Jan 27, 2023
1 parent f6a4f57 commit a7b0ab3
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions docs/serverless/worker.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ RUNPOD_WEBHOOK_PING= # URL to ping
RUNPOD_PING_INTERVAL= # Interval in milliseconds to ping the API (Default: 10000)

RUNPOD_ENDPOINT_ID= # Endpoint ID
RUNPOD_ENDPOINT_SECRET= # Endpoint Secret (SET BY RUNPOD Replaces RUNPOD_AI_API_KEY, not implemented yet)

# Realtime
RUNPOD_REALTIME_PORT= # Port to listen on for realtime connections (Default: None)
Expand Down
2 changes: 1 addition & 1 deletion runpod/serverless/modules/rp_fastapi.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def __init__(self):

self.config = {"handler": None}
self.rp_app = FastAPI()
self.rp_app.add_api_route(f"{os.environ.get('RUNPOD_ENDPOINT_ID')}/realtime",
self.rp_app.add_api_route(f"/{os.environ.get('RUNPOD_ENDPOINT_ID')}/realtime",
self.run, methods=["POST"])

def start_uvicorn(self, api_port):
Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[metadata]
name = runpod
version = 0.8.2
version = 0.8.3
description = Official Python library for RunPod API & SDK.
long_description = file: README.md
long_description_content_type = text/markdown
Expand Down

0 comments on commit a7b0ab3

Please sign in to comment.