"...resnet50_tensorflow.git" did not exist on "d2902b5d644c8b778855f7415175a0b61287b064"
Commit 9f58ed5a authored by Timothy J. Baek's avatar Timothy J. Baek
Browse files

fix

parent dfcc3142
...@@ -61,13 +61,11 @@ async def on_startup(): ...@@ -61,13 +61,11 @@ async def on_startup():
class RAGMiddleware(BaseHTTPMiddleware): class RAGMiddleware(BaseHTTPMiddleware):
async def dispatch(self, request: Request, call_next): async def dispatch(self, request: Request, call_next):
"chat/completions" in request.url.path
print(request.url.path)
if request.method == "POST" and ( if request.method == "POST" and (
"/api/chat" in request.url.path or "/chat/completions" in request.url.path "/api/chat" in request.url.path or "/chat/completions" in request.url.path
): ):
print(request.url.path)
# Read the original request body # Read the original request body
body = await request.body() body = await request.body()
# Decode body to string # Decode body to string
......
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