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 (spec change merged) 0.11.28 (#444)
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
7d438092bb
commit
52ad7dde44
@@ -80,6 +80,10 @@ if TYPE_CHECKING:
|
||||
AnthropicCacheControlDirectiveTypedDict,
|
||||
)
|
||||
from .anthropiccachecontrolttl import AnthropicCacheControlTTL
|
||||
from .anthropiccachecreation import (
|
||||
AnthropicCacheCreation,
|
||||
AnthropicCacheCreationTypedDict,
|
||||
)
|
||||
from .anthropiccitationcharlocationparam import (
|
||||
AnthropicCitationCharLocationParam,
|
||||
AnthropicCitationCharLocationParamType,
|
||||
@@ -2895,6 +2899,8 @@ __all__ = [
|
||||
"AnthropicCacheControlDirectiveType",
|
||||
"AnthropicCacheControlDirectiveTypedDict",
|
||||
"AnthropicCacheControlTTL",
|
||||
"AnthropicCacheCreation",
|
||||
"AnthropicCacheCreationTypedDict",
|
||||
"AnthropicCitationCharLocationParam",
|
||||
"AnthropicCitationCharLocationParamType",
|
||||
"AnthropicCitationCharLocationParamTypedDict",
|
||||
@@ -4960,6 +4966,8 @@ _dynamic_imports: dict[str, str] = {
|
||||
"AnthropicCacheControlDirectiveType": ".anthropiccachecontroldirective",
|
||||
"AnthropicCacheControlDirectiveTypedDict": ".anthropiccachecontroldirective",
|
||||
"AnthropicCacheControlTTL": ".anthropiccachecontrolttl",
|
||||
"AnthropicCacheCreation": ".anthropiccachecreation",
|
||||
"AnthropicCacheCreationTypedDict": ".anthropiccachecreation",
|
||||
"AnthropicCitationCharLocationParam": ".anthropiccitationcharlocationparam",
|
||||
"AnthropicCitationCharLocationParamType": ".anthropiccitationcharlocationparam",
|
||||
"AnthropicCitationCharLocationParamTypedDict": ".anthropiccitationcharlocationparam",
|
||||
|
||||
@@ -0,0 +1,16 @@
|
||||
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
||||
|
||||
from __future__ import annotations
|
||||
from openrouter.types import BaseModel
|
||||
from typing_extensions import TypedDict
|
||||
|
||||
|
||||
class AnthropicCacheCreationTypedDict(TypedDict):
|
||||
ephemeral_1h_input_tokens: int
|
||||
ephemeral_5m_input_tokens: int
|
||||
|
||||
|
||||
class AnthropicCacheCreation(BaseModel):
|
||||
ephemeral_1h_input_tokens: int
|
||||
|
||||
ephemeral_5m_input_tokens: int
|
||||
@@ -1,6 +1,10 @@
|
||||
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
||||
|
||||
from __future__ import annotations
|
||||
from .anthropiccachecreation import (
|
||||
AnthropicCacheCreation,
|
||||
AnthropicCacheCreationTypedDict,
|
||||
)
|
||||
from .anthropicspeed import AnthropicSpeed
|
||||
from .anthropicusageiteration import (
|
||||
AnthropicUsageIteration,
|
||||
@@ -201,6 +205,7 @@ class ImageGenerationUsageTypedDict(TypedDict):
|
||||
r"""Including images, input audio, and tools if any"""
|
||||
total_tokens: int
|
||||
r"""Sum of the above two fields"""
|
||||
cache_creation: NotRequired[Nullable[AnthropicCacheCreationTypedDict]]
|
||||
completion_tokens_details: NotRequired[
|
||||
Nullable[ImageGenerationUsageCompletionTokensDetailsTypedDict]
|
||||
]
|
||||
@@ -234,6 +239,8 @@ class ImageGenerationUsage(BaseModel):
|
||||
total_tokens: int
|
||||
r"""Sum of the above two fields"""
|
||||
|
||||
cache_creation: OptionalNullable[AnthropicCacheCreation] = UNSET
|
||||
|
||||
completion_tokens_details: OptionalNullable[
|
||||
ImageGenerationUsageCompletionTokensDetails
|
||||
] = UNSET
|
||||
@@ -266,6 +273,7 @@ class ImageGenerationUsage(BaseModel):
|
||||
def serialize_model(self, handler):
|
||||
optional_fields = set(
|
||||
[
|
||||
"cache_creation",
|
||||
"completion_tokens_details",
|
||||
"cost",
|
||||
"cost_details",
|
||||
@@ -279,6 +287,7 @@ class ImageGenerationUsage(BaseModel):
|
||||
)
|
||||
nullable_fields = set(
|
||||
[
|
||||
"cache_creation",
|
||||
"completion_tokens_details",
|
||||
"cost",
|
||||
"cost_details",
|
||||
|
||||
Reference in New Issue
Block a user