modeloc: 26 verified live models, guard + full-catalog probe

This commit is contained in:
ENI
2026-11-03 03:10:38 +03:00
parent 966f2672d3
commit ced7385d67
8 changed files with 240 additions and 14 deletions
+25
View File
@@ -0,0 +1,25 @@
import re
PATH = '/opt/grok-bot/iishko/catalog.py'
src = open(PATH, encoding='utf-8').read()
if '[MODELOC 1103]' in src:
print('ALREADY')
raise SystemExit
block = '''# [MODELOC 1103] проверенный живой набор modeloc
for _t, _ms in ((1, ['glm-4.5-air', 'nvidia/nemotron-3-ultra-550b-a55b:free']),
(3, ['MiniMax-M2.7-highspeed', 'glm-5.2'])):
TIER_MODELS[_t] += [m for m in _ms if m not in TIER_MODELS[_t]]
MODEL_DESCS.update({
'glm-4.5-air': 'GLM 4.5 Air · лёгкая, быстрые ответы',
'nvidia/nemotron-3-ultra-550b-a55b:free': 'Nemotron 3 Ultra 550B (free) · тяжёлые задачи',
'MiniMax-M2.7-highspeed': 'MiniMax M2.7 Highspeed · быстрый чат и код',
'glm-5.2': 'GLM 5.2 · тексты, код, анализ',
})
'''
anchor = 'CHAT_MODELS = list(dict.fromkeys('
i = src.index(anchor)
src = src[:i] + block + src[i:]
open(PATH, 'w', encoding='utf-8').write(src)
print('PATCHED')