server.reply = func(w http.ResponseWriter, call ModelFakeCall) {
if call.number == 0 {
modelWriteEvents(w, modelCompletedEvent([]any{
- modelReasoningItem("rs_1", "opaque thought"),
+ turnReasoningItem("rs_1", "opaque thought"),
modelFunctionCallItem("fc_1", "call_1", "shell", `{"command":"echo hi"}`),
}, 100, 0, 5))
return Event{}
}
-func modelReasoningItem(id, encrypted string) map[string]any {
+func turnReasoningItem(id, encrypted string) map[string]any {
return map[string]any{
"type": "reasoning",
"id": id,