Make question arg required in Open DeepResearch example (#617)
This commit is contained in:
parent
833aec9198
commit
06e23f14e2
|
@ -18,5 +18,5 @@ pip install -e .[dev]
|
||||||
|
|
||||||
Then you're good to go! Run the run.py script, as in:
|
Then you're good to go! Run the run.py script, as in:
|
||||||
```bash
|
```bash
|
||||||
python run.py --model-id "o1" --question "Your question here!"
|
python run.py --model-id "o1" "Your question here!"
|
||||||
```
|
```
|
||||||
|
|
|
@ -59,11 +59,11 @@ append_answer_lock = threading.Lock()
|
||||||
|
|
||||||
def parse_args():
|
def parse_args():
|
||||||
parser = argparse.ArgumentParser()
|
parser = argparse.ArgumentParser()
|
||||||
|
parser.add_argument(
|
||||||
|
"question", type=str, help="for example: 'How many studio albums did Mercedes Sosa release before 2007?'"
|
||||||
|
)
|
||||||
parser.add_argument("--model-id", type=str, default="o1")
|
parser.add_argument("--model-id", type=str, default="o1")
|
||||||
parser.add_argument("--api-base", type=str, default=None)
|
parser.add_argument("--api-base", type=str, default=None)
|
||||||
parser.add_argument(
|
|
||||||
"--question", type=str, default="How many studio albums did Mercedes Sosa release before 2007?"
|
|
||||||
)
|
|
||||||
return parser.parse_args()
|
return parser.parse_args()
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue