Richard commited on
Commit
b9ff9a8
·
1 Parent(s): 3d048a0

Fix bug with blank system instructions

Browse files
Files changed (1) hide show
  1. llm.py +1 -1
llm.py CHANGED
@@ -43,7 +43,7 @@ def _make_model(
43
  ) -> genai.GenerativeModel:
44
  return genai.GenerativeModel(
45
  model_name,
46
- system_instruction=system_instruction,
47
  generation_config={
48
  "temperature": temperature,
49
  "top_p": 0.95,
 
43
  ) -> genai.GenerativeModel:
44
  return genai.GenerativeModel(
45
  model_name,
46
+ system_instruction=system_instruction if system_instruction else None,
47
  generation_config={
48
  "temperature": temperature,
49
  "top_p": 0.95,