add new qwen model thinking
Browse files18 unmodified lines1920212223242518 unmodified lines44454647484922 unmodified lines72737475767718 unmodified lines## Features- **Multi-Model Support**: Choose from Moonshot Kimi-K2, DeepSeek V3, DeepSeek R1, ERNIE-4.5-VL, MiniMax M1, Qwen3-235B-A22B, SmolLM3-3B, and GLM-4.1V-9B-Thinking- **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 practices- **Code Generation**: Generate code in HTML, Python, JS, and more. Special support for transformers.js apps (outputs index.html, index.js, style.css)18 unmodified lines```bashexport HF_TOKEN="your_huggingface_token"export TAVILY_API_KEY="your_tavily_api_key" # Optional, for web search feature```## Usage22 unmodified lines- ERNIE-4.5-VL (multimodal)- MiniMax M1- Qwen3-235B-A22B- SmolLM3-3B- GLM-4.1V-9B-Thinking (multimodal)18 unmodified lines1920212223242518 unmodified lines4445464748495022 unmodified lines737475767778798018 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, and GLM-4.1V-9B-Thinking- **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 practices- **Code Generation**: Generate code in HTML, Python, JS, and more. Special support for transformers.js apps (outputs index.html, index.js, style.css)18 unmodified lines```bashexport HF_TOKEN="your_huggingface_token"export TAVILY_API_KEY="your_tavily_api_key" # Optional, for web search featureexport DASHSCOPE_API_KEY="your_dashscope_api_key" # Required for Qwen3-30B models via DashScope```## Usage22 unmodified lines- ERNIE-4.5-VL (multimodal)- MiniMax M1- Qwen3-235B-A22B- Qwen3-30B-A3B-Instruct-2507 (via DashScope)- Qwen3-30B-A3B-Thinking-2507 (via DashScope)- SmolLM3-3B- GLM-4.1V-9B-Thinking (multimodal)
394 unmodified lines39539639739839940073 unmodified lines474475476477478479394 unmodified lines"name": "Qwen3-30B-A3B-Instruct-2507","id": "qwen3-30b-a3b-instruct-2507","description": "Qwen3-30B-A3B-Instruct model via Alibaba Cloud DashScope API"}]73 unmodified linesapi_key=os.getenv("DASHSCOPE_API_KEY"),base_url="https://dashscope.aliyuncs.com/compatible-mode/v1",)elif model_id == "moonshotai/Kimi-K2-Instruct":provider = "groq"elif model_id == "Qwen/Qwen3-235B-A22B":394 unmodified lines39539639739839940040140240340440573 unmodified lines479480481482483484485486487488489490394 unmodified lines"name": "Qwen3-30B-A3B-Instruct-2507","id": "qwen3-30b-a3b-instruct-2507","description": "Qwen3-30B-A3B-Instruct model via Alibaba Cloud DashScope API"},{"name": "Qwen3-30B-A3B-Thinking-2507","id": "qwen3-30b-a3b-thinking-2507","description": "Qwen3-30B-A3B-Thinking model with advanced reasoning via Alibaba Cloud DashScope API"}]73 unmodified linesapi_key=os.getenv("DASHSCOPE_API_KEY"),base_url="https://dashscope.aliyuncs.com/compatible-mode/v1",)elif model_id == "qwen3-30b-a3b-thinking-2507":# Use DashScope OpenAI client for Thinking modelreturn OpenAI(api_key=os.getenv("DASHSCOPE_API_KEY"),base_url="https://dashscope.aliyuncs.com/compatible-mode/v1",)elif model_id == "moonshotai/Kimi-K2-Instruct":provider = "groq"elif model_id == "Qwen/Qwen3-235B-A22B":
README.md+4-1
app.py+11