Skip to content

This pull request removes all code related to the /prompts API and its database support, and consolidates the Gemini LLM API under a new /llm endpoint. #57

Merged
goldlabelapps merged 2 commits intomasterfrom
staging
Apr 4, 2026
Merged

This pull request removes all code related to the /prompts API and its database support, and consolidates the Gemini LLM API under a new /llm endpoint. #57
goldlabelapps merged 2 commits intomasterfrom
staging

Conversation

@goldlabelapps
Copy link
Copy Markdown
Owner

The codebase is simplified by deleting associated models, schemas, migration scripts, and routes for prompts. All references to Gemini endpoints are renamed to LLM, and the relevant API router is updated accordingly.

API Refactoring and Consolidation:

  • Renamed the Gemini API and endpoints to LLM, including changing the route from /gemini to /llm and updating all related function and variable names in llm.py (previously gemini.py). (app/api/llm/llm.py, app/api/llm/__init__.py, app/api/root.py, app/api/routes.py, [1] [2] [3] [4]
  • Removed the old Gemini API router import and route references. (app/api/gemini/__init__.py, app/api/gemini/init.pyL1-L3)

Prompts Feature Removal:

  • Deleted the entire /prompts API, including its router, endpoints, schemas, and database logic. (app/api/prompts/prompts.py, app/api/prompts/__init__.py, app/api/prompts/schemas.py, [1] [2] [3]
  • Removed database migration scripts and SQL files related to the prompts table and its schema, including creation and migration scripts. (app/api/prompts/utils/create_prompts_table.py, app/api/prompts/utils/create_prompts_table.sql, app/api/prompts/utils/alter_prompts_table_add_started_completed.sql, app/api/prompts/utils/migrate_prompts_table.py, [1] [2] [3] [4]

Delete the deprecated prompts feature and its database migration utilities. Removed endpoints and schema definitions (app/api/prompts/__init__.py, prompts.py, schemas.py) along with related utils and SQL/migration scripts (create_prompts_table.*, migrate_prompts_table.py, alter_prompts_table_add_started_completed.sql). Cleans up unused API surface and associated DB artifacts.
Move and rename the Gemini API module to llm: app/api/gemini/gemini.py -> app/api/llm/llm.py, update handler names and endpoints from /gemini to /llm, and adjust meta messages accordingly. Delete app/api/gemini/__init__.py and add app/api/llm/__init__.py exporting llm_router. Update app/api/routes.py to import and include the new llm router; also import the same llm router as gemini_router (preserving the previous router name) and remove the prompts_router import/include.
@goldlabelapps goldlabelapps self-assigned this Apr 4, 2026
@goldlabelapps goldlabelapps added this to the MVP milestone Apr 4, 2026
@goldlabelapps goldlabelapps merged commit a305c42 into master Apr 4, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant