update to use grok 4.1 fast
Browse filesFiles changed (6)
142 unmodified lines1431441451461471481491501515 unmodified lines157158159160161162163142 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": "Sherlock Think Alpha",5 unmodified linesk2_model_name_tag = "moonshotai/Kimi-K2-Thinking"# Default model selectionDEFAULT_MODEL_NAME = "Gemini 3 Pro Preview"DEFAULT_MODEL = Nonefor _m in AVAILABLE_MODELS:if _m.get("name") == DEFAULT_MODEL_NAME:142 unmodified lines1431441451461471481491501515 unmodified lines157158159160161162163142 unmodified lines"description": "Moonshot Kimi K2 Thinking model for advanced reasoning and code generation"},{"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 = "Grok 4.1 Fast"DEFAULT_MODEL = Nonefor _m in AVAILABLE_MODELS:if _m.get("name") == DEFAULT_MODEL_NAME:
2317 unmodified lines231823192320232123222323232497 unmodified lines24222423242424252426242724282317 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"]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"]if model_id in non_hf_models:2317 unmodified lines231823192320232123222323232497 unmodified lines24222423242424252426242724282317 unmodified lines"codestral-2508", "mistral-medium-2508","stealth-model-1","openrouter/sonoma-dusk-alpha", "openrouter/sonoma-sky-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","x-ai/grok-4.1-fast", "openrouter/sherlock-think-alpha"]if model_id in non_hf_models:
123 unmodified lines124125126127128129130131123 unmodified linesapi_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 modelreturn OpenAI(api_key=os.getenv("OPENROUTER_API_KEY"),base_url="https://openrouter.ai/api/v1",123 unmodified lines124125126127128129130131123 unmodified linesapi_key=os.getenv("OPENROUTER_API_KEY"),base_url="https://openrouter.ai/api/v1",)elif model_id == "x-ai/grok-4.1-fast":# Use OpenRouter client for Grok 4.1 Fast modelreturn OpenAI(api_key=os.getenv("OPENROUTER_API_KEY"),base_url="https://openrouter.ai/api/v1",
65 unmodified lines6667686970717242 unmodified lines115116117118119120121647 unmodified lines76977077177277377477565 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": "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: strlanguage: str = "html"model_id: str = "gemini-3.0-pro"provider: str = "auto"history: List[List[str]] = []agent_mode: bool = False647 unmodified linesquery = data.get("query")language = data.get("language", "html")model_id = data.get("model_id", "openrouter/sherlock-dash-alpha")# Send acknowledgmentawait websocket.send_json({65 unmodified lines6667686970717242 unmodified lines115116117118119120121647 unmodified lines76977077177277377477565 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": "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: strlanguage: str = "html"model_id: str = "x-ai/grok-4.1-fast"provider: str = "auto"history: List[List[str]] = []agent_mode: bool = False647 unmodified linesquery = data.get("query")language = data.get("language", "html")model_id = data.get("model_id", "x-ai/grok-4.1-fast")# Send acknowledgmentawait websocket.send_json({
16 unmodified lines1718192021222316 unmodified linesconst [generatedCode, setGeneratedCode] = useState('');const [selectedLanguage, setSelectedLanguage] = useState<Language>('html');const [selectedModel, setSelectedModel] = useState('gemini-3.0-pro');const [isGenerating, setIsGenerating] = useState(false);const [isAuthenticated, setIsAuthenticated] = useState(false);const [currentRepoId, setCurrentRepoId] = useState<string | null>(null); // Track imported/deployed space16 unmodified lines1718192021222316 unmodified linesconst [generatedCode, setGeneratedCode] = useState('');const [selectedLanguage, setSelectedLanguage] = useState<Language>('html');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 space
25 unmodified lines2627282930313225 unmodified linesonStart,isAuthenticated,initialLanguage = 'html',initialModel = 'gemini-3.0-pro',onAuthChange}: LandingPageProps) {const [prompt, setPrompt] = useState('');25 unmodified lines2627282930313225 unmodified linesonStart,isAuthenticated,initialLanguage = 'html',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