Spaces:
Sleeping
Sleeping
Dmytro Bobrenko
commited on
Commit
·
ad5b9f3
1
Parent(s):
c4957f4
Fix syntax error
Browse files
server.py
CHANGED
@@ -14,10 +14,8 @@ from validators import QueryValidatorParams, S1ValidatorAPI, ValidatorAPI
|
|
14 |
tags=["Prompting API"],
|
15 |
summary="Chat",
|
16 |
description="Chat endpoint."
|
17 |
-
description="Chat endpoint."
|
18 |
)
|
19 |
@request_schema(QueryChatSchema)
|
20 |
-
@request_schema(QueryChatSchema)
|
21 |
@response_schema(StreamChunkSchema, 200)
|
22 |
@response_schema(StreamErrorSchema, 400)
|
23 |
async def chat(request: web.Request) -> web.StreamResponse:
|
@@ -35,10 +33,8 @@ async def chat(request: web.Request) -> web.StreamResponse:
|
|
35 |
tags=["Prompting API"],
|
36 |
summary="Echo test",
|
37 |
description="Echo endpoint for testing purposes."
|
38 |
-
description="Echo endpoint for testing purposes."
|
39 |
)
|
40 |
@request_schema(QueryChatSchema)
|
41 |
-
@request_schema(QueryChatSchema)
|
42 |
@response_schema(StreamChunkSchema, 200)
|
43 |
@response_schema(StreamErrorSchema, 400)
|
44 |
async def echo_stream(request: web.Request) -> web.StreamResponse:
|
|
|
14 |
tags=["Prompting API"],
|
15 |
summary="Chat",
|
16 |
description="Chat endpoint."
|
|
|
17 |
)
|
18 |
@request_schema(QueryChatSchema)
|
|
|
19 |
@response_schema(StreamChunkSchema, 200)
|
20 |
@response_schema(StreamErrorSchema, 400)
|
21 |
async def chat(request: web.Request) -> web.StreamResponse:
|
|
|
33 |
tags=["Prompting API"],
|
34 |
summary="Echo test",
|
35 |
description="Echo endpoint for testing purposes."
|
|
|
36 |
)
|
37 |
@request_schema(QueryChatSchema)
|
|
|
38 |
@response_schema(StreamChunkSchema, 200)
|
39 |
@response_schema(StreamErrorSchema, 400)
|
40 |
async def echo_stream(request: web.Request) -> web.StreamResponse:
|