Spaces:
Sleeping
Sleeping
fix gemini 3
Browse filesFiles changed (2)
52 unmodified lines5354555657585943 unmodified lines10310410510510610710810952 unmodified lines
# Define models and languages here to avoid importing Gradio UIAVAILABLE_MODELS = [ {"name": "Gemini 3 Pro Preview", "id": "gemini-3-pro-preview", "description": "Google Gemini 3 Pro Preview with deep thinking, Google Search integration, and 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"},43 unmodified linesclass CodeGenerationRequest(BaseModel): query: str language: str = "html" model_id: str = "openrouter/sherlock-dash-alpha" model_id: str = "gemini-3-pro-preview" provider: str = "auto" history: List[List[str]] = [] agent_mode: bool = False13 unmodified lines141516171718192013 unmodified lines const [messages, setMessages] = useState<Message[]>([]); const [generatedCode, setGeneratedCode] = useState(''); const [selectedLanguage, setSelectedLanguage] = useState<Language>('html'); const [selectedModel, setSelectedModel] = useState('openrouter/sherlock-dash-alpha'); const [selectedModel, setSelectedModel] = useState('gemini-3-pro-preview'); const [isGenerating, setIsGenerating] = useState(false); const [isAuthenticated, setIsAuthenticated] = useState(false); backend_api.py+2-1
frontend/src/app/page.tsx+1-1