feat(admin): add prompt management page (#7611)

close AF-907

Supports online modification of prompt, but does not support custom ai key yet

![CleanShot 2024-07-29 at 22 12 39@2x](https://github.com/user-attachments/assets/c67ad0d0-3e5b-44ff-b7db-d07dd11c19e2)
This commit is contained in:
JimmFly
2024-08-13 05:45:00 +00:00
committed by forehalo
parent bf6e36de37
commit b214003968
15 changed files with 658 additions and 36 deletions

View File

@@ -61,19 +61,19 @@ enum CopilotModels {
}
input CopilotPromptConfigInput {
frequencyPenalty: Int
frequencyPenalty: Float
jsonMode: Boolean
presencePenalty: Int
temperature: Int
topP: Int
presencePenalty: Float
temperature: Float
topP: Float
}
type CopilotPromptConfigType {
frequencyPenalty: Int
frequencyPenalty: Float
jsonMode: Boolean
presencePenalty: Int
temperature: Int
topP: Int
presencePenalty: Float
temperature: Float
topP: Float
}
input CopilotPromptMessageInput {
@@ -102,7 +102,7 @@ type CopilotPromptType {
action: String
config: CopilotPromptConfigType
messages: [CopilotPromptMessageType!]!
model: CopilotModels!
model: String!
name: String!
}