From 0a203a686d67e3aa31f1ffeb6f4aff9d2f5dc056 Mon Sep 17 00:00:00 2001 From: Bill Maxwell Date: Thu, 5 Sep 2024 16:40:43 -0700 Subject: [PATCH] fix: missing threads in the url Signed-off-by: Bill Maxwell --- pkg/api/client/client.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/api/client/client.go b/pkg/api/client/client.go index 152da0f0f..e93e2175c 100644 --- a/pkg/api/client/client.go +++ b/pkg/api/client/client.go @@ -97,7 +97,7 @@ func (c *Client) Invoke(ctx context.Context, agentID string, input string, opt . url := fmt.Sprintf("/invoke/%s?events=true", agentID) if opts.ThreadID != "" { - url = fmt.Sprintf("/invoke/%s/%s?events=true", agentID, opts.ThreadID) + url = fmt.Sprintf("/invoke/%s/threads/%s?events=true", agentID, opts.ThreadID) } _, resp, err := c.doRequest(ctx, http.MethodPost, url, bytes.NewBuffer([]byte(input)), "Accept", "text/event-stream")