Skip to content

Commit

Permalink
fix: add default base url
Browse files Browse the repository at this point in the history
  • Loading branch information
crazywoola committed Sep 3, 2024
1 parent f9b18b5 commit 77b2bf5
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions api/core/tools/provider/builtin/stepfun/tools/image.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,7 @@ def _invoke(self,
invoke tools
"""
base_url = self.runtime.credentials.get('stepfun_base_url', 'https://api.stepfun.com')
if not base_url:
base_url = None
else:
base_url = str(URL(base_url) / 'v1')
base_url = str(URL(base_url) / 'v1')

client = OpenAI(
api_key=self.runtime.credentials['stepfun_api_key'],
Expand Down

0 comments on commit 77b2bf5

Please sign in to comment.