File size: 3,445 Bytes
ba0404c
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
{
  "memories": [
    {
      "error": "ImportError: No module named 'gradio'",
      "solution": "pip install gradio==4.44.0",
      "fix_type": "dependency",
      "success_count": 8,
      "confidence": 0.98,
      "patch_command": "!patch scope:file type:find_and_replace filepath:requirements.txt find:gradio replace:gradio==4.45.0"
    },
    {
      "error": "ModuleNotFoundError: No module named 'openai'",
      "solution": "pip install openai==1.2.0",
      "fix_type": "dependency",
      "success_count": 12,
      "confidence": 0.99,
      "patch_command": "!patch scope:file type:find_and_replace filepath:requirements.txt find:openai replace:openai==1.2.0"
    },
    {
      "error": "NameError: name 'torch' is not defined",
      "solution": "import torch am Anfang der Datei einfügen",
      "fix_type": "code_error",
      "success_count": 4,
      "confidence": 0.88,
      "patch_command": "!patch scope:file type:insert_after filepath:app.py search_text:import gradio insert_text:import torch"
    },
    {
      "error": "SyntaxError: invalid syntax in file app.py line 42",
      "solution": "Zeile 42 auf fehlende Klammern prüfen",
      "fix_type": "code_error",
      "success_count": 5,
      "confidence": 0.92,
      "patch_command": "!patch scope:file type:read_file filepath:app.py"
    },
    {
      "error": "IndentationError: unexpected indent",
      "solution": "Einrückung korrigieren - Leerzeichen statt Tabs",
      "fix_type": "code_error",
      "success_count": 7,
      "confidence": 0.96,
      "patch_command": "!patch scope:file type:find_and_replace filepath:app.py find:'\\t' replace:'    '"
    },
    {
      "error": "FileNotFoundError: test.py not found",
      "solution": "Leere test.py anlegen",
      "fix_type": "file_operation",
      "success_count": 3,
      "confidence": 0.85,
      "patch_command": "!patch scope:file type:replace_line filepath:test.py line:1 content:# Neue test.py"
    },
    {
      "error": "TypeError: OpenAI.__init__() got an unexpected keyword argument 'proxies'",
      "solution": "OpenAI auf Version 1.2.0 downgraden",
      "fix_type": "dependency",
      "success_count": 6,
      "confidence": 0.94,
      "patch_command": "!patch scope:file type:find_and_replace filepath:requirements.txt find:openai replace:openai==1.2.0"
    },
    {
      "error": "AttributeError: 'CodePatcher' object has no attribute 'replace_line'",
      "solution": "Methode 'replace_line' in file_patcher.py definieren",
      "fix_type": "code_error",
      "success_count": 2,
      "confidence": 0.75,
      "patch_command": "!patch scope:file type:read_file filepath:agent/file_patcher.py"
    },
    {
      "error": "ValueError: line must be a number, got: 'abc'",
      "solution": "Parameter 'line' als Integer konvertieren: int(kwargs.get('line'))",
      "fix_type": "parameter_error",
      "success_count": 4,
      "confidence": 0.89,
      "patch_command": "!patch scope:file type:find_and_replace filepath:agent/core.py find:\"kwargs.get('line')\" replace:\"int(kwargs.get('line'))\""
    },
    {
      "error": "CUDA out of memory",
      "solution": "Batch-Größe reduzieren oder attention_slicing aktivieren",
      "fix_type": "runtime_error",
      "success_count": 5,
      "confidence": 0.91,
      "patch_command": "!patch scope:file type:insert_after filepath:app.py search_text:pipe = insert_text:pipe.enable_attention_slicing()"
    }
  ]
}