From f9b18b596b13fa40780dbd9b860c101b0a26c867 Mon Sep 17 00:00:00 2001 From: crazywoola <427733928@qq.com> Date: Tue, 3 Sep 2024 20:16:40 +0800 Subject: [PATCH] fix: add default base url --- api/core/tools/provider/builtin/stepfun/tools/image.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/core/tools/provider/builtin/stepfun/tools/image.py b/api/core/tools/provider/builtin/stepfun/tools/image.py index 5e544aada63b40..91f6e2c188cac1 100644 --- a/api/core/tools/provider/builtin/stepfun/tools/image.py +++ b/api/core/tools/provider/builtin/stepfun/tools/image.py @@ -17,7 +17,7 @@ def _invoke(self, """ invoke tools """ - base_url = self.runtime.credentials.get('stepfun_base_url', None) + base_url = self.runtime.credentials.get('stepfun_base_url', 'https://api.stepfun.com') if not base_url: base_url = None else: