mirror of
https://github.com/wassname/openrouter-python-sdk-retry-errors.git
synced 2026-08-15 12:35:09 +08:00
Project import generated by Copybara.
GitOrigin-RevId: 0c3f0fb4be86f675ce6eca10edd2bd576c7d38d2
This commit is contained in:
+1
-1
@@ -1,7 +1,7 @@
|
|||||||
lockVersion: 2.0.0
|
lockVersion: 2.0.0
|
||||||
id: cfd52247-6a25-4c6d-bbce-fe6fce0cd69d
|
id: cfd52247-6a25-4c6d-bbce-fe6fce0cd69d
|
||||||
management:
|
management:
|
||||||
docChecksum: 772a7ec8092cfd6437e71806e7b19e28
|
docChecksum: b8b957bd96c3c9aad725db9b7f3be39d
|
||||||
docVersion: 1.0.0
|
docVersion: 1.0.0
|
||||||
speakeasyVersion: 1.666.0
|
speakeasyVersion: 1.666.0
|
||||||
generationVersion: 2.768.0
|
generationVersion: 2.768.0
|
||||||
|
|||||||
@@ -4699,7 +4699,9 @@ components:
|
|||||||
- p75
|
- p75
|
||||||
- p90
|
- p90
|
||||||
- p99
|
- p99
|
||||||
description: Latency percentiles in seconds over the last 30 minutes. Latency measures time to first token.
|
description: >-
|
||||||
|
Latency percentiles in milliseconds over the last 30 minutes. Latency measures time to first token. Only visible
|
||||||
|
when authenticated with an API key or cookie; returns null for unauthenticated requests.
|
||||||
PublicEndpoint:
|
PublicEndpoint:
|
||||||
type: object
|
type: object
|
||||||
properties:
|
properties:
|
||||||
@@ -4774,7 +4776,8 @@ components:
|
|||||||
- $ref: '#/components/schemas/PercentileStats'
|
- $ref: '#/components/schemas/PercentileStats'
|
||||||
- description: >-
|
- description: >-
|
||||||
Throughput percentiles in tokens per second over the last 30 minutes. Throughput measures output token
|
Throughput percentiles in tokens per second over the last 30 minutes. Throughput measures output token
|
||||||
generation speed.
|
generation speed. Only visible when authenticated with an API key or cookie; returns null for
|
||||||
|
unauthenticated requests.
|
||||||
required:
|
required:
|
||||||
- name
|
- name
|
||||||
- model_name
|
- model_name
|
||||||
|
|||||||
@@ -4701,7 +4701,8 @@ components:
|
|||||||
- p75
|
- p75
|
||||||
- p90
|
- p90
|
||||||
- p99
|
- p99
|
||||||
description: Latency percentiles in seconds over the last 30 minutes. Latency measures time to first token.
|
description: >-
|
||||||
|
Latency percentiles in milliseconds over the last 30 minutes. Latency measures time to first token. Only visible when authenticated with an API key or cookie; returns null for unauthenticated requests.
|
||||||
PublicEndpoint:
|
PublicEndpoint:
|
||||||
type: object
|
type: object
|
||||||
properties:
|
properties:
|
||||||
@@ -4775,7 +4776,7 @@ components:
|
|||||||
allOf:
|
allOf:
|
||||||
- $ref: '#/components/schemas/PercentileStats'
|
- $ref: '#/components/schemas/PercentileStats'
|
||||||
- description: >-
|
- description: >-
|
||||||
Throughput percentiles in tokens per second over the last 30 minutes. Throughput measures output token generation speed.
|
Throughput percentiles in tokens per second over the last 30 minutes. Throughput measures output token generation speed. Only visible when authenticated with an API key or cookie; returns null for unauthenticated requests.
|
||||||
required:
|
required:
|
||||||
- name
|
- name
|
||||||
- model_name
|
- model_name
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
# PercentileStats
|
# PercentileStats
|
||||||
|
|
||||||
Latency percentiles in seconds over the last 30 minutes. Latency measures time to first token.
|
Latency percentiles in milliseconds over the last 30 minutes. Latency measures time to first token. Only visible when authenticated with an API key or cookie; returns null for unauthenticated requests.
|
||||||
|
|
||||||
|
|
||||||
## Fields
|
## Fields
|
||||||
|
|||||||
@@ -5,20 +5,20 @@ Information about a specific model endpoint
|
|||||||
|
|
||||||
## Fields
|
## Fields
|
||||||
|
|
||||||
| Field | Type | Required | Description | Example |
|
| Field | Type | Required | Description | Example |
|
||||||
| ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- |
|
| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
||||||
| `name` | *str* | :heavy_check_mark: | N/A | |
|
| `name` | *str* | :heavy_check_mark: | N/A | |
|
||||||
| `model_name` | *str* | :heavy_check_mark: | N/A | |
|
| `model_name` | *str* | :heavy_check_mark: | N/A | |
|
||||||
| `context_length` | *float* | :heavy_check_mark: | N/A | |
|
| `context_length` | *float* | :heavy_check_mark: | N/A | |
|
||||||
| `pricing` | [components.Pricing](../components/pricing.md) | :heavy_check_mark: | N/A | |
|
| `pricing` | [components.Pricing](../components/pricing.md) | :heavy_check_mark: | N/A | |
|
||||||
| `provider_name` | [components.ProviderName](../components/providername.md) | :heavy_check_mark: | N/A | OpenAI |
|
| `provider_name` | [components.ProviderName](../components/providername.md) | :heavy_check_mark: | N/A | OpenAI |
|
||||||
| `tag` | *str* | :heavy_check_mark: | N/A | |
|
| `tag` | *str* | :heavy_check_mark: | N/A | |
|
||||||
| `quantization` | [Nullable[components.PublicEndpointQuantization]](../components/publicendpointquantization.md) | :heavy_check_mark: | N/A | fp16 |
|
| `quantization` | [Nullable[components.PublicEndpointQuantization]](../components/publicendpointquantization.md) | :heavy_check_mark: | N/A | fp16 |
|
||||||
| `max_completion_tokens` | *Nullable[float]* | :heavy_check_mark: | N/A | |
|
| `max_completion_tokens` | *Nullable[float]* | :heavy_check_mark: | N/A | |
|
||||||
| `max_prompt_tokens` | *Nullable[float]* | :heavy_check_mark: | N/A | |
|
| `max_prompt_tokens` | *Nullable[float]* | :heavy_check_mark: | N/A | |
|
||||||
| `supported_parameters` | List[[components.Parameter](../components/parameter.md)] | :heavy_check_mark: | N/A | |
|
| `supported_parameters` | List[[components.Parameter](../components/parameter.md)] | :heavy_check_mark: | N/A | |
|
||||||
| `status` | [Optional[components.EndpointStatus]](../components/endpointstatus.md) | :heavy_minus_sign: | N/A | 0 |
|
| `status` | [Optional[components.EndpointStatus]](../components/endpointstatus.md) | :heavy_minus_sign: | N/A | 0 |
|
||||||
| `uptime_last_30m` | *Nullable[float]* | :heavy_check_mark: | N/A | |
|
| `uptime_last_30m` | *Nullable[float]* | :heavy_check_mark: | N/A | |
|
||||||
| `supports_implicit_caching` | *bool* | :heavy_check_mark: | N/A | |
|
| `supports_implicit_caching` | *bool* | :heavy_check_mark: | N/A | |
|
||||||
| `latency_last_30m` | [Nullable[components.PercentileStats]](../components/percentilestats.md) | :heavy_check_mark: | Latency percentiles in seconds over the last 30 minutes. Latency measures time to first token. | |
|
| `latency_last_30m` | [Nullable[components.PercentileStats]](../components/percentilestats.md) | :heavy_check_mark: | Latency percentiles in milliseconds over the last 30 minutes. Latency measures time to first token. Only visible when authenticated with an API key or cookie; returns null for unauthenticated requests. | |
|
||||||
| `throughput_last_30m` | [Nullable[components.PercentileStats]](../components/percentilestats.md) | :heavy_check_mark: | N/A | |
|
| `throughput_last_30m` | [Nullable[components.PercentileStats]](../components/percentilestats.md) | :heavy_check_mark: | N/A | |
|
||||||
@@ -6,7 +6,7 @@ from typing_extensions import TypedDict
|
|||||||
|
|
||||||
|
|
||||||
class PercentileStatsTypedDict(TypedDict):
|
class PercentileStatsTypedDict(TypedDict):
|
||||||
r"""Latency percentiles in seconds over the last 30 minutes. Latency measures time to first token."""
|
r"""Latency percentiles in milliseconds over the last 30 minutes. Latency measures time to first token. Only visible when authenticated with an API key or cookie; returns null for unauthenticated requests."""
|
||||||
|
|
||||||
p50: float
|
p50: float
|
||||||
r"""Median (50th percentile)"""
|
r"""Median (50th percentile)"""
|
||||||
@@ -19,7 +19,7 @@ class PercentileStatsTypedDict(TypedDict):
|
|||||||
|
|
||||||
|
|
||||||
class PercentileStats(BaseModel):
|
class PercentileStats(BaseModel):
|
||||||
r"""Latency percentiles in seconds over the last 30 minutes. Latency measures time to first token."""
|
r"""Latency percentiles in milliseconds over the last 30 minutes. Latency measures time to first token. Only visible when authenticated with an API key or cookie; returns null for unauthenticated requests."""
|
||||||
|
|
||||||
p50: float
|
p50: float
|
||||||
r"""Median (50th percentile)"""
|
r"""Median (50th percentile)"""
|
||||||
|
|||||||
@@ -113,7 +113,7 @@ class PublicEndpointTypedDict(TypedDict):
|
|||||||
uptime_last_30m: Nullable[float]
|
uptime_last_30m: Nullable[float]
|
||||||
supports_implicit_caching: bool
|
supports_implicit_caching: bool
|
||||||
latency_last_30m: Nullable[PercentileStatsTypedDict]
|
latency_last_30m: Nullable[PercentileStatsTypedDict]
|
||||||
r"""Latency percentiles in seconds over the last 30 minutes. Latency measures time to first token."""
|
r"""Latency percentiles in milliseconds over the last 30 minutes. Latency measures time to first token. Only visible when authenticated with an API key or cookie; returns null for unauthenticated requests."""
|
||||||
throughput_last_30m: Nullable[PercentileStatsTypedDict]
|
throughput_last_30m: Nullable[PercentileStatsTypedDict]
|
||||||
status: NotRequired[EndpointStatus]
|
status: NotRequired[EndpointStatus]
|
||||||
|
|
||||||
@@ -150,7 +150,7 @@ class PublicEndpoint(BaseModel):
|
|||||||
supports_implicit_caching: bool
|
supports_implicit_caching: bool
|
||||||
|
|
||||||
latency_last_30m: Nullable[PercentileStats]
|
latency_last_30m: Nullable[PercentileStats]
|
||||||
r"""Latency percentiles in seconds over the last 30 minutes. Latency measures time to first token."""
|
r"""Latency percentiles in milliseconds over the last 30 minutes. Latency measures time to first token. Only visible when authenticated with an API key or cookie; returns null for unauthenticated requests."""
|
||||||
|
|
||||||
throughput_last_30m: Nullable[PercentileStats]
|
throughput_last_30m: Nullable[PercentileStats]
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user