From e50f375fbd74a161b5be1f94ec61e97ec1570a3d Mon Sep 17 00:00:00 2001 From: Sara Robinson Date: Wed, 6 May 2026 11:37:48 -0700 Subject: [PATCH] docs: Update Prompts sample in readme to use create_version PiperOrigin-RevId: 911454577 --- README.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.rst b/README.rst index cc48fc1b5f..2166e805df 100644 --- a/README.rst +++ b/README.rst @@ -228,7 +228,7 @@ We can also call the `launch_optimization_job` method asynchronously. Prompt Management ^^^^^^^^^^^^^^^^^ -First define your prompt as a dictionary or types.Prompt object. Then call create_prompt. +First define your prompt as a dictionary or types.Prompt object. Then call create_version. .. code-block:: Python @@ -243,7 +243,7 @@ First define your prompt as a dictionary or types.Prompt object. Then call creat }, } - prompt_resource = client.prompts.create( + prompt_resource = client.prompts.create_version( prompt=prompt, )