feat: auto translate image creating prompt

This commit is contained in:
RockYang
2023-12-19 18:54:19 +08:00
parent 3d37087916
commit bf19120c27
11 changed files with 446 additions and 99 deletions

View File

@@ -0,0 +1,11 @@
package model
type Function struct {
Id uint `gorm:"primarykey;column:id"`
Name string
Description string
Parameters string
Required string
Action string
Enabled bool
}

22
api/store/vo/function.go Normal file
View File

@@ -0,0 +1,22 @@
package vo
type Parameters struct {
Type string `json:"type"`
Required []string `json:"required"`
Properties map[string]Property `json:"properties"`
}
type Property struct {
Type string `json:"type"`
Description string `json:"description"`
}
type Function struct {
Id uint `json:"id"`
Name string `json:"name"`
Description string `json:"description"`
Parameters Parameters `json:"parameters"`
Required []string `json:"required"`
Action string `json:"action"`
Enabled bool `json:"enabled"`
}