Protokoll #5181

ID5181
Zeitstempel2025-12-22 18:03:12.819247
Clientroot
IP145.224.96.190
Modellclaude-sonnet-4-20250514
Statuscompleted
Tokens300 (Input: 222, Output: 78)
Dauer226 ms
Request-Zeit2025-12-22 18:03:12.819247
Response-Zeit2025-12-22 18:03:13.045332

Request

{
    "event": "PreToolUse",
    "tool_name": "Bash",
    "tool_input": {
        "command": ".\/venv\/bin\/python -c \"\nimport requests\nfrom db import db\n\ndb.connect()\ncursor = db.execute('SELECT content FROM chunks WHERE id = 12')\nchunk = cursor.fetchone()\ncursor.close()\n\ncontent = chunk['content']\nprint(f'Testing chunk 12: {len(content)} chars')\nprint(f'Preview: {content[:100]}...')\n\nresponse = requests.post(\n    'http:\/\/localhost:11434\/api\/embeddings',\n    json={'model': 'mxbai-embed-large', 'prompt': content},\n    timeout=60\n)\n\nprint(f'Status: {response.status_code}')\nif response.status_code != 200:\n    print(f'Error: {response.text}')\nelse:\n    data = response.json()\n    if 'embedding' in data:\n        print(f'Embedding: {len(data[\\\"embedding\\\"])} dim')\n    else:\n        print(f'Response: {data}')\n\ndb.disconnect()\n\"",
        "description": "Debug chunk 12 embedding"
    }
}

Response

{
    "tool_response": {
        "stdout": "Testing chunk 12: 958 chars\nPreview: DÜRFEN WIR VORSTELLEN – COACHING IN ­ABGRENZUNG ZUR \n­PSYCHOTHERAPIE\n1.\t Rechtliche Grundlagen von C...\nStatus: 500\nError: {\"error\":\"the input length exceeds the context length\"}",
        "stderr": "",
        "interrupted": false,
        "isImage": false
    }
}
← Vorheriger Zur Liste Nächster →