helloguddn (PC helloguddn)
feat: 의존성, chat 엔드포인트, gemini function calling, 이미지 추출, Maps 연동, 노동법 RAG(google.text-embedding-004)
f4bf832
Raw History Blame Contribute Delete
548 Bytes
from dotenv import load_dotenv
from fastapi import FastAPI
from fastapi.middleware.cors import CORSMiddleware
from routers import chat
load_dotenv()
app = FastAPI(title="Co-Local API", version="1.0.0")
app.add_middleware(
CORSMiddleware,
allow_origins=["*"],
allow_methods=["*"],
allow_headers=["*"],
)
app.include_router(chat.router, prefix="/chat", tags=["chat"])
@app.get("/")
def root():
return {"message": "Co-Local API is running", "version": "1.0.0"}
@app.get("/health")
def health():
return {"status": "ok"}