2025-06-12 10:18:06 +08:00
|
|
|
package domain
|
|
|
|
|
|
|
|
|
|
type TextReq struct {
|
2025-06-12 11:29:38 +08:00
|
|
|
Text string `json:"text" validate:"required"`
|
|
|
|
|
Action string `json:"action"` // action: improve, summary, extend, shorten, etc.
|
2025-06-12 10:18:06 +08:00
|
|
|
}
|
2025-09-22 10:38:28 +08:00
|
|
|
|
|
|
|
|
// FIM (Fill in Middle) tokens
|
|
|
|
|
const (
|
|
|
|
|
FIMPrefix = "<fim_prefix>"
|
|
|
|
|
FIMSuffix = "<fim_suffix>"
|
|
|
|
|
FIMMiddle = "<fim_middle>"
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
type CompleteReq struct {
|
|
|
|
|
// For FIM (Fill in Middle) style completion
|
|
|
|
|
Prefix string `json:"prefix,omitempty"`
|
|
|
|
|
Suffix string `json:"suffix,omitempty"`
|
|
|
|
|
}
|