Add final Qwen3.8 runtime and uncensored profile
This commit is contained in:
@@ -19,6 +19,7 @@ class Filter:
|
||||
medium_context_tokens: int = 160000
|
||||
large_context_tokens: int = 192000
|
||||
ultra_context_tokens: int = 262144
|
||||
uncensored_context_tokens: int = 80000
|
||||
default_context_tokens: int = 160000
|
||||
soft_context_ratio: float = 0.70
|
||||
hard_context_ratio: float = 0.84
|
||||
@@ -110,6 +111,8 @@ class Filter:
|
||||
model = (model or "").lower()
|
||||
if "ultra" in model:
|
||||
return self.valves.ultra_context_tokens
|
||||
if "uncensored" in model:
|
||||
return self.valves.uncensored_context_tokens
|
||||
if "large" in model:
|
||||
return self.valves.large_context_tokens
|
||||
if "medium" in model:
|
||||
|
||||
@@ -59,7 +59,7 @@ owner = requested_owner
|
||||
if not owner:
|
||||
row = con.execute(
|
||||
"select user_id from model where id in "
|
||||
"('mikeai-fast','mikeai-medium','mikeai-large','mikeai-ultra',"
|
||||
"('mikeai-fast','mikeai-medium','mikeai-large','mikeai-ultra','mikeai-uncensored',"
|
||||
"'mikeai---fast-72k') order by updated_at desc limit 1"
|
||||
).fetchone()
|
||||
if row:
|
||||
@@ -160,6 +160,18 @@ profiles = [
|
||||
"vision": False,
|
||||
"tags": ["MikeAI", "Maximaler Kontext", "Nur Text"],
|
||||
},
|
||||
{
|
||||
"id": "mikeai-uncensored",
|
||||
"base": "qwen-uncensored",
|
||||
"name": "MikeAI · Uncensored · 80K",
|
||||
"description": (
|
||||
"Weniger verweigerungsfreudiges Spezialprofil: Qwen3.8-27B "
|
||||
"Abliterated Q4_K_M, 80.000 Token, RTX 5080 + RTX 3060 (90:10), MTP2 und "
|
||||
"Bildanalyse. Werkzeugrechte und Bestätigungsregeln bleiben unverändert."
|
||||
),
|
||||
"vision": True,
|
||||
"tags": ["MikeAI", "Uncensored", "Vision"],
|
||||
},
|
||||
]
|
||||
|
||||
params = {
|
||||
@@ -262,7 +274,7 @@ with con:
|
||||
|
||||
# Hide the raw router aliases while keeping them resolvable as bases for
|
||||
# the user-facing workspace presets.
|
||||
for raw_id in ("qwen-fast", "qwen-medium", "qwen-large", "qwen-ultra"):
|
||||
for raw_id in ("qwen-fast", "qwen-medium", "qwen-large", "qwen-ultra", "qwen-uncensored"):
|
||||
upsert(
|
||||
raw_id, None, raw_id, {},
|
||||
{
|
||||
@@ -306,7 +318,7 @@ with con:
|
||||
("ui.default_models", json.dumps("mikeai-medium"), now),
|
||||
)
|
||||
|
||||
print("OpenWebUI-Modelle installiert: Fast, Medium (Standard), Large, Ultra")
|
||||
print("OpenWebUI-Modelle installiert: Fast, Medium (Standard), Large, Ultra, Uncensored")
|
||||
PY
|
||||
|
||||
printf 'Datenbanksicherung: %s\n' "$backup"
|
||||
|
||||
Reference in New Issue
Block a user