Skip to content

Exception using Ollama API #3

@hgeorgsch

Description

@hgeorgsch
Traceback (most recent call last):
  File "<frozen runpy>", line 198, in _run_module_as_main
  File "<frozen runpy>", line 88, in _run_code
  File "/home/georg/git/AI-Assessment/moodle-coderunner-docker/jobe/ChatRunner/ChatRunner/__main__.py", line 73, in <module>
    r = testProgram( prob, ans, lit, graderstate_string, cfg )
  File "/home/georg/git/AI-Assessment/moodle-coderunner-docker/jobe/ChatRunner/ChatRunner/chatrunner.py", line 327, in testProgram
    testResults = queryAI(sandbox, studans, prompt, debug=debug)
  File "/home/georg/git/AI-Assessment/moodle-coderunner-docker/jobe/ChatRunner/ChatRunner/query.py", line 23, in queryAI
    r.extend( dumpResponse( svar ) )
              ~~~~~~~~~~~~^^^^^^^^
  File "/home/georg/git/AI-Assessment/moodle-coderunner-docker/jobe/ChatRunner/ChatRunner/query.py", line 53, in dumpResponse
    testlist = json.loads(svar_fetched)
  File "/usr/lib/python3.13/json/__init__.py", line 346, in loads
    return _default_decoder.decode(s)
           ~~~~~~~~~~~~~~~~~~~~~~~^^^
  File "/usr/lib/python3.13/json/decoder.py", line 348, in decode
    raise JSONDecodeError("Extra data", s, end)
json.decoder.JSONDecodeError: Extra data: line 10 column 2 (char 3431)

Metadata

Metadata

Assignees

Labels

wontfixThis will not be worked on

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions