add claude opus 4.1
Browse files19 unmodified lines20212223242557 unmodified lines83848586878819 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)- **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)57 unmodified lines- GLM-4.1V-9B-Thinking (multimodal)- GPT-5 (via Poe)- Grok-4 (via Poe)- Gemini 2.5 Flash (OpenAI-compatible)- Gemini 2.5 Pro (OpenAI-compatible)19 unmodified lines2021222324252657 unmodified lines8485868788899019 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)- 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 practices- **Code Generation**: Generate code in HTML, Python, JS, and more. Special support for transformers.js apps (outputs index.html, index.js, style.css)57 unmodified lines- GLM-4.1V-9B-Thinking (multimodal)- GPT-5 (via Poe)- Grok-4 (via Poe)- Claude-Opus-4.1 (via Poe)- Gemini 2.5 Flash (OpenAI-compatible)- Gemini 2.5 Pro (OpenAI-compatible)
540 unmodified lines541542543544545546107 unmodified lines6546556566576586592025 unmodified lines268526862687268826892690540 unmodified lines"name": "Grok-4","id": "grok-4","description": "Grok-4 model via Poe (OpenAI-compatible) for advanced tasks"}]107 unmodified linesapi_key=os.getenv("POE_API_KEY"),base_url="https://api.poe.com/v1")elif model_id == "step-3":# Use StepFun API client for Step-3 modelreturn OpenAI(2025 unmodified linesstream=True,max_tokens=16384)else:completion = client.chat.completions.create(model=_current_model["id"],540 unmodified lines541542543544545546547548549550551107 unmodified lines6596606616626636646656666676686696702025 unmodified lines2696269726982699270027012702270327042705270627072708540 unmodified lines"name": "Grok-4","id": "grok-4","description": "Grok-4 model via Poe (OpenAI-compatible) for advanced tasks"},{"name": "Claude-Opus-4.1","id": "claude-opus-4.1","description": "Anthropic Claude Opus 4.1 via Poe (OpenAI-compatible)"}]107 unmodified linesapi_key=os.getenv("POE_API_KEY"),base_url="https://api.poe.com/v1")elif model_id == "claude-opus-4.1":# Use Poe (OpenAI-compatible) client for Claude-Opus-4.1return OpenAI(api_key=os.getenv("POE_API_KEY"),base_url="https://api.poe.com/v1")elif model_id == "step-3":# Use StepFun API client for Step-3 modelreturn OpenAI(2025 unmodified linesstream=True,max_tokens=16384)elif _current_model["id"] == "claude-opus-4.1":completion = client.chat.completions.create(model="Claude-Opus-4.1",messages=messages,stream=True,max_tokens=16384)else:completion = client.chat.completions.create(model=_current_model["id"],
README.md+2
app.py+18