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 Apr 4, 2026
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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:
GeminiAPI and endpoints toLLM, including changing the route from/geminito/llmand updating all related function and variable names inllm.py(previouslygemini.py). (app/api/llm/llm.py,app/api/llm/__init__.py,app/api/root.py,app/api/routes.py, [1] [2] [3] [4]app/api/gemini/__init__.py, app/api/gemini/init.pyL1-L3)Prompts Feature Removal:
/promptsAPI, 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]promptstable 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]