From d98a4829c450e9c445fa2efff0bbc2aa301d57a5 Mon Sep 17 00:00:00 2001 From: Dustin Ngo Date: Fri, 20 Dec 2024 13:24:35 -0500 Subject: [PATCH] Update gql schema --- app/schema.graphql | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/app/schema.graphql b/app/schema.graphql index bb4e8eeeca..e829af1eaa 100644 --- a/app/schema.graphql +++ b/app/schema.graphql @@ -1382,6 +1382,11 @@ type Prompt implements Node { promptVersions(first: Int = 50, last: Int, after: String, before: String): PromptVersionConnection! } +type PromptChatTemplateV1 { + version: String! + messages: [TextPromptMessageJSONPromptMessage!]! +} + """A connection to a list of items.""" type PromptConnection { """Pagination data for this connection""" @@ -1406,11 +1411,6 @@ enum PromptMessageRole { AI } -type PromptMessagesTemplateV1 { - version: String! - messages: [TextPromptMessageJSONPromptMessage!]! -} - type PromptResponse { """The prompt submitted to the LLM""" prompt: String @@ -1434,7 +1434,7 @@ enum PromptTemplateType { CHAT } -union PromptTemplateVersion = PromptStringTemplate | PromptMessagesTemplateV1 +union PromptTemplateVersion = PromptStringTemplate | PromptChatTemplateV1 type PromptVersion implements Node { """The Globally Unique ID of this object"""