Skip to content

Conversation

@jbdamask
Copy link
Contributor

@jbdamask jbdamask commented Nov 9, 2025

Added the following code at line 161:

                  // If the operation type is 'split', preserve the method_kwargs object
                  if (type === "split") {
                    if (op.method_kwargs) {
                      stringifiedKwargs.method_kwargs = op.method_kwargs;
                    } else if (stringifiedKwargs.method_kwargs) {
                      // Handle case where method_kwargs might have been stringified
                      try {
                        if (typeof stringifiedKwargs.method_kwargs === "string") {
                          stringifiedKwargs.method_kwargs = JSON.parse(stringifiedKwargs.method_kwargs);
                        }
                      } catch (e) {
                        console.error("Error parsing stringified method_kwargs:", e);
                      }
                    }
                  }

@shreyashankar shreyashankar merged commit fb9a377 into ucbepic:main Nov 9, 2025
1 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants