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
The version input parameter is a bit confusing. I was trying to set an ID.
Before prompts get widely used in SDKs, we might want to change this name.
My expectation with a field like "version" is a string ID not the actual prompt data might want to call it prompt_data
prompt_name = "article-bullet-summarizer"
prompt = Client().prompts.create(
name=prompt_name,
prompt_description="Summarize an article in a few bullet points", version=PromptVersion(
[{"role": "user", "content": content}],
model_name="gpt-4o-mini",
),
)
Included is o1's take :)
You’re right that using the name “version” can be confusing if it’s not actually referring to a unique version identifier. A clearer name might be something that indicates it contains the actual configuration or content of the prompt—for example, prompt_data, prompt_definition, prompt_content, or simply content. This makes it clear that the field contains the substance or structure of the prompt rather than just a version ID.
The text was updated successfully, but these errors were encountered:
The version input parameter is a bit confusing. I was trying to set an ID.
Before prompts get widely used in SDKs, we might want to change this name.
My expectation with a field like "version" is a string ID not the actual prompt data might want to call it prompt_data
prompt_name = "article-bullet-summarizer"
prompt = Client().prompts.create(
name=prompt_name,
prompt_description="Summarize an article in a few bullet points",
version=PromptVersion(
[{"role": "user", "content": content}],
model_name="gpt-4o-mini",
),
)
Included is o1's take :)
You’re right that using the name “version” can be confusing if it’s not actually referring to a unique version identifier. A clearer name might be something that indicates it contains the actual configuration or content of the prompt—for example, prompt_data, prompt_definition, prompt_content, or simply content. This makes it clear that the field contains the substance or structure of the prompt rather than just a version ID.
The text was updated successfully, but these errors were encountered: