Skip to content

ValueError: Model ollama/llama2:latest does not support response schema #152

Description

@irtiq7

Describe the bug
When I generating dataset using ollama, I get the above message.

To Reproduce

Run the following code:

import plexe

MODEL_ID = "ollama/llama2:latest"

# Generate synthetic data
dataset = plexe.DatasetGenerator(
    description="Example dataset with features and target",
    provider=MODEL_ID,
    schema={"features": str, "target": int}
)
dataset.generate(500)  # Generate 500 samples
print("Generated dataset:", dataset)

Expected behavior

Got this error:
ValueError: Model ollama/llama2:latest does not support response schema

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions