MCPcopy Index your code
hub / github.com/simstudioai/sim / set_api_key

Method set_api_key

packages/python-sdk/simstudio/__init__.py:356–364  ·  view source on GitHub ↗

Update the API key. Args: api_key: New API key

(self, api_key: str)

Source from the content-addressed store, hash-verified

354 )
355
356 def set_api_key(self, api_key: str) -> None:
357 """
358 Update the API key.
359
360 Args:
361 api_key: New API key
362 """
363 self.api_key = api_key
364 self._session.headers.update({'X-API-Key': api_key})
365
366 def set_base_url(self, base_url: str) -> None:
367 """

Callers 1

test_set_api_keyFunction · 0.95

Calls

no outgoing calls

Tested by 1

test_set_api_keyFunction · 0.76