Skip to content

Commit 1b3ba53

Browse files
Merge pull request #264 from runpod/stream-test-method
fix: added GET to stream method for fastAPI
2 parents 07e66c0 + 2e68c47 commit 1b3ba53

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

runpod/serverless/modules/rp_fastapi.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ def __init__(self, config: Dict[str, Any]):
131131
description="Returns job output directly when called."
132132
)
133133
api_router.add_api_route(
134-
"/stream/{job_id}", self._sim_stream, methods=["POST"],
134+
"/stream/{job_id}", self._sim_stream, methods=["POST", "GET"],
135135
response_model_exclude_none=True, summary="Simulate stream behavior.",
136136
description="Aggregates the output of the job and returns it when the job is complete."
137137
)

0 commit comments

Comments
 (0)