mirror of
https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
synced 2025-05-20 04:30:17 +09:00
feat: support env var DEFAULT_INPUT_TEMPLATE to custom default template for preprocessing user inputs
This commit is contained in:
parent
2d1f0c9f57
commit
9d7ce207b6
@ -164,6 +164,13 @@ export const useAppConfig = createPersistStore(
|
|||||||
state.lastUpdate = Date.now();
|
state.lastUpdate = Date.now();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (version < 3.9) {
|
||||||
|
state.modelConfig.template =
|
||||||
|
state.modelConfig.template !== DEFAULT_INPUT_TEMPLATE
|
||||||
|
? state.modelConfig.template
|
||||||
|
: config?.template ?? DEFAULT_INPUT_TEMPLATE;
|
||||||
|
}
|
||||||
|
|
||||||
return state as any;
|
return state as any;
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user