MCPcopy Create free account
hub / github.com/OpenBMB/BMTools / load_image_generation_tool

Function load_image_generation_tool

host_local_tools.py:121–125  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

119 server.load_tool("shell")
120
121 def load_image_generation_tool():
122 STEAMSHIP_API_KEY = os.environ.get('STEAMSHIP_API_KEY', None)
123 if not STEAMSHIP_API_KEY:
124 raise RuntimeError("STEAMSHIP_API_KEY is not provided. Please sign up for a free account at https://steamship.com/account/api, create a new API key, and add it to environment variables.")
125 server.load_tool("image_generation")
126
127 def load_hugging_tools():
128 HUGGINGFACE_API_KEY = os.environ.get('HUGGINGFACE_API_KEY', None)

Callers 1

run_tool_serverFunction · 0.85

Calls 1

load_toolMethod · 0.80

Tested by

no test coverage detected