bugfix
This commit is contained in:
parent
3c57f13557
commit
efe933a185
2
base.py
2
base.py
@ -10,7 +10,7 @@ from fastapi.middleware.cors import CORSMiddleware
|
||||
|
||||
|
||||
logger = logging.getLogger()
|
||||
logger.setLevel(logging.CRITICAL)
|
||||
logger.setLevel(logging.INFO)
|
||||
|
||||
loop = asyncio.get_event_loop()
|
||||
app = FastAPI(title="codey.lol API",
|
||||
|
@ -49,7 +49,7 @@ class AI(FastAPI):
|
||||
}
|
||||
|
||||
for endpoint, handler in self.endpoints.items():
|
||||
app.add_api_route(f"/{endpoint}/openai/", handler, methods=["POST"])
|
||||
app.add_api_route(f"/{endpoint}/", handler, methods=["POST"])
|
||||
|
||||
async def respond_via_webhook(self, data: ValidHookSongRequest, originalRequest: Request):
|
||||
"""Respond via Webhook"""
|
||||
|
Loading…
x
Reference in New Issue
Block a user