Spaces:
Configuration error
Configuration error
Commit History
-
feat(phase1): rebuild backend on FastAPI + E2B + SSE (stability-first)β
genspark-ai-developerComplete Phase-1 rebuild per spec: one stable pipeline, real execution, no fake Computer Use. Backend (backend/app.py β single ~530-line module): - GET /health: real status (E2B + provider availability) - POST /api/v1/chat (SSE): LLM-only streaming, NO sandbox * Providers in order: SambaNova β Groq β GitHub Models β OpenAI β Anthropic β Gemini * Stable text-only streaming, no fragile tool-calling - POST /api/v1/execute (SSE): REAL E2B sandbox execution * Streams sandbox_ready β stdout/stderr β result events live * Per-session sandbox reuse (warm restart ~88ms vs 400ms cold) * Accepts {language, code} OR legacy {tool, args} * Local subprocess fallback if E2B unavailable - POST /api/v1/agent (SSE): intent-routed (chat OR execute) * Keyword + code-block heuristic, LLM code generation when needed - POST /api/v1/orchestrate, /api/v1/kernel/orchestrate, /api/v1/chat/stream: legacy aliases for frontend backward-compat - GET/DELETE /api/v1/sandbox/{session_id}: lifecycle - WS β¦bb9b14c