issaocean commited on
Commit
4ecd5b3
1 Parent(s): 924950a

Update cli.py

Browse files
Files changed (1) hide show
  1. cli.py +7 -2
cli.py CHANGED
@@ -2,7 +2,12 @@ import argparse
2
  import os
3
  import time
4
 
5
- from src.open_strawberry import get_defaults, manage_conversation
 
 
 
 
 
6
 
7
 
8
  def parse_arguments(model, system_prompt, next_prompts, num_turns, show_next, final_prompt,
@@ -106,4 +111,4 @@ def go_cli():
106
  if not show_cot:
107
  print("**FULL RESPONSE:**\n\n")
108
  print(response)
109
- return response
 
2
  import os
3
  import time
4
 
5
+ if os.getenv('STRAWBERRY_VERSION', '1') == '1' or os.getenv('STRAWBERRY_VERSION') is None:
6
+ from src.open_strawberry import get_defaults, manage_conversation
7
+ elif os.getenv('STRAWBERRY_VERSION', '2') == '2':
8
+ from src.open_strawberry2 import get_defaults, manage_conversation
9
+ else:
10
+ raise ValueError("STRAWBERRY_VERSION not set correctly")
11
 
12
 
13
  def parse_arguments(model, system_prompt, next_prompts, num_turns, show_next, final_prompt,
 
111
  if not show_cot:
112
  print("**FULL RESPONSE:**\n\n")
113
  print(response)
114
+ return response