File size: 1,426 Bytes
0b2210a
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
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()