fix: execute-stream must be GET not POST (EventSource always uses GET)
This commit is contained in:
parent
b39ba45749
commit
8d9b5bf397
|
|
@ -1445,7 +1445,7 @@ from prompt_executor import execute_prompt_with_data
|
||||||
from models import UnifiedPromptCreate, UnifiedPromptUpdate
|
from models import UnifiedPromptCreate, UnifiedPromptUpdate
|
||||||
|
|
||||||
|
|
||||||
@router.post("/execute-stream")
|
@router.get("/execute-stream")
|
||||||
async def execute_unified_prompt_stream(
|
async def execute_unified_prompt_stream(
|
||||||
prompt_slug: str = Query(..., description="Slug of prompt to execute"),
|
prompt_slug: str = Query(..., description="Slug of prompt to execute"),
|
||||||
token: Optional[str] = Query(None, description="Auth token (temporary solution for SSE)"),
|
token: Optional[str] = Query(None, description="Auth token (temporary solution for SSE)"),
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user