Skip to content

Overriding the model routing logic #1017

@James-UnlikelyAI

Description

@James-UnlikelyAI

Is it possible to customise how the server decides which model to send a request to?

My use case is that we have lots of models with different versions and I want to automatically always route requests sent to mymodel handle to the latest version. The models are named like mymodel_v1, mymodel_v2, .... mymodel_v9 and are incremented fairly regularly as part of a continuous deployment process.

Is there somewhere in the code that I could override in order to do this routing? On a related note if there is a better way to do this I would love to know! 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