mirror of
https://github.com/QwenLM/qwen-code.git
synced 2026-04-30 04:30:48 +00:00
Make checkpoints configurable in settings.json (#1251)
This commit is contained in:
parent
ea63a8401e
commit
6c67618624
11 changed files with 50 additions and 21 deletions
|
|
@ -638,7 +638,7 @@ export const useGeminiStream = (
|
|||
|
||||
useEffect(() => {
|
||||
const saveRestorableToolCalls = async () => {
|
||||
if (!config.getCheckpointEnabled()) {
|
||||
if (!config.getCheckpointingEnabled()) {
|
||||
return;
|
||||
}
|
||||
const restorableToolCalls = toolCalls.filter(
|
||||
|
|
@ -649,8 +649,8 @@ export const useGeminiStream = (
|
|||
);
|
||||
|
||||
if (restorableToolCalls.length > 0) {
|
||||
const checkpointDir = config.getGeminiDir()
|
||||
? path.join(config.getGeminiDir(), 'checkpoints')
|
||||
const checkpointDir = config.getProjectTempDir()
|
||||
? path.join(config.getProjectTempDir(), 'checkpoints')
|
||||
: undefined;
|
||||
|
||||
if (!checkpointDir) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue