diff options
Diffstat (limited to 'helpfuncs.go')
| -rw-r--r-- | helpfuncs.go | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/helpfuncs.go b/helpfuncs.go index 28e7962..849b0a0 100644 --- a/helpfuncs.go +++ b/helpfuncs.go @@ -279,3 +279,16 @@ func listChatRoles() []string { charset = append(charset, cbc...) return charset } + +func deepseekModelValidator() error { + if cfg.CurrentAPI == cfg.DeepSeekChatAPI || cfg.CurrentAPI == cfg.DeepSeekCompletionAPI { + if chatBody.Model != "deepseek-chat" && chatBody.Model != "deepseek-reasoner" { + if err := notifyUser("bad request", "wrong deepseek model name"); err != nil { + logger.Warn("failed ot notify user", "error", err) + return err + } + return nil + } + } + return nil +} |
