Skip to content

Commit f930daa

Browse files
sararobcopybara-github
authored andcommitted
docs: Update Prompts sample in readme to use create_version
PiperOrigin-RevId: 911339849
1 parent 062e254 commit f930daa

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

README.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ We can also call the `launch_optimization_job` method asynchronously.
228228
Prompt Management
229229
^^^^^^^^^^^^^^^^^
230230

231-
First define your prompt as a dictionary or types.Prompt object. Then call create_prompt.
231+
First define your prompt as a dictionary or types.Prompt object. Then call create_version.
232232

233233
.. code-block:: Python
234234
@@ -243,7 +243,7 @@ First define your prompt as a dictionary or types.Prompt object. Then call creat
243243
},
244244
}
245245
246-
prompt_resource = client.prompts.create(
246+
prompt_resource = client.prompts.create_version(
247247
prompt=prompt,
248248
)
249249

0 commit comments

Comments
 (0)