Commit 5974bf40 authored by novelailab's avatar novelailab

ahh

parent 50ab3299
...@@ -70,7 +70,7 @@ class GenerationOutput(BaseModel): ...@@ -70,7 +70,7 @@ class GenerationOutput(BaseModel):
class ErrorOutput(BaseModel): class ErrorOutput(BaseModel):
error: str error: str
@app.post('/generate-stream', response_model=Union[Response, ErrorOutput]) @app.post('/generate-stream')
def generate(request: GenerationRequest): def generate(request: GenerationRequest):
t = time.perf_counter() t = time.perf_counter()
print(request) print(request)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment