want string
}{
{
- name: "failed call",
+ name: "reports the model call failure",
reply: func(w http.ResponseWriter, _ ModelFakeCall) {
w.WriteHeader(http.StatusInternalServerError)
want: "HTTP 500",
},
{
- name: "tool call and no text",
+ name: "refuses a response without summary text",
reply: func(w http.ResponseWriter, _ ModelFakeCall) {
modelWriteEvents(w, modelCompletedEvent([]any{map[string]any{"type": "function_call", "name": "zoom", "arguments": "{}"}}, 100, 0, 5))
},