mirror of
https://github.com/chaitin/MonkeyCode.git
synced 2026-02-18 22:53:28 +08:00
feat: 记录任务的所有问答
This commit is contained in:
@@ -24,8 +24,6 @@ const (
|
||||
FieldRequestID = "request_id"
|
||||
// FieldModelType holds the string denoting the model_type field in the database.
|
||||
FieldModelType = "model_type"
|
||||
// FieldPrompt holds the string denoting the prompt field in the database.
|
||||
FieldPrompt = "prompt"
|
||||
// FieldIsAccept holds the string denoting the is_accept field in the database.
|
||||
FieldIsAccept = "is_accept"
|
||||
// FieldProgramLanguage holds the string denoting the program_language field in the database.
|
||||
@@ -83,7 +81,6 @@ var Columns = []string{
|
||||
FieldModelID,
|
||||
FieldRequestID,
|
||||
FieldModelType,
|
||||
FieldPrompt,
|
||||
FieldIsAccept,
|
||||
FieldProgramLanguage,
|
||||
FieldWorkMode,
|
||||
@@ -149,11 +146,6 @@ func ByModelType(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldModelType, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByPrompt orders the results by the prompt field.
|
||||
func ByPrompt(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldPrompt, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByIsAccept orders the results by the is_accept field.
|
||||
func ByIsAccept(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldIsAccept, opts...).ToFunc()
|
||||
|
||||
Reference in New Issue
Block a user