Skip to content

Commit fcc15a0

Browse files
feat(api): manual updates
1 parent 49d2a1f commit fcc15a0

3 files changed

Lines changed: 10 additions & 9 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: 2
22
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/landingai%2Fade-f08049b74d593128128837d1e62b642bf68ee132184fddadc45d19fbc6d9f263.yml
33
openapi_spec_hash: 1cf6912d5249120cb222db3890587aab
4-
config_hash: 5cb437dd50d7cfb93e1a7d70a825794e
4+
config_hash: 32cd6a810e642f8777b636a443223c76

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ from landingai_ade import LandingAIADE
3434

3535
client = LandingAIADE(
3636
apikey=os.environ.get("VISION_AGENT_API_KEY"), # This is the default and can be omitted
37-
# defaults to "production".
37+
# or 'production' | 'staging'; defaults to "production".
3838
environment="eu",
3939
)
4040

@@ -80,7 +80,7 @@ from landingai_ade import AsyncLandingAIADE
8080

8181
client = AsyncLandingAIADE(
8282
apikey=os.environ.get("VISION_AGENT_API_KEY"), # This is the default and can be omitted
83-
# defaults to "production".
83+
# or 'production' | 'staging'; defaults to "production".
8484
environment="eu",
8585
)
8686

src/landingai_ade/_client.py

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@
6666
ENVIRONMENTS: Dict[str, str] = {
6767
"production": "https://api.va.landing.ai",
6868
"eu": "https://va.eu-west-1.landing.ai",
69+
"staging": "https://api.va.staging.landing.ai",
6970
}
7071

7172

@@ -76,13 +77,13 @@ class LandingAIADE(SyncAPIClient):
7677
# client options
7778
apikey: str
7879

79-
_environment: Literal["production", "eu"] | NotGiven
80+
_environment: Literal["production", "eu", "staging"] | NotGiven
8081

8182
def __init__(
8283
self,
8384
*,
8485
apikey: str | None = None,
85-
environment: Literal["production", "eu"] | NotGiven = not_given,
86+
environment: Literal["production", "eu", "staging"] | NotGiven = not_given,
8687
base_url: str | httpx.URL | None | NotGiven = not_given,
8788
timeout: float | Timeout | None | NotGiven = not_given,
8889
max_retries: int = DEFAULT_MAX_RETRIES,
@@ -178,7 +179,7 @@ def copy(
178179
self,
179180
*,
180181
apikey: str | None = None,
181-
environment: Literal["production", "eu"] | None = None,
182+
environment: Literal["production", "eu", "staging"] | None = None,
182183
base_url: str | httpx.URL | None = None,
183184
timeout: float | Timeout | None | NotGiven = not_given,
184185
http_client: httpx.Client | None = None,
@@ -397,13 +398,13 @@ class AsyncLandingAIADE(AsyncAPIClient):
397398
# client options
398399
apikey: str
399400

400-
_environment: Literal["production", "eu"] | NotGiven
401+
_environment: Literal["production", "eu", "staging"] | NotGiven
401402

402403
def __init__(
403404
self,
404405
*,
405406
apikey: str | None = None,
406-
environment: Literal["production", "eu"] | NotGiven = not_given,
407+
environment: Literal["production", "eu", "staging"] | NotGiven = not_given,
407408
base_url: str | httpx.URL | None | NotGiven = not_given,
408409
timeout: float | Timeout | None | NotGiven = not_given,
409410
max_retries: int = DEFAULT_MAX_RETRIES,
@@ -499,7 +500,7 @@ def copy(
499500
self,
500501
*,
501502
apikey: str | None = None,
502-
environment: Literal["production", "eu"] | None = None,
503+
environment: Literal["production", "eu", "staging"] | None = None,
503504
base_url: str | httpx.URL | None = None,
504505
timeout: float | Timeout | None | NotGiven = not_given,
505506
http_client: httpx.AsyncClient | None = None,

0 commit comments

Comments
 (0)