Skip to content

Commit cf091d0

Browse files
committed
Add pipeline_args to main function for caching configuration
1 parent 96495e8 commit cf091d0

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

llm-complete-guide/gh_action_rag.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,8 @@ def main(
9999
zenml_model_name (str): The ZenML model name.
100100
zenml_model_version (str): The ZenML model version.
101101
"""
102+
pipeline_args = {"enable_cache": not no_cache}
103+
102104
client = Client()
103105
config_path = Path(__file__).parent / "configs" / config
104106

@@ -154,7 +156,7 @@ def main(
154156
name_id_or_prefix="LLM Complete (production)",
155157
allow_name_prefix_match=True,
156158
)
157-
except ZenKeyError:
159+
except KeyError:
158160
if not event_source_id:
159161
raise RuntimeError(
160162
"An event source is required for this workflow."

0 commit comments

Comments
 (0)