Skip to content

Commit 7ea29ac

Browse files
committed
update path for indicators
1 parent 745693e commit 7ea29ac

File tree

2 files changed

+37
-13
lines changed

2 files changed

+37
-13
lines changed

fern/openapi/overrides.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,19 +41,19 @@ paths:
4141
x-fern-audiences:
4242
- public
4343

44-
/api/prompts/indicators:
44+
/api/prompts/{prompt_id}/versions/{version_id}/inference-runs/{pk}/indicators:
4545
get:
46-
$ref: "./resources/prompts.yaml#/paths/~1api~1prompts~1indicators/get"
46+
$ref: "./resources/prompts.yaml#/paths/~1api~1prompts~1{prompt_id}~1versions~1{version_id}~1inference-runs~1{pk}~1indicators/get"
4747
x-fern-sdk-group-name:
4848
- prompts
4949
- indicators
5050
x-fern-sdk-method-name: list
5151
x-fern-audiences:
5252
- public
5353

54-
/api/prompts/indicators/{key}:
54+
/api/prompts/{prompt_id}/versions/{version_id}/inference-runs/{pk}/indicators/{indicator_key}:
5555
get:
56-
$ref: "./resources/prompts.yaml#/paths/~1api~1prompts~1indicators~1{key}/get"
56+
$ref: "./resources/prompts.yaml#/paths/~1api~1prompts~1{prompt_id}~1versions~1{version_id}~1inference-runs~1{pk}~1indicators~1{indicator_key}/get"
5757
x-fern-sdk-group-name:
5858
- prompts
5959
- indicators

fern/openapi/resources/prompts.yaml

Lines changed: 33 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -126,14 +126,26 @@ paths:
126126
schema:
127127
$ref: "#/components/schemas/InferenceRun"
128128

129-
/api/prompts/indicators:
129+
/api/prompts/{prompt_id}/versions/{version_id}/inference-runs/{pk}/indicators:
130130
get:
131131
summary: Get key indicators
132132
description: >
133133
Get key indicators for the Prompt dashboard.
134134
parameters:
135-
- name: run_id
136-
in: query
135+
- name: prompt_id
136+
in: path
137+
description: Prompt ID
138+
required: true
139+
schema:
140+
type: integer
141+
- name: version_id
142+
in: path
143+
description: Prompt Version ID
144+
required: true
145+
schema:
146+
type: integer
147+
- name: pk
148+
in: path
137149
description: Inference run ID
138150
required: true
139151
schema:
@@ -146,24 +158,36 @@ paths:
146158
schema:
147159
$ref: "./dashboards.yaml#/components/schemas/KeyIndicators"
148160

149-
/api/prompts/indicators/{key}:
161+
/api/prompts/{prompt_id}/versions/{version_id}/inference-runs/{pk}/indicators/{indicator_key}:
150162
get:
151163
summary: Get key indicator
152164
description: >
153165
Get a specific key indicator for the Prompt dashboard.
154166
parameters:
155-
- name: key
167+
- name: prompt_id
156168
in: path
157-
description: Key of the indicator
169+
description: Prompt ID
158170
required: true
159171
schema:
160-
type: string
161-
- name: run_id
162-
in: query
172+
type: integer
173+
- name: version_id
174+
in: path
175+
description: Prompt Version ID
176+
required: true
177+
schema:
178+
type: integer
179+
- name: pk
180+
in: path
163181
description: Inference run ID
164182
required: true
165183
schema:
166184
type: integer
185+
- name: indicator_key
186+
in: path
187+
description: Key of the indicator
188+
required: true
189+
schema:
190+
type: string
167191
responses:
168192
"200":
169193
description: ""

0 commit comments

Comments
 (0)