Skip to content

[ModelProvider] error. Reason: JSON parse error: [json.exception.parse_error.101] parse error at line 1, column 1: attempting to parse an empty input; check that your input string or stream contains the expected JSON #216

Description

@zixiao-ye

Version

Flock v0.5.0
DuckDB v1.4.2 (Andium) 68d7555f68

Behavior

When trying the getting started Ollama example with local model

CREATE SECRET (
    TYPE OLLAMA,
    API_URL '127.0.0.1:11434'
);

CREATE MODEL(
   'QuackingModel',
   'qwen3:4b',
   'ollama',
   {"tuple_format": "json", "batch_size": 32, "model_parameters": {"temperature": 0.7}}
);

SELECT llm_complete(
    {'model_name': 'QuackingModel'},
    {'prompt': 'Talk like a duck 🦆 and write a poem about a database 📚'}
);

I got the following error:

[ModelProvider] error. Reason: JSON parse error: [json.exception.parse_error.101] parse error at line 1, column 1: attempting to parse an empty input; check that your input string or stream contains the expected JSON

I have download the model and checked that Ollama is running locally on 127.0.0.1:11434.
Maybe do you know Why I got this error?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions