File size: 422 Bytes
4067b64
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
from fastapi import APIRouter
from llama_index.core.settings import Settings

# configurations
router = APIRouter()

@router.get("/")
async def read_root():
    return "Script Reader Workflow for User Intent from files is up!"


@router.post("/context/")
async def extract_code_context():
    try:
        response = ""
        return response
    except Exception as e:
        return {"detail": f"Error processing {e}"}