add kimi k2 thinking
Browse files18 unmodified lines192021222223242547 unmodified lines7374757677787918 unmodified lines
## Features
- **Multi-Model Support**: Choose from Moonshot Kimi-K2, Kimi K2 Turbo (Preview), DeepSeek V3, DeepSeek R1, ERNIE-4.5-VL, MiniMax M2, 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), Kimi K2 Thinking, DeepSeek V3, DeepSeek R1, ERNIE-4.5-VL, MiniMax M2, 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 practices47 unmodified lines
- Moonshot Kimi-K2- Kimi K2 Turbo (Preview)- Kimi K2 Thinking- DeepSeek V3- DeepSeek V3.1- DeepSeek V3.1 Terminus2429 unmodified lines2430243124322433243424352436243724382439244024362441244224432444124 unmodified lines2569257025712572257325742575257625772578257925802429 unmodified lines "name": "MiniMax M2", "id": "MiniMaxAI/MiniMax-M2", "description": "MiniMax M2 model via HuggingFace InferenceClient with Novita provider" }, { "name": "Kimi K2 Thinking", "id": "kimi-k2-thinking", "description": "Moonshot Kimi K2 Thinking model for advanced reasoning and code generation" }]# Default model selectionDEFAULT_MODEL_NAME = "MiniMax M2"DEFAULT_MODEL_NAME = "Kimi K2 Thinking"DEFAULT_MODEL = Nonefor _m in AVAILABLE_MODELS: if _m.get("name") == DEFAULT_MODEL_NAME:124 unmodified lines api_key=os.getenv("MOONSHOT_API_KEY"), base_url="https://api.moonshot.ai/v1", ) elif model_id == "kimi-k2-thinking": # Use Moonshot AI (OpenAI-compatible) client for Kimi K2 Thinking return OpenAI( api_key=os.getenv("MOONSHOT_API_KEY"), base_url="https://api.moonshot.ai/v1", ) elif model_id == "stealth-model-1": # Use stealth model with generic configuration api_key = os.getenv("STEALTH_MODEL_1_API_KEY")README.md+2-1
app.py+12-1