Fix: specv2 cards wrapper case
This commit is contained in:
@@ -22,6 +22,10 @@ type CharCardSpec struct {
|
||||
Tags []any `json:"tags"`
|
||||
}
|
||||
|
||||
type Spec2Wrapper struct {
|
||||
Data CharCardSpec `json:"data"`
|
||||
}
|
||||
|
||||
func (c *CharCardSpec) Simplify(userName, fpath string) *CharCard {
|
||||
fm := strings.ReplaceAll(strings.ReplaceAll(c.FirstMes, "{{char}}", c.Name), "{{user}}", userName)
|
||||
sysPr := strings.ReplaceAll(strings.ReplaceAll(c.Description, "{{char}}", c.Name), "{{user}}", userName)
|
||||
|
||||
@@ -75,9 +75,10 @@ func (m RoleMsg) ToText(i int, cfg *config.Config) string {
|
||||
}
|
||||
|
||||
type ChatBody struct {
|
||||
Model string `json:"model"`
|
||||
Stream bool `json:"stream"`
|
||||
Messages []RoleMsg `json:"messages"`
|
||||
Model string `json:"model"`
|
||||
Stream bool `json:"stream"`
|
||||
Messages []RoleMsg `json:"messages"`
|
||||
DRYMultiplier float32 `json:"frequency_penalty"`
|
||||
}
|
||||
|
||||
type ChatToolsBody struct {
|
||||
|
||||
Reference in New Issue
Block a user