Skip to content

Commit

Permalink
rename summarize to summary
Browse files Browse the repository at this point in the history
  • Loading branch information
fqrious committed Nov 14, 2024
1 parent 26919f5 commit af70cf2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions stixify/web/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -235,11 +235,11 @@ def images(self, request, file_id=None, image=None):

@extend_schema(
responses=None,
description="get summary of the file content",
summary="get summary of the file content",
description="Get summary of the file content",
summary="Get summary of the file content if `ai_summary_provider` was enabled.",
)
@decorators.action(methods=["GET"], detail=True)
def summarize(self, request, file_id=None):
def summary(self, request, file_id=None):
obj = get_object_or_404(File, id=file_id)
if not obj.summary:
raise exceptions.NotFound(f"No Summary for post")
Expand Down

0 comments on commit af70cf2

Please sign in to comment.