Skip to content

--local should respect $OLLAMA_HOST rather than defaulting to localhost #1413

@sammcj

Description

@sammcj

Is your feature request related to a problem? Please describe.

No response

Describe the solution you'd like

$OLLAMA_HOST is the standard way to define your Ollama server URL. It is used by various Ollama clients including the official Ollama command line tool.

At present --local uses a hardcoded api_base of http://localhost:11434

It would be nice if it defaulted to the $OLLAMA_HOST environment variable value (if found).

Describe alternatives you've considered

No response

Additional context

No response

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