mirror of
https://github.com/Monadical-SAS/reflector.git
synced 2025-12-20 20:29:06 +00:00
server: remove warmup methods everywhere
This commit is contained in:
@@ -43,17 +43,6 @@ Authentication must be passed with the `Authorization` header, using the `bearer
|
||||
Authorization: bearer <REFLECTOR_APIKEY>
|
||||
```
|
||||
|
||||
### Warmup (both)
|
||||
|
||||
`POST /warmup`
|
||||
|
||||
**response**
|
||||
```
|
||||
{
|
||||
"status": "ok"
|
||||
}
|
||||
```
|
||||
|
||||
### LLM
|
||||
|
||||
`POST /llm`
|
||||
|
||||
@@ -111,11 +111,6 @@ class LLM:
|
||||
def __exit__(self, *args):
|
||||
print("Exit llm")
|
||||
|
||||
@method()
|
||||
def warmup(self):
|
||||
print("Warmup ok")
|
||||
return {"status": "ok"}
|
||||
|
||||
@method()
|
||||
def generate(self, prompt: str, gen_schema: str | None, gen_cfg: str | None) -> dict:
|
||||
"""
|
||||
@@ -201,8 +196,4 @@ def web():
|
||||
result = func.get()
|
||||
return result
|
||||
|
||||
@app.post("/warmup", dependencies=[Depends(apikey_auth)])
|
||||
async def warmup():
|
||||
return llmstub.warmup.spawn().get()
|
||||
|
||||
return app
|
||||
|
||||
@@ -185,10 +185,6 @@ class Transcriber:
|
||||
dtype=torch.float32
|
||||
)
|
||||
|
||||
@method()
|
||||
def warmup(self):
|
||||
return {"status": "ok"}
|
||||
|
||||
@method()
|
||||
def transcribe_segment(
|
||||
self,
|
||||
@@ -334,8 +330,4 @@ def web():
|
||||
result = func.get()
|
||||
return result
|
||||
|
||||
@app.post("/warmup", dependencies=[Depends(apikey_auth)])
|
||||
async def warmup():
|
||||
return transcriberstub.warmup.spawn().get()
|
||||
|
||||
return app
|
||||
|
||||
Reference in New Issue
Block a user