We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e7e21ea commit f2c87b0Copy full SHA for f2c87b0
src/core/routes/test.py
@@ -1,7 +1,8 @@
1
from typing import List, AsyncGenerator
2
from fastapi import APIRouter
3
from pydantic import BaseModel
4
-import uuid, asyncio
+import uuid
5
+import asyncio
6
from fastapi.responses import StreamingResponse
7
import re
8
@@ -35,7 +36,6 @@ class RequestConversation(BaseModel):
35
36
37
38
def normalize_question(question: str) -> str:
- # Convert to lowercase and strip punctuation
39
question = question.rstrip()
40
return re.sub(r'[^\w\s]', '', question.lower())
41
0 commit comments