mirror of
https://github.com/FloatTech/ZeroBot-Plugin.git
synced 2025-12-19 05:30:07 +08:00
feat(aichat): agent add more trigger conds
This commit is contained in:
parent
d0f4d296d9
commit
d6eb3ba28c
@ -103,7 +103,7 @@ func init() {
|
|||||||
temperature := stor.temp()
|
temperature := stor.temp()
|
||||||
topp, maxn := cfg.mparams()
|
topp, maxn := cfg.mparams()
|
||||||
|
|
||||||
if !stor.noagent() {
|
if !stor.noagent() && cfg.AgentAPI != "" && cfg.AgentModelName != "" {
|
||||||
x := deepinfra.NewAPI(cfg.AgentAPI, string(cfg.AgentKey))
|
x := deepinfra.NewAPI(cfg.AgentAPI, string(cfg.AgentKey))
|
||||||
mod, err := cfg.Type.protocol(cfg.AgentModelName, temperature, topp, maxn)
|
mod, err := cfg.Type.protocol(cfg.AgentModelName, temperature, topp, maxn)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user