Skip to content

Commit 8ba14d7

Browse files
author
acer-king
committed
cursor support issue fix
1 parent 53b7a3b commit 8ba14d7

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

validators/core/axon.py

+1
Original file line numberDiff line numberDiff line change
@@ -360,6 +360,7 @@ async def dispatch(
360360
# Records the start time of the request processing.
361361
start_time = time.time()
362362

363+
363364
if "v1/chat/completions" in request.url.path:
364365
if request.method == "OPTIONS":
365366
return await call_next(request)

validators/weight_setter.py

+1
Original file line numberDiff line numberDiff line change
@@ -576,6 +576,7 @@ def cursor_setup(self):
576576
response_model=None
577577
)
578578
self.axon.router.add_api_route("/v1/models", models, methods=["GET"], tags=["Text"], response_model=None)
579+
self.axon.app.include_router(self.axon.router)
579580

580581
def get_scoring_tasks_from_query_responses(self, queries_to_process):
581582

0 commit comments

Comments
 (0)