feat: auto translate image creating prompt

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

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"`
}