diff --git a/package.json b/package.json
index b648ed7..9cddb5e 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "acode-plugin-acodex",
- "version": "3.1.3",
+ "version": "3.1.4",
"description": "Terminal support for Acode",
"main": "dist/main.js",
"repository": "https://github.com/bajrangCoder/acode-plugin-terminal.git",
diff --git a/plugin.json b/plugin.json
index b9e2d03..8131994 100644
--- a/plugin.json
+++ b/plugin.json
@@ -2,7 +2,7 @@
"id": "bajrangcoder.acodex",
"name": "AcodeX - Terminal",
"main": "dist/main.js",
- "version": "3.1.3",
+ "version": "3.1.4",
"readme": "readme.md",
"icon": "icon.png",
"files": [],
diff --git a/readme.md b/readme.md
index 56b5368..52ae650 100644
--- a/readme.md
+++ b/readme.md
@@ -17,12 +17,14 @@
- Update v3.1.3
+ Update v3.1.3 & v3.1.4
- Enhanced AcodeX by integrating AI into the terminal, making it a standout option in the modern era. (Check `How to use AI section` for refrence)
- Updated the default font family for the Terminal to `Meslo NF Regular`.
- Resolved the issue with the `exit` command; now, typing `exit` in the terminal will promptly close the current session.
+- fixed settings issue (v3.1.4)
+
diff --git a/src/main.js b/src/main.js
index 66583bd..48d5dd8 100644
--- a/src/main.js
+++ b/src/main.js
@@ -63,7 +63,7 @@ class AcodeX {
if (!appSettings.value[plugin.id]) {
this._saveSetting();
} else {
- if (!this.settings.aiApiKey) {
+ if (!this.settings.aiModel) {
delete appSettings.value[plugin.id];
appSettings.update(false);
this._saveSetting();