Skip to content

Commit

Permalink
cange default outputs to 1
Browse files Browse the repository at this point in the history
  • Loading branch information
alex-treebeard committed Oct 25, 2023
1 parent ff1ce56 commit 412b0ab
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 9 deletions.
8 changes: 1 addition & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,7 @@ export OPENAI_API_KEY='sk-xxxx'
e.g. nbwrite/example1.yaml:
```yaml
task: |
Create a hello world notebook 'x.ipynb', use nbmake's NotebookRun class to test it from a Python application
steps:
- Create a hello world notebook using nbformat
- Use nbmake's NotebookRun class to execute it from a Python application
- Check the output notebook printed what we were expecting
packages:
- nbmake
Plot the iris dataset using pandas
generation:
count: 2
```
Expand Down
2 changes: 1 addition & 1 deletion src/nbwrite/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@


class GenerationConfig(BaseModel):
count: int = 2
count: int = 1
system_prompt: str = DEFAULT_SYSTEM_PROMPT
llm_kwargs: Dict[str, Any] = DEFAULT_LLM_KWARGS
retriever_kwargs: Dict[str, Any] = DEFAULT_RETRIEVER_KWARGS
Expand Down
2 changes: 1 addition & 1 deletion tests/test_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,4 +85,4 @@ def test_cli_minimal(tmpdir: local):

logger.warn(f"Checking outputs in {outdir}")
outputs = list(Path(outdir).glob("*.ipynb"))
assert len(outputs) == 2
assert len(outputs) == 1

0 comments on commit 412b0ab

Please sign in to comment.