feat: add prompt level config (#7445)

This commit is contained in:
darkskygit
2024-07-08 08:11:22 +00:00
parent 9ef8829ef1
commit bf6c9a5955
12 changed files with 125 additions and 41 deletions

View File

@@ -57,6 +57,22 @@ enum CopilotModels {
TextModerationStable
}
input CopilotPromptConfigInput {
frequencyPenalty: Int
jsonMode: Boolean
presencePenalty: Int
temperature: Int
topP: Int
}
type CopilotPromptConfigType {
frequencyPenalty: Int
jsonMode: Boolean
presencePenalty: Int
temperature: Int
topP: Int
}
input CopilotPromptMessageInput {
content: String!
params: JSON
@@ -81,6 +97,7 @@ type CopilotPromptNotFoundDataType {
type CopilotPromptType {
action: String
config: CopilotPromptConfigType
messages: [CopilotPromptMessageType!]!
model: CopilotModels!
name: String!
@@ -123,6 +140,7 @@ input CreateCheckoutSessionInput {
input CreateCopilotPromptInput {
action: String
config: CopilotPromptConfigInput
messages: [CopilotPromptMessageInput!]!
model: CopilotModels!
name: String!