Skip to content

Commit

Permalink
Update gql schema
Browse files Browse the repository at this point in the history
  • Loading branch information
anticorrelator committed Dec 20, 2024
1 parent 728a9fa commit d98a482
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions app/schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -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"""
Expand All @@ -1406,11 +1411,6 @@ enum PromptMessageRole {
AI
}

type PromptMessagesTemplateV1 {
version: String!
messages: [TextPromptMessageJSONPromptMessage!]!
}

type PromptResponse {
"""The prompt submitted to the LLM"""
prompt: String
Expand All @@ -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"""
Expand Down

0 comments on commit d98a482

Please sign in to comment.