mirror of
				https://github.com/Palm1r/QodeAssist.git
				synced 2025-10-31 08:14:36 -04:00 
			
		
		
		
	Add sharing current file with model
This commit is contained in:
		| @ -50,6 +50,10 @@ ChatAssistantSettings::ChatAssistantSettings() | ||||
|     chatTokensThreshold.setRange(1000, 16000); | ||||
|     chatTokensThreshold.setDefaultValue(8000); | ||||
|  | ||||
|     sharingCurrentFile.setSettingsKey(Constants::CA_SHARING_CURRENT_FILE); | ||||
|     sharingCurrentFile.setLabelText(Tr::tr("Share Current File With Assistant by Default")); | ||||
|     sharingCurrentFile.setDefaultValue(true); | ||||
|  | ||||
|     // General Parameters Settings | ||||
|     temperature.setSettingsKey(Constants::CA_TEMPERATURE); | ||||
|     temperature.setLabelText(Tr::tr("Temperature:")); | ||||
| @ -156,7 +160,8 @@ ChatAssistantSettings::ChatAssistantSettings() | ||||
|  | ||||
|         return Column{Row{Stretch{1}, resetToDefaults}, | ||||
|                       Space{8}, | ||||
|                       Group{title(Tr::tr("Chat Settings")), Row{chatTokensThreshold, Stretch{1}}}, | ||||
|                       Group{title(Tr::tr("Chat Settings")), | ||||
|                             Column{Row{chatTokensThreshold, Stretch{1}}, sharingCurrentFile}}, | ||||
|                       Space{8}, | ||||
|                       Group{ | ||||
|                           title(Tr::tr("General Parameters")), | ||||
|  | ||||
| @ -34,6 +34,7 @@ public: | ||||
|  | ||||
|     // Chat settings | ||||
|     Utils::IntegerAspect chatTokensThreshold{this}; | ||||
|     Utils::BoolAspect sharingCurrentFile{this}; | ||||
|  | ||||
|     // General Parameters Settings | ||||
|     Utils::DoubleAspect temperature{this}; | ||||
|  | ||||
| @ -51,6 +51,7 @@ const char MAX_FILE_THRESHOLD[] = "QodeAssist.maxFileThreshold"; | ||||
| const char CC_MULTILINE_COMPLETION[] = "QodeAssist.ccMultilineCompletion"; | ||||
| const char CUSTOM_JSON_TEMPLATE[] = "QodeAssist.customJsonTemplate"; | ||||
| const char CA_TOKENS_THRESHOLD[] = "QodeAssist.caTokensThreshold"; | ||||
| const char CA_SHARING_CURRENT_FILE[] = "QodeAssist.caSharingCurrentFile"; | ||||
|  | ||||
| const char QODE_ASSIST_GENERAL_OPTIONS_ID[] = "QodeAssist.GeneralOptions"; | ||||
| const char QODE_ASSIST_GENERAL_SETTINGS_PAGE_ID[] = "QodeAssist.1GeneralSettingsPageId"; | ||||
|  | ||||
		Reference in New Issue
	
	Block a user