Skip to content

Commit cab0611

Browse files
authored
openapi: fix the summary of the content gen endpoints (#1733)
Properly
1 parent 0d2ff25 commit cab0611

File tree

3 files changed

+12
-12
lines changed

3 files changed

+12
-12
lines changed

ansible_ai_connect/ai/api/views.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -833,7 +833,7 @@ class Explanation(AACSAPIView):
833833
429: OpenApiResponse(description="Request was throttled"),
834834
503: OpenApiResponse(description="Service Unavailable"),
835835
},
836-
summary="Inline code suggestions",
836+
summary="Playbook explanation",
837837
)
838838
def post(self, request) -> Response:
839839
self.event.playbook_length = len(self.validated_data["content"])
@@ -890,7 +890,7 @@ class ExplanationRole(AACSAPIView):
890890
429: OpenApiResponse(description="Request was throttled"),
891891
503: OpenApiResponse(description="Service Unavailable"),
892892
},
893-
summary="Inline code suggestions",
893+
summary="Role explanation",
894894
)
895895
def post(self, request) -> Response:
896896
llm: ModelPipelineRoleExplanation = apps.get_app_config("ai").get_model_pipeline(
@@ -945,7 +945,7 @@ class GenerationPlaybook(AACSAPIView):
945945
429: OpenApiResponse(description="Request was throttled"),
946946
503: OpenApiResponse(description="Service Unavailable"),
947947
},
948-
summary="Inline code suggestions",
948+
summary="Playbook generation",
949949
)
950950
def post(self, request) -> Response:
951951
self.event.create_outline = self.validated_data["createOutline"]
@@ -1013,7 +1013,7 @@ class GenerationRole(AACSAPIView):
10131013
200: GenerationRoleResponseSerializer,
10141014
401: OpenApiResponse(description="Unauthorized"),
10151015
},
1016-
summary="Inline code suggestions",
1016+
summary="Role generation",
10171017
)
10181018
def post(self, request) -> Response:
10191019
self.event.create_outline = self.validated_data["createOutline"]

tools/openapi-schema/ansible-ai-connect-service.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@
234234
"post": {
235235
"operationId": "ai_explanations_create",
236236
"description": "Returns a text that explains a playbook.",
237-
"summary": "Inline code suggestions",
237+
"summary": "Playbook explanation",
238238
"tags": [
239239
"ai"
240240
],
@@ -302,7 +302,7 @@
302302
"post": {
303303
"operationId": "ai_explanations_role_create",
304304
"description": "Returns a text that explains a role.",
305-
"summary": "Inline code suggestions",
305+
"summary": "Role explanation",
306306
"tags": [
307307
"ai"
308308
],
@@ -434,7 +434,7 @@
434434
"post": {
435435
"operationId": "ai_generations_playbook_create",
436436
"description": "Returns a playbook based on a text input.",
437-
"summary": "Inline code suggestions",
437+
"summary": "Playbook generation",
438438
"tags": [
439439
"ai"
440440
],
@@ -502,7 +502,7 @@
502502
"post": {
503503
"operationId": "ai_generations_role_create",
504504
"description": "Returns a role based on a text input.",
505-
"summary": "Inline code suggestions",
505+
"summary": "Role generation",
506506
"tags": [
507507
"ai"
508508
],

tools/openapi-schema/ansible-ai-connect-service.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ paths:
155155
post:
156156
operationId: ai_explanations_create
157157
description: Returns a text that explains a playbook.
158-
summary: Inline code suggestions
158+
summary: Playbook explanation
159159
tags:
160160
- ai
161161
requestBody:
@@ -196,7 +196,7 @@ paths:
196196
post:
197197
operationId: ai_explanations_role_create
198198
description: Returns a text that explains a role.
199-
summary: Inline code suggestions
199+
summary: Role explanation
200200
tags:
201201
- ai
202202
requestBody:
@@ -279,7 +279,7 @@ paths:
279279
post:
280280
operationId: ai_generations_playbook_create
281281
description: Returns a playbook based on a text input.
282-
summary: Inline code suggestions
282+
summary: Playbook generation
283283
tags:
284284
- ai
285285
requestBody:
@@ -320,7 +320,7 @@ paths:
320320
post:
321321
operationId: ai_generations_role_create
322322
description: Returns a role based on a text input.
323-
summary: Inline code suggestions
323+
summary: Role generation
324324
tags:
325325
- ai
326326
requestBody:

0 commit comments

Comments
 (0)