Skip to content

Commit 151aa0a

Browse files
Merge pull request #83 from goldlabelapps/staging
This pull request makes several significant changes to the API structure and database migration scripts.
2 parents b807d24 + f0405ef commit 151aa0a

85 files changed

Lines changed: 1672 additions & 673 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

app/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
"""Python - FastAPI, Postgres, tsvector"""
22

33
# Current Version
4-
__version__ = "2.2.1"
4+
__version__ = "2.2.2"

app/api/llm/__init__.py

Lines changed: 0 additions & 3 deletions
This file was deleted.

app/api/prompt/__init__.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
"""LLM Routes"""
2+
3+
from .prompt import router as llm_router
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,15 @@
66

77
router = APIRouter()
88

9-
@router.get("/llm")
10-
def get_llm_records(
9+
@router.get("/prompt")
10+
def get_prompt_records(
1111
request: Request,
1212
page: int = Query(1, ge=1, description="Page number (1-based)"),
1313
page_size: int = Query(10, ge=1, le=100, description="Records per page"),
1414
prospect_id: int = Query(None, description="Filter by prospect_id"),
1515
api_key: str = Depends(get_api_key)
1616
) -> dict:
17-
"""GET /llm: Paginated list of LLM completions."""
17+
"""GET /prompt: Paginated list of prompt completions."""
1818
try:
1919
conn = get_db_connection_direct()
2020
cur = conn.cursor()
@@ -98,9 +98,9 @@ def get_llm_records(
9898
meta = make_meta("error", f"DB error: {str(e)}")
9999
return {"meta": meta, "data": {}}
100100

101-
@router.post("/llm")
101+
@router.post("/prompt")
102102
def llm_post(payload: dict) -> dict:
103-
"""POST /llm: send prompt to Gemini, returns completion google-genai SDK."""
103+
"""POST /prompt: send prompt to Gemini, returns completion google-genai SDK."""
104104
prompt = payload.get("prompt")
105105
prospect_id = payload.get("prospect_id")
106106
if not prompt:
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)