Skip to content

Commit 6520aba

Browse files
committed
update response format
1 parent b84ed60 commit 6520aba

File tree

1 file changed

+25
-2
lines changed

1 file changed

+25
-2
lines changed

fern/openapi/resources/prompts.yaml

Lines changed: 25 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -246,8 +246,7 @@ paths:
246246
content:
247247
application/json:
248248
schema:
249-
type: number
250-
format: float
249+
$ref: "#/components/schemas/InferenceRunCostEstimate"
251250

252251
/api/prompts/{id}/versions/{version_id}/inference-runs:
253252
post:
@@ -686,6 +685,30 @@ components:
686685
format: date-time
687686
readOnly: true
688687

688+
InferenceRunCostEstimate:
689+
required:
690+
- total_cost_usd
691+
type: object
692+
properties:
693+
prompt_cost_usd:
694+
type: number
695+
format: float
696+
title: Prompt Cost
697+
description: Cost of the prompt (in USD)
698+
nullable: true
699+
completion_cost_usd:
700+
type: number
701+
format: float
702+
title: Completion Cost
703+
description: Cost of the completion (in USD)
704+
nullable: true
705+
total_cost_usd:
706+
type: number
707+
format: float
708+
title: Total Cost
709+
description: Total cost of the inference (in USD)
710+
nullable: true
711+
689712
requestBodies:
690713
api_prompts_batch_predictions_create:
691714
content:

0 commit comments

Comments
 (0)