add kimi k2 turbo
Browse files18 unmodified lines192021222223242522 unmodified lines4849505152535417 unmodified lines7273747576777852 unmodified lines13113213313413513613718 unmodified lines
## Features
- **Multi-Model Support**: Choose from Moonshot Kimi-K2, DeepSeek V3, DeepSeek R1, ERNIE-4.5-VL, MiniMax M1, Qwen3-235B-A22B, Qwen3-30B-A3B-Instruct-2507, Qwen3-30B-A3B-Thinking-2507, SmolLM3-3B, GLM-4.1V-9B-Thinking, Gemini 2.5 Flash and Gemini 2.5 Pro (OpenAI-compatible)- **Multi-Model Support**: Choose from Moonshot Kimi-K2, Kimi K2 Turbo (Preview), DeepSeek V3, DeepSeek R1, ERNIE-4.5-VL, MiniMax M1, Qwen3-235B-A22B, Qwen3-30B-A3B-Instruct-2507, Qwen3-30B-A3B-Thinking-2507, SmolLM3-3B, GLM-4.1V-9B-Thinking, Gemini 2.5 Flash and Gemini 2.5 Pro (OpenAI-compatible) - Claude-Opus-4.1 (via Poe)- **Flexible Input**: Describe your app in text, upload a UI design image (for multimodal models), provide a reference file (PDF, TXT, MD, CSV, DOCX, or image), or enter a website URL for redesign- **Web Search Integration**: Enable real-time web search (Tavily, with advanced search depth) to enhance code generation with up-to-date information and best practices22 unmodified linesexport DASHSCOPE_API_KEY="your_dashscope_api_key" # Required for Qwen3-30B models via DashScopeexport POE_API_KEY="your_poe_api_key" # Required for GPT-5 and Grok-4 via Poeexport GEMINI_API_KEY="your_gemini_api_key" # Required for Gemini modelsexport MOONSHOT_API_KEY="your_moonshot_api_key" # Required for Kimi models```
## Usage17 unmodified lines## Supported Models
- Moonshot Kimi-K2- Kimi K2 Turbo (Preview)- DeepSeek V3- DeepSeek R1- ERNIE-4.5-VL (multimodal)52 unmodified lines- `HF_TOKEN`: Your Hugging Face API token (required)- `TAVILY_API_KEY`: Your Tavily API key (optional, for web search) - `GEMINI_API_KEY`: Your Google Gemini API key (required to use Gemini models)- `MOONSHOT_API_KEY`: Your Moonshot AI API key (required to use Kimi models)
## Project Structure
411 unmodified lines412413414415416417418419420421422268 unmodified lines691692693694695696697698699700701702411 unmodified lines "id": "moonshotai/Kimi-K2-Instruct", "description": "Moonshot AI Kimi-K2-Instruct model for code generation and general tasks" }, { "name": "Kimi K2 Turbo (Preview)", "id": "kimi-k2-turbo-preview", "description": "Moonshot AI Kimi K2 Turbo via OpenAI-compatible API" }, { "name": "DeepSeek V3", "id": "deepseek-ai/DeepSeek-V3-0324",268 unmodified lines api_key=os.getenv("GEMINI_API_KEY"), base_url="https://generativelanguage.googleapis.com/v1beta/openai/", ) elif model_id == "kimi-k2-turbo-preview": # Use Moonshot AI (OpenAI-compatible) client for Kimi K2 Turbo (Preview) return OpenAI( api_key=os.getenv("MOONSHOT_API_KEY"), base_url="https://api.moonshot.ai/v1", ) elif model_id == "openai/gpt-oss-120b": provider = "cerebras" elif model_id == "openai/gpt-oss-20b":README.md+4-1
app.py+11