Merged
Conversation
…rchitecture - Replace OpenAI client with OpenRouter across all endpoints - Implement enhance_prompt_with_openrouter shared function for DRY architecture - Add advanced CoT-based system message for enhanced prompt engineering - Change default mode from 'enhance' to 'migrate' in frontend - Add experimental badge to enhance option in UI - Fix sliding indicator positioning with CSS Grid layout - Consolidate fallback migration to use same enhancement logic - Update API key handling for OPENROUTER_API_KEY throughout system
…rchitecture - Replace OpenAI client with OpenRouter across all endpoints - Implement enhance_prompt_with_openrouter shared function for DRY architecture - Add advanced CoT-based system message for enhanced prompt engineering - Change default mode from 'enhance' to 'migrate' in frontend - Add experimental badge to enhance option in UI - Fix sliding indicator positioning with CSS Grid layout - Consolidate fallback migration to use same enhancement logic - Update API key handling for OPENROUTER_API_KEY throughout system
…y changes in frontend + backend integration
…y changes in frontend + backend integration
…prompt optimization workflow
- Introduced pytest configuration in `pytest.ini` for backend tests. - Added coverage reporting settings to track test coverage. - Created initial test suite structure with unit and integration tests. - Implemented sample datasets and fixtures for testing. - Added coverage report generation in JSON and HTML formats. - Included comprehensive README for test suite usage and structure.
…ionality - Temporarily hide the Projects List Section in MainContent for future project management features. - Update DatasetUploader to include a Trash2 icon for file removal. - Adjust FieldMappingInterface and MetricsSelector for better text clarity and layout. - Enhance OnboardingWizard with a stepper navigation and diff view for prompt comparison. - Simplify UseCaseSelector by removing unnecessary helper text. - Refactor WizardSection to always display content, removing collapsible functionality for a more straightforward user flow.
…omparison - Introduced a new UnifiedDiffView component to display all changes inline. - Added a toggle for switching between split and unified view modes. - Enhanced the diff display with word count statistics for added and removed words. - Improved layout and styling for better user experience in the optimization results section.
…d layout and user experience
…onents - Added a custom HTTP exception handler in the backend to log error details. - Updated DatasetUploader to display record and field counts after file upload. - Modified OnboardingWizard to capture and store dataset record and field counts. - Improved error handling in dataset upload process to provide detailed feedback.
…omponents - Added a new endpoint in the backend to test connections to model providers using LiteLLM. - Enhanced error extraction for user-friendly messages from LiteLLM exceptions. - Updated ModelProviderSelector to handle connection status and errors more effectively. - Improved user experience by clearing error messages when connection-related fields are modified. - Refactored API testing logic to utilize the new backend endpoint for better validation of API keys and configurations.
…in DocsTab component
- Updated input and select components to use a unified styling approach. - Enhanced focus and placeholder styles for better accessibility and user experience. - Adjusted button and option styles for improved visual feedback and clarity.
…oved readability and user experience
…stency and user experience
… visual consistency
…ng, remote diff logic
… visual alignment and spacing
…and frontend components for improved user experience
…rporate useDefaultKey flag for API key handling, improving configuration management and validation logic.
…nents by adding ARIA attributes and updating text color for better visibility
…instructions; change backend port to 8001 for consistency.
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.
What does this PR do?
This PR introduces a web-based frontend for prompt-ops, providing an intuitive graphical interface for prompt optimization workflows. Previously, prompt-ops was CLI-only, this adds a modern web UI to make the library accessible to a broader audience.
Web Frontend (
frontend/)FastAPI Backend (
frontend/backend/)Core Library Updates
llama-prompt-ops→prompt-opsacross the codebaseAccess at http://localhost:8081
Test Plan
Terminal 1 - Backend:
cd frontend/backend pip install -r requirements.txt uvicorn main:app --reload --port 8001Terminal 2 - Frontend:
cd frontend npm install npm run devChecklist