Skip to content

Commit

Permalink
[Fix] πŸ› Chat Balance-18k Exceeding length Error
Browse files Browse the repository at this point in the history
  • Loading branch information
Harry-zklcdc committed Feb 22, 2024
1 parent f414ee8 commit dd554cd
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion chat.go
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,11 @@ func (chat *Chat) optionsSetsHandler(systemContext []SystemContext) []string {
if strings.Contains(tone, PRECISE) {
optionsSets = append(optionsSets, "h3precise", "clgalileo", "gencontentv3")
} else if strings.Contains(tone, BALANCED) {
optionsSets = append(optionsSets, "galileo", "saharagenconv5")
if strings.Contains(tone, "18k") {
optionsSets = append(optionsSets, "clgalileo", "saharagenconv5")
} else {
optionsSets = append(optionsSets, "galileo", "saharagenconv5")
}
} else if strings.Contains(tone, CREATIVE) {
optionsSets = append(optionsSets, "h3imaginative", "clgalileo", "gencontentv3")
}
Expand Down

0 comments on commit dd554cd

Please sign in to comment.