Skip to content

/api/delete does not follow the RFC 7231 definition #8753

@dravenk

Description

@dravenk

What is the issue?

resource: https://datatracker.ietf.org/doc/html/rfc7231#section-4.3.5

A payload within a DELETE request message has no defined semantics;
sending a payload body on a DELETE request might cause some existing
implementations to reject the request.

The current delete request is the name of the model to be deleted placed in the body, which causes the following programming languages or third-party libraries to not handle the delete request correctly.

expected:
Change /api/deleteto /api/delete/%modele, and remove adding request information to the body.

OS

No response

GPU

No response

CPU

No response

Ollama version

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions