Skip to content

Unable to close connections #441

Closed
@eliranwong

Description

@eliranwong

After running ollama python library, I got resource warning ... socket not closed ... 11434 ...

I need a way to explicitly close the connection. However, the ollama client does not have a close method as openai client does.

Right now, I need to use openai library to connect to ollama server, to avoid the warning. with the openai library, I can close the connection with a close method.

I hope the ollama python library offers a way to close the connection. Appreciate your good work. Thanks.

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