Skip to content

Commit

Permalink
only save on success
Browse files Browse the repository at this point in the history
  • Loading branch information
actualwitch committed Dec 16, 2024
1 parent 79c5905 commit 98afeee
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"description": "🔬 Experiment is a LLM chat UI with advanced tool use debugging facilities.",
"keywords": ["inference", "experiment-tracking", "llm"],
"repository": "github:actualwitch/experiment",
"version": "0.2.1",
"version": "0.2.2",
"author": "Ade あで Fisher",
"license": "MIT",
"private": true,
Expand Down
2 changes: 1 addition & 1 deletion src/state/inference.ts
Original file line number Diff line number Diff line change
Expand Up @@ -139,11 +139,11 @@ export const runInferenceAtom = entangledAtom(
break;
}
}
set(saveExperimentAtom);
} catch (e) {
console.error(e);
} finally {
set(isRunningAtom, false);
set(saveExperimentAtom);
}
}),
);
Expand Down

0 comments on commit 98afeee

Please sign in to comment.