Skip to content

Commit

Permalink
fix: additional information check
Browse files Browse the repository at this point in the history
  • Loading branch information
0xArdi committed Sep 12, 2023
1 parent b6111ad commit a6ae0f5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tools/prediction_request_sme.py
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,7 @@ def run(**kwargs) -> Tuple[str, Optional[Dict[str, Any]]]:
google_api_key=kwargs["api_keys"]["google_api_key"],
google_engine=kwargs["api_keys"]["google_engine_id"],
)
if tool == "prediction-online"
if tool == "prediction-online-sme"
else ""
)
prediction_prompt = PREDICTION_PROMPT.format(
Expand All @@ -351,3 +351,5 @@ def run(**kwargs) -> Tuple[str, Optional[Dict[str, Any]]]:
stop=None,
)
return response.choices[0].message.content, None


0 comments on commit a6ae0f5

Please sign in to comment.