Skip to content
This repository has been archived by the owner on Mar 1, 2024. It is now read-only.

Commit

Permalink
cache output for modelbit component (#64)
Browse files Browse the repository at this point in the history
  • Loading branch information
wintonzheng authored Sep 14, 2023
1 parent 5f88e0a commit aefbdaa
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion wyvern/components/models/modelbit_component.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ def __init__(
name: Optional[str] = None,
auth_token: Optional[str] = None,
url: Optional[str] = None,
cache_output: bool = False,
) -> None:
"""
Args:
Expand All @@ -52,7 +53,7 @@ def __init__(
Raises:
WyvernModelbitTokenMissingError: If the auth token is not provided.
"""
super().__init__(*upstreams, name=name)
super().__init__(*upstreams, name=name, cache_output=cache_output)
self._auth_token = auth_token or self.AUTH_TOKEN
self._modelbit_url = url or self.URL
self.headers = {
Expand Down

0 comments on commit aefbdaa

Please sign in to comment.