Release v1.0.0 - Override Model Switcher
We're excited to announce the first release of the Override Model Switcher, a FastAPI-based web application that allows users to switch between different OpenAI models.
Features
- Web interface for easy model switching
- RESTful API endpoints for model management and chat completions
- CORS support for handling cross-origin requests
- Static file serving
- Secure handling of API keys through environment variables
- Docker support for easy deployment
Key Components
- FastAPI backend with dedicated modules for OpenAI API communication and routing
- Frontend interface with JavaScript functionality
- Logging configuration for better debugging and monitoring
- Model switching tool for seamless transitions between different OpenAI models
API Endpoints
- GET
/
: Serves the web model switching interface - GET
/v1/models
: Retrieves list of available models - POST
/switch/override_models
: Switches to a specified model - POST
/v1/chat/completions
: Handles chat completions
Setup
Detailed setup instructions for both local and Docker environments are provided in the README.md file.
License
This project is released under the MIT License. See the LICENSE file for full details.
Notes
- Ensure to keep your API keys confidential and not expose them in public repositories.
- When using Docker, pass sensitive information through environment variables rather than including them in the image.
We welcome contributions and feedback to improve the Override Model Switcher!