X-Git-Url: http://git.giacomolli.uk/onechat/blobdiff_plain/087d725b5ab41ad34ffd24938482d45a8b99a080..d9fddc0f506eb4ead7049f5638674b2b8773fcaa:/chain.go?ds=sidebyside diff --git a/chain.go b/chain.go index 3ab9fe1..0211787 100644 --- a/chain.go +++ b/chain.go @@ -43,7 +43,7 @@ func (c *Chain) Run(ctx context.Context, input []any) (string, error) { request.Input = input response, err := c.client.Create(ctx, request) if err != nil { - return "", err + return "", fmt.Errorf("create model response: %w", err) } var text string