chore: simplify model yaml (#308)

This commit is contained in:
N3ko
2025-07-31 12:15:55 +08:00
committed by GitHub
parent 397912fccf
commit 977f2c423a
24 changed files with 37 additions and 156 deletions

View File

@@ -163,7 +163,7 @@ func BuildAgent(ctx context.Context, conf *Config) (r *AgentRunner, err error) {
isReActAgent = true
requireCheckpoint = true
if modelInfo.Meta.Capability != nil && !modelInfo.Meta.Capability.FunctionCall {
return nil, fmt.Errorf("model %v does not support function call", modelInfo.Meta.Name)
return nil, fmt.Errorf("model %v does not support function call", modelInfo.Name)
}
}