mirror of
				https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
				synced 2025-11-04 16:23:41 +08:00 
			
		
		
		
	update
This commit is contained in:
		@@ -218,6 +218,13 @@ export function stream(
 | 
			
		||||
                JSON.parse(tool.function.arguments),
 | 
			
		||||
              ),
 | 
			
		||||
            )
 | 
			
		||||
              .then((res) => {
 | 
			
		||||
                const content = JSON.stringify(res.data);
 | 
			
		||||
                if (res.status >= 300) {
 | 
			
		||||
                  return Promise.reject(content);
 | 
			
		||||
                }
 | 
			
		||||
                return content;
 | 
			
		||||
              })
 | 
			
		||||
              .then((content) => {
 | 
			
		||||
                options?.onAfterTool?.({
 | 
			
		||||
                  ...tool,
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user