mirror of
https://github.com/yangjian102621/geekai.git
synced 2025-11-09 18:53:43 +08:00
feat: auto translate image creating prompt
This commit is contained in:
11
api/store/model/function.go
Normal file
11
api/store/model/function.go
Normal 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
22
api/store/vo/function.go
Normal 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"`
|
||||
}
|
||||
Reference in New Issue
Block a user