This commit is contained in:
Christian Mantha
2026-03-02 19:10:52 -05:00
commit 2ca0b9ef7c
28907 changed files with 5233713 additions and 0 deletions

View File

@@ -0,0 +1,26 @@
from typing import Optional
from mlflow.gateway.base_models import ResponseModel
from mlflow.gateway.config import Limit, RouteModelInfo
class Endpoint(ResponseModel):
name: str
endpoint_type: str
model: RouteModelInfo
endpoint_url: str
limit: Optional[Limit]
class Config:
schema_extra = {
"example": {
"name": "openai-completions",
"endpoint_type": "llm/v1/completions",
"model": {
"name": "gpt-4o-mini",
"provider": "openai",
},
"endpoint_url": "/endpoints/completions/invocations",
"limit": {"calls": 1, "key": None, "renewal_period": "minute"},
}
}