Skip to content

Commit 10182a0

Browse files
committed
pangea-sdk: update Prompt Guard to v1
1 parent ec6d269 commit 10182a0

File tree

3 files changed

+7
-11
lines changed

3 files changed

+7
-11
lines changed

packages/pangea-sdk/.sdk-ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
SERVICE_URL_INTEL_ENV: LVE
2525
SERVICE_FILE_INTEL_ENV: LVE
2626
SERVICE_USER_INTEL_ENV: LVE
27-
SERVICE_PROMPT_GUARD_ENV: DEV
27+
SERVICE_PROMPT_GUARD_ENV: LVE
2828
SERVICE_REDACT_ENV: LVE
2929
SERVICE_SANITIZE_ENV: LVE
3030
SERVICE_VAULT_ENV: LVE

packages/pangea-sdk/pangea/asyncio/services/prompt_guard.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -59,13 +59,11 @@ async def guard(
5959
classify: bool | None = None,
6060
) -> PangeaResponse[GuardResult]:
6161
"""
62-
Guard (Beta)
62+
Guard
6363
6464
Guard messages.
6565
66-
How to install a [Beta release](https://pangea.cloud/docs/sdk/python/#beta-releases).
67-
68-
OperationId: prompt_guard_post_v1beta_guard
66+
OperationId: prompt_guard_post_v1_guard
6967
7068
Args:
7169
messages: Prompt content and role array in JSON format. The
@@ -80,7 +78,7 @@ async def guard(
8078
"""
8179

8280
return await self.request.post(
83-
"v1beta/guard",
81+
"v1/guard",
8482
GuardResult,
8583
data={"messages": messages, "analyzers": analyzers, "classify": classify},
8684
)

packages/pangea-sdk/pangea/services/prompt_guard.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -93,13 +93,11 @@ def guard(
9393
classify: bool | None = None,
9494
) -> PangeaResponse[GuardResult]:
9595
"""
96-
Guard (Beta)
96+
Guard
9797
9898
Guard messages.
9999
100-
How to install a [Beta release](https://pangea.cloud/docs/sdk/python/#beta-releases).
101-
102-
OperationId: prompt_guard_post_v1beta_guard
100+
OperationId: prompt_guard_post_v1_guard
103101
104102
Args:
105103
messages: Prompt content and role array in JSON format. The
@@ -114,7 +112,7 @@ def guard(
114112
"""
115113

116114
return self.request.post(
117-
"v1beta/guard",
115+
"v1/guard",
118116
GuardResult,
119117
data={"messages": messages, "analyzers": analyzers, "classify": classify},
120118
)

0 commit comments

Comments
 (0)