update to use grok 4.1 fast
Browse filesFiles changed (6)
142 unmodified lines1431441451461471481461471481491501515 unmodified lines157158159160160161162163142 unmodified lines "description": "Moonshot Kimi K2 Thinking model for advanced reasoning and code generation" }, { "name": "Sherlock Dash Alpha", "id": "openrouter/sherlock-dash-alpha", "description": "Sherlock Dash Alpha model via OpenRouter for advanced code generation and reasoning" "name": "Grok 4.1 Fast", "id": "x-ai/grok-4.1-fast", "description": "Grok 4.1 Fast model via OpenRouter for advanced code generation and reasoning" }, { "name": "Sherlock Think Alpha",5 unmodified linesk2_model_name_tag = "moonshotai/Kimi-K2-Thinking"
# Default model selectionDEFAULT_MODEL_NAME = "Gemini 3 Pro Preview"DEFAULT_MODEL_NAME = "Grok 4.1 Fast"DEFAULT_MODEL = Nonefor _m in AVAILABLE_MODELS: if _m.get("name") == DEFAULT_MODEL_NAME:2317 unmodified lines2318231923202321232123222323232497 unmodified lines242224232424242524252426242724282317 unmodified lines "codestral-2508", "mistral-medium-2508", "stealth-model-1", "openrouter/sonoma-dusk-alpha", "openrouter/sonoma-sky-alpha", "openrouter/sherlock-dash-alpha", "openrouter/sherlock-think-alpha" "x-ai/grok-4.1-fast", "openrouter/sherlock-think-alpha" ] if model_id in non_hf_models:97 unmodified lines "codestral-2508", "mistral-medium-2508", "stealth-model-1", "openrouter/sonoma-dusk-alpha", "openrouter/sonoma-sky-alpha", "openrouter/sherlock-dash-alpha", "openrouter/sherlock-think-alpha" "x-ai/grok-4.1-fast", "openrouter/sherlock-think-alpha" ] if model_id in non_hf_models:123 unmodified lines124125126127128127128129130131123 unmodified lines api_key=os.getenv("OPENROUTER_API_KEY"), base_url="https://openrouter.ai/api/v1", ) elif model_id == "openrouter/sherlock-dash-alpha": # Use OpenRouter client for Sherlock Dash Alpha model elif model_id == "x-ai/grok-4.1-fast": # Use OpenRouter client for Grok 4.1 Fast model return OpenAI( api_key=os.getenv("OPENROUTER_API_KEY"), base_url="https://openrouter.ai/api/v1",65 unmodified lines666768696970717242 unmodified lines115116117118118119120121647 unmodified lines76977077177277277377477565 unmodified lines# Define models and languages here to avoid importing Gradio UIAVAILABLE_MODELS = [ {"name": "Gemini 3.0 Pro", "id": "gemini-3.0-pro", "description": "Google Gemini 3.0 Pro via Poe with advanced reasoning"}, {"name": "Sherlock Dash Alpha", "id": "openrouter/sherlock-dash-alpha", "description": "Sherlock Dash Alpha model via OpenRouter"}, {"name": "Grok 4.1 Fast", "id": "x-ai/grok-4.1-fast", "description": "Grok 4.1 Fast model via OpenRouter"}, {"name": "MiniMax M2", "id": "MiniMaxAI/MiniMax-M2", "description": "MiniMax M2 model via HuggingFace InferenceClient with Novita provider"}, {"name": "DeepSeek V3.2-Exp", "id": "deepseek-ai/DeepSeek-V3.2-Exp", "description": "DeepSeek V3.2 Experimental via HuggingFace"}, {"name": "DeepSeek R1", "id": "deepseek-ai/DeepSeek-R1-0528", "description": "DeepSeek R1 model for code generation"},42 unmodified linesclass CodeGenerationRequest(BaseModel): query: str language: str = "html" model_id: str = "gemini-3.0-pro" model_id: str = "x-ai/grok-4.1-fast" provider: str = "auto" history: List[List[str]] = [] agent_mode: bool = False647 unmodified lines query = data.get("query") language = data.get("language", "html") model_id = data.get("model_id", "openrouter/sherlock-dash-alpha") model_id = data.get("model_id", "x-ai/grok-4.1-fast") # Send acknowledgment await websocket.send_json({16 unmodified lines171819202021222316 unmodified lines const [generatedCode, setGeneratedCode] = useState(''); const [selectedLanguage, setSelectedLanguage] = useState<Language>('html'); const [selectedModel, setSelectedModel] = useState('gemini-3.0-pro'); const [selectedModel, setSelectedModel] = useState('x-ai/grok-4.1-fast'); const [isGenerating, setIsGenerating] = useState(false); const [isAuthenticated, setIsAuthenticated] = useState(false); const [currentRepoId, setCurrentRepoId] = useState<string | null>(null); // Track imported/deployed space25 unmodified lines262728292930313225 unmodified lines onStart, isAuthenticated, initialLanguage = 'html', initialModel = 'gemini-3.0-pro', initialModel = 'x-ai/grok-4.1-fast', onAuthChange}: LandingPageProps) { const [prompt, setPrompt] = useState('');anycoder_app/config.py+4-4
anycoder_app/deploy.py+2-2
anycoder_app/models.py+2-2
backend_api.py+3-3
frontend/src/app/page.tsx+1-1
frontend/src/components/LandingPage.tsx+1-1