mirror of
https://github.com/wassname/openrouter-python-sdk-retry-errors.git
synced 2026-07-30 12:20:57 +08:00
chore: 🐝 Update SDK - Generate 0.9.2 (#205)
Co-authored-by: speakeasybot <bot@speakeasyapi.dev> Co-authored-by: speakeasy-github[bot] <128539517+speakeasy-github[bot]@users.noreply.github.com>
This commit is contained in:
co-authored by
speakeasybot
speakeasy-github[bot] <128539517+speakeasy-github[bot]@users.noreply.github.com>
parent
0c735989c1
commit
0f116c9792
@@ -29,13 +29,13 @@ class OutputTokensDetails(BaseModel):
|
||||
reasoning_tokens: int
|
||||
|
||||
|
||||
class CostDetailsTypedDict(TypedDict):
|
||||
class UsageCostDetailsTypedDict(TypedDict):
|
||||
upstream_inference_input_cost: float
|
||||
upstream_inference_output_cost: float
|
||||
upstream_inference_cost: NotRequired[Nullable[float]]
|
||||
|
||||
|
||||
class CostDetails(BaseModel):
|
||||
class UsageCostDetails(BaseModel):
|
||||
upstream_inference_input_cost: float
|
||||
|
||||
upstream_inference_output_cost: float
|
||||
@@ -83,7 +83,7 @@ class UsageTypedDict(TypedDict):
|
||||
total_tokens: int
|
||||
cost: NotRequired[Nullable[float]]
|
||||
r"""Cost of the completion"""
|
||||
cost_details: NotRequired[CostDetailsTypedDict]
|
||||
cost_details: NotRequired[UsageCostDetailsTypedDict]
|
||||
is_byok: NotRequired[bool]
|
||||
r"""Whether a request was made using a Bring Your Own Key configuration"""
|
||||
|
||||
@@ -104,7 +104,7 @@ class Usage(BaseModel):
|
||||
cost: OptionalNullable[float] = UNSET
|
||||
r"""Cost of the completion"""
|
||||
|
||||
cost_details: Optional[CostDetails] = None
|
||||
cost_details: Optional[UsageCostDetails] = None
|
||||
|
||||
is_byok: Optional[bool] = None
|
||||
r"""Whether a request was made using a Bring Your Own Key configuration"""
|
||||
|
||||
Reference in New Issue
Block a user