Skip to content

ImportError: cannot import name 'Client' from 'ollama'  #62

@nickschuetz

Description

@nickschuetz

When running models locally using ollama and utilizing the ollama.py as an input script to diambra it fails with the following error:

ImportError: cannot import name 'Client' from 'ollama' (/home/ken/PROJECTS/llm-colosseum/ollama.py)

If you rename ollama.py to something like local.py and run it that way it works.

Ref: ollama/ollama-python#91 (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