Skip to content

Commit 315b75d

Browse files
authored
fix(plugin): ToEinoSchemaParameterInfo nil panic (coze-dev#832)
1 parent ae645e5 commit 315b75d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

backend/api/model/crossdomain/plugin/openai.go renamed to backend/api/model/crossdomain/plugin/openapi.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -255,6 +255,9 @@ func (op *Openapi3Operation) ToEinoSchemaParameterInfo(ctx context.Context) (map
255255
if err != nil {
256256
return nil, err
257257
}
258+
if paramInfo == nil {
259+
continue
260+
}
258261

259262
if _, ok := result[paramName]; ok {
260263
logs.CtxWarnf(ctx, "duplicate parameter name '%s'", paramName)

0 commit comments

Comments
 (0)