-
Notifications
You must be signed in to change notification settings - Fork 324
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: Spike out dummy PromptVersion connection #5767
Conversation
class PromptTemplateType(str, Enum): | ||
TEXT = "text" | ||
JSON = "json" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is this supposed to match what's in the DB?
sa.Column(
"template_type",
sa.String,
sa.CheckConstraint(
"template_type IN ('chat', 'str')",
name="template_type",
),
nullable=False,
),
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch
class PromptTemplateFormat(str, Enum): | ||
MUSTACHE = "mustache" | ||
FSTRING = "fstring" | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is this missing NONE
?
description: String! | ||
templateType: PromptTemplateType! | ||
templateFormat: PromptTemplateFormat! | ||
template: JSON! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we can make this a union type and give it a bit more structure
src/phoenix/server/api/queries.py
Outdated
@@ -612,6 +617,85 @@ def prompts( | |||
args=args, | |||
) | |||
|
|||
@strawberry.field | |||
async def prompt_versions( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this goes on prompt
66d8379
to
45fb1f8
Compare
resolves #5754