Skip to content

Commit

Permalink
Add pipeline_args to main function for caching configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
htahir1 committed Nov 11, 2024
1 parent 96495e8 commit cf091d0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion llm-complete-guide/gh_action_rag.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,8 @@ def main(
zenml_model_name (str): The ZenML model name.
zenml_model_version (str): The ZenML model version.
"""
pipeline_args = {"enable_cache": not no_cache}

client = Client()
config_path = Path(__file__).parent / "configs" / config

Expand Down Expand Up @@ -154,7 +156,7 @@ def main(
name_id_or_prefix="LLM Complete (production)",
allow_name_prefix_match=True,
)
except ZenKeyError:
except KeyError:
if not event_source_id:
raise RuntimeError(
"An event source is required for this workflow."
Expand Down

0 comments on commit cf091d0

Please sign in to comment.