Skip to content

Commit a7b0ab3

Browse files
committed
fix: realtime url
1 parent f6a4f57 commit a7b0ab3

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

docs/serverless/worker.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ RUNPOD_WEBHOOK_PING= # URL to ping
1717
RUNPOD_PING_INTERVAL= # Interval in milliseconds to ping the API (Default: 10000)
1818

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

2122
# Realtime
2223
RUNPOD_REALTIME_PORT= # Port to listen on for realtime connections (Default: None)

runpod/serverless/modules/rp_fastapi.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ def __init__(self):
3434

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

4040
def start_uvicorn(self, api_port):

setup.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[metadata]
22
name = runpod
3-
version = 0.8.2
3+
version = 0.8.3
44
description = Official Python library for RunPod API & SDK.
55
long_description = file: README.md
66
long_description_content_type = text/markdown

0 commit comments

Comments
 (0)