You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: GenAI SDK client - Update client.prompts.create to create a prompt and prompt version for a prompt. Deprecate client.prompts.create_version in favor of create()
A types.Prompt object representing the prompt with its associated
1329
1354
Dataset and Dataset Version resources.
1330
1355
"""
1356
+
logger.warning(
1357
+
"The `prompts.create_version` method is deprecated. Please use the prompts.create` method instead. `prompts.create` creates a prompt dataset and dataset version resource for your prompt."
A types.Prompt object representing the prompt with its associated
2949
3002
Dataset and Dataset Version resources.
2950
3003
"""
3004
+
logger.warning(
3005
+
"The `prompts.create_version` method is deprecated. Please use the prompts.create` method instead. `prompts.create` creates a prompt dataset and dataset version resource for your prompt."
Copy file name to clipboardExpand all lines: vertexai/_genai/types/common.py
+7Lines changed: 7 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -16043,6 +16043,10 @@ class CreatePromptConfig(_common.BaseModel):
16043
16043
default=None,
16044
16044
description="""Customer-managed encryption key spec for a prompt dataset. If set, this prompt dataset and all sub-resources of this prompt dataset will be secured by this key.""",
16045
16045
)
16046
+
version_display_name: Optional[str] = Field(
16047
+
default=None,
16048
+
description="""The display name for the prompt version. If not set, a default name with a timestamp will be used.""",
16049
+
)
16046
16050
16047
16051
16048
16052
class CreatePromptConfigDict(TypedDict, total=False):
@@ -16060,6 +16064,9 @@ class CreatePromptConfigDict(TypedDict, total=False):
"""Customer-managed encryption key spec for a prompt dataset. If set, this prompt dataset and all sub-resources of this prompt dataset will be secured by this key."""
16062
16066
16067
+
version_display_name: Optional[str]
16068
+
"""The display name for the prompt version. If not set, a default name with a timestamp will be used."""
0 commit comments