AI-Colab / check_models.py
A.Tuin
initial commit
0b2210a
Raw History Blame Contribute Delete
1.43 kB
import os
import json
def check():
config_path = "D:/Gemini/AIColab/config/models_config.json"
if not os.path.exists(config_path):
print(f"FAILED: Config not found at {config_path}")
return
with open(config_path, 'r', encoding='utf-8') as f:
config = json.load(f)
template = config['model_providers']['gptoss']['model_path_template']
print("--- Checking Local Models ---")
for key, m_cfg in config['active_models'].items():
if m_cfg['provider'] == 'gptoss':
model_id = m_cfg['model_id']
full_path = template.format(model_id=model_id)
exists = os.path.exists(full_path)
print(f"Model: {m_cfg['name']}")
print(f" Key: {key}")
print(f" Expected Path: {full_path}")
print(f" Status: {'EXISTS' if exists else 'NOT FOUND'}")
if not exists:
# Проверим, может есть папка с таким именем
base_dir = os.path.dirname(full_path)
print(f" Searching in {base_dir}...")
if os.path.exists(base_dir):
items = os.listdir(base_dir)
print(f" Found in directory: {items}")
else:
print(f" Directory {base_dir} does not exist!")
print("-" * 30)
if __name__ == "__main__":
check()