Skip to content

Commit 89d2b91

Browse files
speedstorm1copybara-github
authored andcommitted
feat: Support Prompt Management in the JS GenAI Modules
PiperOrigin-RevId: 946294159
1 parent db5ed50 commit 89d2b91

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

agentplatform/_genai/prompts.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2369,7 +2369,7 @@ def update(
23692369

23702370
# Step 1: Update the dataset resource for the prompt and wait for the operation to complete.
23712371
updated_dataset_resource = self._update_dataset_resource(
2372-
name=f"projects/{self._api_client.project}/locations/{self._api_client.location}",
2372+
name=f"projects/{self._api_client.project}/locations/{self._api_client.location}/datasets/{prompt_id}",
23732373
dataset_id=prompt_id,
23742374
display_name=(
23752375
config.prompt_display_name
@@ -3709,7 +3709,7 @@ async def update(
37093709

37103710
# Step 1: Update the dataset resource for the prompt and wait for the operation to complete.
37113711
updated_dataset_resource = await self._update_dataset_resource(
3712-
name=f"projects/{self._api_client.project}/locations/{self._api_client.location}",
3712+
name=f"projects/{self._api_client.project}/locations/{self._api_client.location}/datasets/{prompt_id}",
37133713
dataset_id=prompt_id,
37143714
display_name=(
37153715
config.prompt_display_name

0 commit comments

Comments
 (0)