Spaces:
Running on Zero
Running on Zero
Update app.py
Browse files1693 unmodified lines16941695169616971697169816991700170117021703756 unmodified lines246024612462246324642465246624672468246924702471612 unmodified lines3084308530863083308730883089309030913092309330943095308530963097309830991693 unmodified lines
if self.provider_keys.get("nvidia_nim"): candidate_models.extend([ "nvidia_nim/moonshotai/kimi-k3_1-pro", "nvidia_nim/nvidia/nemotron-3-ultra-550b-a55b", "nvidia_nim/moonshotai/kimi-k3_1-pro", "nvidia_nim/moonshotai/kimi-k2.5", "nvidia_nim/meta/llama-3.3-70b-instruct", ]) priority_rank = {name: idx for idx, name in enumerate(priority_openrouter_models)}756 unmodified lines model_name = str(getattr(self, "model_id", "") or "") if api_base: self.api_base = api_base kwargs["api_base"] = api_base if isinstance(getattr(self, "kwargs", None), dict): self.kwargs["api_base"] = api_base if key: self.api_key = key kwargs["api_key"] = key if isinstance(getattr(self, "kwargs", None), dict): self.kwargs["api_key"] = key
612 unmodified lines "then output ONLY the single move in Standard Algebraic Notation (SAN, e.g. Rd5, Nf6+, O-O) " "without move numbers (no '1.' or '1...') or commentary." ) if "table" in prompt_lower or "|*|" in prompt or "commutative" in prompt_lower: if ( "|*|" in prompt or "commutative" in prompt_lower or "commutativity" in prompt_lower or "cayley table" in prompt_lower or "binary operation" in prompt_lower or ("operation" in prompt_lower and "table" in prompt_lower) ): prompt += ( "\n\nIMPORTANT: For table/operation tasks, write Python that builds a dict of dicts, " "\n\nIMPORTANT: For binary operation / Cayley table tasks, write Python that builds a dict of dicts, " "then loops over all pairs (x,y) and checks table[x][y] != table[y][x]. " "Collect all elements from pairs where this is true into a set, sort alphabetically, " "and output as comma-separated string. Do NOT use undefined variables."app.py+14-3