mirror of
https://github.com/wassname/openrouter-python-sdk-retry-errors.git
synced 2026-08-03 13:00:54 +08:00
more updates
This commit is contained in:
+20
-20
@@ -69,8 +69,7 @@ class Responses(BaseSDK):
|
||||
include: OptionalNullable[List[components.OpenAIResponsesIncludable]] = UNSET,
|
||||
background: OptionalNullable[bool] = UNSET,
|
||||
safety_identifier: OptionalNullable[str] = UNSET,
|
||||
store: OptionalNullable[bool] = UNSET,
|
||||
service_tier: OptionalNullable[components.ServiceTier] = UNSET,
|
||||
service_tier: Optional[components.ServiceTier] = "auto",
|
||||
truncation: OptionalNullable[components.Truncation] = UNSET,
|
||||
stream: Union[Literal[False], None] = None,
|
||||
provider: OptionalNullable[
|
||||
@@ -80,6 +79,7 @@ class Responses(BaseSDK):
|
||||
Union[List[components.Plugin], List[components.PluginTypedDict]]
|
||||
] = None,
|
||||
user: Optional[str] = None,
|
||||
session_id: Optional[str] = None,
|
||||
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
||||
server_url: Optional[str] = None,
|
||||
timeout_ms: Optional[int] = None,
|
||||
@@ -109,13 +109,13 @@ class Responses(BaseSDK):
|
||||
:param include:
|
||||
:param background:
|
||||
:param safety_identifier:
|
||||
:param store:
|
||||
:param service_tier:
|
||||
:param truncation:
|
||||
:param stream:
|
||||
:param provider: When multiple model providers are available, optionally indicate your routing preference.
|
||||
:param plugins: Plugins you want to enable for this request, including their settings.
|
||||
:param user: A unique identifier representing your end-user, which helps distinguish between different users of your app. This allows your app to identify specific users in case of abuse reports, preventing your entire app from being affected by the actions of individual users. Maximum of 128 characters.
|
||||
:param session_id: A unique identifier for grouping related requests (e.g., a conversation or agent workflow) for observability. If provided in both the request body and the x-session-id header, the body value takes precedence. Maximum of 128 characters.
|
||||
:param retries: Override the default retry configuration for this method
|
||||
:param server_url: Override the default server URL for this method
|
||||
:param timeout_ms: Override the default request timeout configuration for this method in milliseconds
|
||||
@@ -174,8 +174,7 @@ class Responses(BaseSDK):
|
||||
include: OptionalNullable[List[components.OpenAIResponsesIncludable]] = UNSET,
|
||||
background: OptionalNullable[bool] = UNSET,
|
||||
safety_identifier: OptionalNullable[str] = UNSET,
|
||||
store: OptionalNullable[bool] = UNSET,
|
||||
service_tier: OptionalNullable[components.ServiceTier] = UNSET,
|
||||
service_tier: Optional[components.ServiceTier] = "auto",
|
||||
truncation: OptionalNullable[components.Truncation] = UNSET,
|
||||
stream: Literal[True],
|
||||
provider: OptionalNullable[
|
||||
@@ -185,6 +184,7 @@ class Responses(BaseSDK):
|
||||
Union[List[components.Plugin], List[components.PluginTypedDict]]
|
||||
] = None,
|
||||
user: Optional[str] = None,
|
||||
session_id: Optional[str] = None,
|
||||
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
||||
server_url: Optional[str] = None,
|
||||
timeout_ms: Optional[int] = None,
|
||||
@@ -214,13 +214,13 @@ class Responses(BaseSDK):
|
||||
:param include:
|
||||
:param background:
|
||||
:param safety_identifier:
|
||||
:param store:
|
||||
:param service_tier:
|
||||
:param truncation:
|
||||
:param stream:
|
||||
:param provider: When multiple model providers are available, optionally indicate your routing preference.
|
||||
:param plugins: Plugins you want to enable for this request, including their settings.
|
||||
:param user: A unique identifier representing your end-user, which helps distinguish between different users of your app. This allows your app to identify specific users in case of abuse reports, preventing your entire app from being affected by the actions of individual users. Maximum of 128 characters.
|
||||
:param session_id: A unique identifier for grouping related requests (e.g., a conversation or agent workflow) for observability. If provided in both the request body and the x-session-id header, the body value takes precedence. Maximum of 128 characters.
|
||||
:param retries: Override the default retry configuration for this method
|
||||
:param server_url: Override the default server URL for this method
|
||||
:param timeout_ms: Override the default request timeout configuration for this method in milliseconds
|
||||
@@ -278,8 +278,7 @@ class Responses(BaseSDK):
|
||||
include: OptionalNullable[List[components.OpenAIResponsesIncludable]] = UNSET,
|
||||
background: OptionalNullable[bool] = UNSET,
|
||||
safety_identifier: OptionalNullable[str] = UNSET,
|
||||
store: OptionalNullable[bool] = UNSET,
|
||||
service_tier: OptionalNullable[components.ServiceTier] = UNSET,
|
||||
service_tier: Optional[components.ServiceTier] = "auto",
|
||||
truncation: OptionalNullable[components.Truncation] = UNSET,
|
||||
stream: Optional[bool] = False,
|
||||
provider: OptionalNullable[
|
||||
@@ -289,6 +288,7 @@ class Responses(BaseSDK):
|
||||
Union[List[components.Plugin], List[components.PluginTypedDict]]
|
||||
] = None,
|
||||
user: Optional[str] = None,
|
||||
session_id: Optional[str] = None,
|
||||
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
||||
server_url: Optional[str] = None,
|
||||
timeout_ms: Optional[int] = None,
|
||||
@@ -318,13 +318,13 @@ class Responses(BaseSDK):
|
||||
:param include:
|
||||
:param background:
|
||||
:param safety_identifier:
|
||||
:param store:
|
||||
:param service_tier:
|
||||
:param truncation:
|
||||
:param stream:
|
||||
:param provider: When multiple model providers are available, optionally indicate your routing preference.
|
||||
:param plugins: Plugins you want to enable for this request, including their settings.
|
||||
:param user: A unique identifier representing your end-user, which helps distinguish between different users of your app. This allows your app to identify specific users in case of abuse reports, preventing your entire app from being affected by the actions of individual users. Maximum of 128 characters.
|
||||
:param session_id: A unique identifier for grouping related requests (e.g., a conversation or agent workflow) for observability. If provided in both the request body and the x-session-id header, the body value takes precedence. Maximum of 128 characters.
|
||||
:param retries: Override the default retry configuration for this method
|
||||
:param server_url: Override the default server URL for this method
|
||||
:param timeout_ms: Override the default request timeout configuration for this method in milliseconds
|
||||
@@ -374,7 +374,6 @@ class Responses(BaseSDK):
|
||||
include=include,
|
||||
background=background,
|
||||
safety_identifier=safety_identifier,
|
||||
store=store,
|
||||
service_tier=service_tier,
|
||||
truncation=truncation,
|
||||
stream=stream,
|
||||
@@ -385,6 +384,7 @@ class Responses(BaseSDK):
|
||||
plugins, Optional[List[components.Plugin]]
|
||||
),
|
||||
user=user,
|
||||
session_id=session_id,
|
||||
)
|
||||
|
||||
req = self._build_request(
|
||||
@@ -627,8 +627,7 @@ class Responses(BaseSDK):
|
||||
include: OptionalNullable[List[components.OpenAIResponsesIncludable]] = UNSET,
|
||||
background: OptionalNullable[bool] = UNSET,
|
||||
safety_identifier: OptionalNullable[str] = UNSET,
|
||||
store: OptionalNullable[bool] = UNSET,
|
||||
service_tier: OptionalNullable[components.ServiceTier] = UNSET,
|
||||
service_tier: Optional[components.ServiceTier] = "auto",
|
||||
truncation: OptionalNullable[components.Truncation] = UNSET,
|
||||
stream: Union[Literal[False], None] = None,
|
||||
provider: OptionalNullable[
|
||||
@@ -638,6 +637,7 @@ class Responses(BaseSDK):
|
||||
Union[List[components.Plugin], List[components.PluginTypedDict]]
|
||||
] = None,
|
||||
user: Optional[str] = None,
|
||||
session_id: Optional[str] = None,
|
||||
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
||||
server_url: Optional[str] = None,
|
||||
timeout_ms: Optional[int] = None,
|
||||
@@ -667,13 +667,13 @@ class Responses(BaseSDK):
|
||||
:param include:
|
||||
:param background:
|
||||
:param safety_identifier:
|
||||
:param store:
|
||||
:param service_tier:
|
||||
:param truncation:
|
||||
:param stream:
|
||||
:param provider: When multiple model providers are available, optionally indicate your routing preference.
|
||||
:param plugins: Plugins you want to enable for this request, including their settings.
|
||||
:param user: A unique identifier representing your end-user, which helps distinguish between different users of your app. This allows your app to identify specific users in case of abuse reports, preventing your entire app from being affected by the actions of individual users. Maximum of 128 characters.
|
||||
:param session_id: A unique identifier for grouping related requests (e.g., a conversation or agent workflow) for observability. If provided in both the request body and the x-session-id header, the body value takes precedence. Maximum of 128 characters.
|
||||
:param retries: Override the default retry configuration for this method
|
||||
:param server_url: Override the default server URL for this method
|
||||
:param timeout_ms: Override the default request timeout configuration for this method in milliseconds
|
||||
@@ -732,8 +732,7 @@ class Responses(BaseSDK):
|
||||
include: OptionalNullable[List[components.OpenAIResponsesIncludable]] = UNSET,
|
||||
background: OptionalNullable[bool] = UNSET,
|
||||
safety_identifier: OptionalNullable[str] = UNSET,
|
||||
store: OptionalNullable[bool] = UNSET,
|
||||
service_tier: OptionalNullable[components.ServiceTier] = UNSET,
|
||||
service_tier: Optional[components.ServiceTier] = "auto",
|
||||
truncation: OptionalNullable[components.Truncation] = UNSET,
|
||||
stream: Literal[True],
|
||||
provider: OptionalNullable[
|
||||
@@ -743,6 +742,7 @@ class Responses(BaseSDK):
|
||||
Union[List[components.Plugin], List[components.PluginTypedDict]]
|
||||
] = None,
|
||||
user: Optional[str] = None,
|
||||
session_id: Optional[str] = None,
|
||||
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
||||
server_url: Optional[str] = None,
|
||||
timeout_ms: Optional[int] = None,
|
||||
@@ -772,13 +772,13 @@ class Responses(BaseSDK):
|
||||
:param include:
|
||||
:param background:
|
||||
:param safety_identifier:
|
||||
:param store:
|
||||
:param service_tier:
|
||||
:param truncation:
|
||||
:param stream:
|
||||
:param provider: When multiple model providers are available, optionally indicate your routing preference.
|
||||
:param plugins: Plugins you want to enable for this request, including their settings.
|
||||
:param user: A unique identifier representing your end-user, which helps distinguish between different users of your app. This allows your app to identify specific users in case of abuse reports, preventing your entire app from being affected by the actions of individual users. Maximum of 128 characters.
|
||||
:param session_id: A unique identifier for grouping related requests (e.g., a conversation or agent workflow) for observability. If provided in both the request body and the x-session-id header, the body value takes precedence. Maximum of 128 characters.
|
||||
:param retries: Override the default retry configuration for this method
|
||||
:param server_url: Override the default server URL for this method
|
||||
:param timeout_ms: Override the default request timeout configuration for this method in milliseconds
|
||||
@@ -836,8 +836,7 @@ class Responses(BaseSDK):
|
||||
include: OptionalNullable[List[components.OpenAIResponsesIncludable]] = UNSET,
|
||||
background: OptionalNullable[bool] = UNSET,
|
||||
safety_identifier: OptionalNullable[str] = UNSET,
|
||||
store: OptionalNullable[bool] = UNSET,
|
||||
service_tier: OptionalNullable[components.ServiceTier] = UNSET,
|
||||
service_tier: Optional[components.ServiceTier] = "auto",
|
||||
truncation: OptionalNullable[components.Truncation] = UNSET,
|
||||
stream: Optional[bool] = False,
|
||||
provider: OptionalNullable[
|
||||
@@ -847,6 +846,7 @@ class Responses(BaseSDK):
|
||||
Union[List[components.Plugin], List[components.PluginTypedDict]]
|
||||
] = None,
|
||||
user: Optional[str] = None,
|
||||
session_id: Optional[str] = None,
|
||||
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
||||
server_url: Optional[str] = None,
|
||||
timeout_ms: Optional[int] = None,
|
||||
@@ -876,13 +876,13 @@ class Responses(BaseSDK):
|
||||
:param include:
|
||||
:param background:
|
||||
:param safety_identifier:
|
||||
:param store:
|
||||
:param service_tier:
|
||||
:param truncation:
|
||||
:param stream:
|
||||
:param provider: When multiple model providers are available, optionally indicate your routing preference.
|
||||
:param plugins: Plugins you want to enable for this request, including their settings.
|
||||
:param user: A unique identifier representing your end-user, which helps distinguish between different users of your app. This allows your app to identify specific users in case of abuse reports, preventing your entire app from being affected by the actions of individual users. Maximum of 128 characters.
|
||||
:param session_id: A unique identifier for grouping related requests (e.g., a conversation or agent workflow) for observability. If provided in both the request body and the x-session-id header, the body value takes precedence. Maximum of 128 characters.
|
||||
:param retries: Override the default retry configuration for this method
|
||||
:param server_url: Override the default server URL for this method
|
||||
:param timeout_ms: Override the default request timeout configuration for this method in milliseconds
|
||||
@@ -932,7 +932,6 @@ class Responses(BaseSDK):
|
||||
include=include,
|
||||
background=background,
|
||||
safety_identifier=safety_identifier,
|
||||
store=store,
|
||||
service_tier=service_tier,
|
||||
truncation=truncation,
|
||||
stream=stream,
|
||||
@@ -943,6 +942,7 @@ class Responses(BaseSDK):
|
||||
plugins, Optional[List[components.Plugin]]
|
||||
),
|
||||
user=user,
|
||||
session_id=session_id,
|
||||
)
|
||||
|
||||
req = self._build_request_async(
|
||||
|
||||
Reference in New Issue
Block a user