forked from Shinonome/dots-hyprland
added user option for gemini safety (#684)
This commit is contained in:
@@ -11,6 +11,7 @@ let configOptions = {
|
|||||||
'defaultTemperature': 0.9,
|
'defaultTemperature': 0.9,
|
||||||
'enhancements': true,
|
'enhancements': true,
|
||||||
'useHistory': true,
|
'useHistory': true,
|
||||||
|
'safety': true,
|
||||||
'writingCursor': " ...", // Warning: Using weird characters can mess up Markdown rendering
|
'writingCursor': " ...", // Warning: Using weird characters can mess up Markdown rendering
|
||||||
'proxyUrl': null, // Can be "socks5://127.0.0.1:9050" or "http://127.0.0.1:8080" for example. Leave it blank if you don't need it.
|
'proxyUrl': null, // Can be "socks5://127.0.0.1:9050" or "http://127.0.0.1:8080" for example. Leave it blank if you don't need it.
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -147,7 +147,7 @@ class GeminiService extends Service {
|
|||||||
_usingHistory = userOptions.ai.useHistory;
|
_usingHistory = userOptions.ai.useHistory;
|
||||||
_key = '';
|
_key = '';
|
||||||
_requestCount = 0;
|
_requestCount = 0;
|
||||||
_safe = true;
|
_safe = userOptions.ai.safety;
|
||||||
_temperature = userOptions.ai.defaultTemperature;
|
_temperature = userOptions.ai.defaultTemperature;
|
||||||
_messages = [];
|
_messages = [];
|
||||||
_modelIndex = 0;
|
_modelIndex = 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user