Skip to content

Commit e139299

Browse files
feat(api): manual updates
1 parent e103720 commit e139299

5 files changed

Lines changed: 13 additions & 358 deletions

File tree

.stats.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 193
22
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/digitalocean%2Fgradient-2344b44246a44d39ad5b74d3077bd2958745aad67feb15970756532fa0b3f9d6.yml
33
openapi_spec_hash: a1913979235ce152a8dc380fabe5362e
4-
config_hash: 3c7741f27a23621a5a8e3cae5610088d
4+
config_hash: 6c9a04f3cc5dd88e1e4f0ae42d98ba9a

api.md

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1075,15 +1075,3 @@ from gradient.types import BillingListInsightsResponse
10751075
Methods:
10761076

10771077
- <code title="get /v2/billing/{account_urn}/insights/{start_date}/{end_date}">client.billing.<a href="./src/gradient/resources/billing.py">list_insights</a>(end_date, \*, account_urn, start_date, \*\*<a href="src/gradient/types/billing_list_insights_params.py">params</a>) -> <a href="./src/gradient/types/billing_list_insights_response.py">BillingListInsightsResponse</a></code>
1078-
1079-
# Responses
1080-
1081-
Types:
1082-
1083-
```python
1084-
from gradient.types import ResponseCreateResponse
1085-
```
1086-
1087-
Methods:
1088-
1089-
- <code title="post /responses">client.responses.<a href="./src/gradient/resources/responses.py">create</a>(\*\*<a href="src/gradient/types/response_create_params.py">params</a>) -> <a href="./src/gradient/types/response_create_response.py">ResponseCreateResponse</a></code>

src/gradient/_base_client.py

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262
not_given,
6363
)
6464
from ._utils import is_dict, is_list, asyncify, is_given, lru_cache, is_mapping
65-
from ._compat import PYDANTIC_V1, model_copy, model_dump
65+
from ._compat import PYDANTIC_V1, model_copy
6666
from ._models import GenericModel, FinalRequestOptions, validate_type, construct_type
6767
from ._response import (
6868
APIResponse,
@@ -486,17 +486,17 @@ def _build_request(
486486
) -> httpx.Request:
487487
if log.isEnabledFor(logging.DEBUG):
488488
log.debug(
489-
"Request options: %s",
490-
model_dump(
491-
options,
492-
exclude_unset=True,
493-
# Pydantic v1 can't dump every type we support in content, so we exclude it for now.
494-
exclude={
495-
"content",
496-
}
497-
if PYDANTIC_V1
498-
else {},
499-
),
489+
"Request options",
490+
# model_dump(
491+
# options,
492+
# exclude_unset=True,
493+
# # Pydantic v1 can't dump every type we support in content, so we exclude it for now.
494+
# exclude={
495+
# "content",
496+
# }
497+
# if PYDANTIC_V1
498+
# else {},
499+
# ),
500500
)
501501
kwargs: dict[str, Any] = {}
502502

src/gradient/types/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,6 @@
8484
from .api_openai_api_key_info import APIOpenAIAPIKeyInfo as APIOpenAIAPIKeyInfo
8585
from .gpu_droplet_list_params import GPUDropletListParams as GPUDropletListParams
8686
from .image_generate_response import ImageGenerateResponse as ImageGenerateResponse
87-
from .response_create_response import ResponseCreateResponse as ResponseCreateResponse
8887
from .api_deployment_visibility import APIDeploymentVisibility as APIDeploymentVisibility
8988
from .gpu_droplet_create_params import GPUDropletCreateParams as GPUDropletCreateParams
9089
from .gpu_droplet_list_response import GPUDropletListResponse as GPUDropletListResponse

0 commit comments

Comments
 (0)