Skip to content

Commit 146cec3

Browse files
robert-j-yOpenRouter SDK Bot
andauthored
chore: update OpenAPI spec from monorepo (#341)
Co-authored-by: OpenRouter SDK Bot <sdk-bot@openrouter.ai>
1 parent 14a62e3 commit 146cec3

1 file changed

Lines changed: 25 additions & 0 deletions

File tree

.speakeasy/in.openapi.yaml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24635,6 +24635,31 @@ paths:
2463524635
example: 0.0001
2463624636
format: double
2463724637
type: number
24638+
cost_details:
24639+
description: Breakdown of upstream inference costs
24640+
example:
24641+
upstream_inference_completions_cost: 0.0004
24642+
upstream_inference_cost: null
24643+
upstream_inference_prompt_cost: 0.0008
24644+
nullable: true
24645+
properties:
24646+
upstream_inference_completions_cost:
24647+
format: double
24648+
type: number
24649+
upstream_inference_cost:
24650+
format: double
24651+
nullable: true
24652+
type: number
24653+
upstream_inference_prompt_cost:
24654+
format: double
24655+
type: number
24656+
required:
24657+
- upstream_inference_prompt_cost
24658+
- upstream_inference_completions_cost
24659+
type: object
24660+
is_byok:
24661+
description: Whether a request was made using a Bring Your Own Key configuration
24662+
type: boolean
2463824663
prompt_tokens:
2463924664
description: Number of tokens in the input
2464024665
example: 8

0 commit comments

Comments
 (0)