mirror of
https://github.com/FranP-code/ChatGPT.git
synced 2025-10-13 00:13:25 +00:00
chore: dalle2
This commit is contained in:
1
src/hooks/useChatModel.ts
vendored
1
src/hooks/useChatModel.ts
vendored
@@ -47,6 +47,7 @@ export function useCacheModel(file = '') {
|
||||
const list = await invoke('cmd_list');
|
||||
await writeJSON(CHAT_MODEL_CMD_JSON, { name: 'ChatGPT CMD', last_updated: Date.now(), data: list });
|
||||
await invoke('window_reload', { label: 'core' });
|
||||
await invoke('window_reload', { label: 'tray' });
|
||||
};
|
||||
|
||||
return { modelCacheJson, modelCacheSet, modelCacheCmd };
|
||||
|
||||
15
src/view/General.tsx
vendored
15
src/view/General.tsx
vendored
@@ -14,12 +14,12 @@ const AutoUpdateLabel = () => {
|
||||
return (
|
||||
<span>
|
||||
Auto Update <Tooltip title={(
|
||||
<div>
|
||||
<div>Auto Update Policy</div>
|
||||
<span><strong>Prompt</strong>: prompt to install</span><br/>
|
||||
<span><strong>Silent</strong>: install silently</span><br/>
|
||||
{/*<span><strong>Disable</strong>: disable auto update</span><br/>*/}
|
||||
</div>
|
||||
<div>
|
||||
<div>Auto Update Policy</div>
|
||||
<span><strong>Prompt</strong>: prompt to install</span><br/>
|
||||
<span><strong>Silent</strong>: install silently</span><br/>
|
||||
{/*<span><strong>Disable</strong>: disable auto update</span><br/>*/}
|
||||
</div>
|
||||
)}><QuestionCircleOutlined style={{ color: '#1677ff' }} /></Tooltip>
|
||||
</span>
|
||||
)
|
||||
@@ -122,6 +122,9 @@ export default function General() {
|
||||
<Switch />
|
||||
</Form.Item>
|
||||
)}
|
||||
<Form.Item label="DALL·E 2 Search" name="dalle2_search" valuePropName="checked">
|
||||
<Switch />
|
||||
</Form.Item>
|
||||
<Form.Item label="Theme" name="theme">
|
||||
<Radio.Group>
|
||||
<Radio value="Light">Light</Radio>
|
||||
|
||||
Reference in New Issue
Block a user