diff --git a/package.json b/package.json
index 2221ac5..c40baf7 100644
--- a/package.json
+++ b/package.json
@@ -40,12 +40,45 @@
}
]
},
+ "walkthroughs": [
+ {
+ "id": "firecoderwelcome",
+ "title": "Get started with FireCoder",
+ "description": "Discover and personalize features that will help write better code.",
+ "steps": [
+ {
+ "id": "download",
+ "title": "download",
+ "description": "Upon installation, please wait for the **server** and **model** download, which is essential for FireCoder to function with its AI-driven features. \nDownload duration may vary depending on your internet speed.",
+ "media": {
+ "markdown": "./walkthroughs/download.md"
+ }
+ },
+ {
+ "id": "autoMode",
+ "title": "Auto Mode",
+ "description": "Start by using the auto mode, which provides prompts automatically. \nBy default, FireCoder uses the **base-small** model. This model strikes a balance between speed and prompt quality, offering quick and reliable suggestions right out of the box.",
+ "media": {
+ "markdown": "./walkthroughs/auto-mode.md"
+ }
+ },
+ {
+ "id": "manualMode",
+ "title": "Manual Mode",
+ "description": "Manual mode can be activated using the hotkey **Ctrl+Enter**. \nWhen using manual mode, FireCoder will attempt to gather as much context as possible to provide the best suggestions. Manual mode can offer hits in multiple lines and has no time restrictions.",
+ "media": {
+ "markdown": "./walkthroughs/manual-mode.md"
+ }
+ }
+ ]
+ }
+ ],
"views": {
"firecoder": [
{
"type": "webview",
"id": "firecoder.chat-gui",
- "name": "",
+ "name": "FireCoder",
"visibility": "visible",
"when": "config.firecoder.experimental.chat"
}
@@ -63,11 +96,15 @@
"commands": [
{
"command": "firecoder.inlineSuggest",
- "title": "My Inline Completion Demo Settings"
+ "title": "FireCoder: Trigger inline suggestion"
+ },
+ {
+ "command": "firecoder.welcome",
+ "title": "FireCoder: Welcome"
},
{
"command": "firecoder.startNewChat",
- "title": "New Chat",
+ "title": "FireCoder: New Chat",
"icon": "$(add)"
}
],
diff --git a/src/common/server/index.ts b/src/common/server/index.ts
index 572976b..974dd91 100644
--- a/src/common/server/index.ts
+++ b/src/common/server/index.ts
@@ -126,7 +126,7 @@ class Server {
...(isChatModel ? ["--ctx-size", "16384"] : ["--ctx-size", "4096"]),
...(isBaseModel ? ["--parallel", "4"] : []),
...(isMacArm64 ? ["--nobrowser"] : []),
- ...(useGPU ? ["--n-gpu-layers", "100"] : []),
+ ...(useGPU && isChatModel ? ["--n-gpu-layers", "100"] : []),
"--cont-batching",
"--embedding",
"--log-disable",
diff --git a/src/extension.ts b/src/extension.ts
index de042fb..0772ab3 100644
--- a/src/extension.ts
+++ b/src/extension.ts
@@ -65,6 +65,16 @@ export async function activate(context: vscode.ExtensionContext) {
})
);
+ context.subscriptions.push(
+ vscode.commands.registerCommand("firecoder.welcome", async () => {
+ await vscode.commands.executeCommand(
+ `workbench.action.openWalkthrough`,
+ `FireCoder.firecoder#firecoderwelcome`,
+ false
+ );
+ })
+ );
+
(async () => {
try {
const serversStarted = await Promise.all(
diff --git a/walkthroughs/auto-mode.md b/walkthroughs/auto-mode.md
new file mode 100644
index 0000000..8c59ee4
--- /dev/null
+++ b/walkthroughs/auto-mode.md
@@ -0,0 +1,12 @@
+
+
+ Ussing manual mode
+
+
+1. **Customize Prompt Quality**: If you prefer, you can adjust the settings to use larger models for higher-quality prompts. This option allows you to fine-tune your coding experience based on your preferences and requirements.
+
+2. **Efficient Response Times**: FireCoder is designed to return answers swiftly, even on less powerful computers. The extension automatically adjusts the context size to ensure that responses are generated within one second, ensuring a seamless coding experience.
+
+3. **Consider Manual Mode for multi-line hints**: While auto mode is convenient for quick prompts, it typically returns only a single line. If you need more extensive prompts or multiple lines of code suggestions, consider switching to manual mode for a more comprehensive experience.
diff --git a/walkthroughs/download-model.mp4 b/walkthroughs/download-model.mp4
new file mode 100644
index 0000000..5cb9d0d
Binary files /dev/null and b/walkthroughs/download-model.mp4 differ
diff --git a/walkthroughs/download.md b/walkthroughs/download.md
new file mode 100644
index 0000000..a5e5e14
--- /dev/null
+++ b/walkthroughs/download.md
@@ -0,0 +1,6 @@
+
+
+ Download Process
+
diff --git a/walkthroughs/manual-mode.md b/walkthroughs/manual-mode.md
new file mode 100644
index 0000000..edd8147
--- /dev/null
+++ b/walkthroughs/manual-mode.md
@@ -0,0 +1,6 @@
+
+
+ Ussing manual mode
+