Skip to content

Commit 2b2f4bd

Browse files
haibingtownwanghaibing
authored andcommitted
fix: ensure tool response is correctly passed to model
1 parent 1ea6b7f commit 2b2f4bd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

go/plugins/compat_oai/generate.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,8 +107,8 @@ func (g *ModelGenerator) WithMessages(messages []*ai.Message) *ModelGenerator {
107107
}
108108

109109
tm := openai.ToolMessage(
110-
toolCallID,
111110
anyToJSONString(p.ToolResponse.Output),
111+
toolCallID,
112112
)
113113
oaiMessages = append(oaiMessages, tm)
114114
}

0 commit comments

Comments
 (0)