Skip to content

Commit

Permalink
feat: use llama3.1 model and add new keymap for chat with AI
Browse files Browse the repository at this point in the history
  • Loading branch information
jellydn committed Jul 31, 2024
1 parent 09bc7f8 commit 74bf114
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 6 deletions.
11 changes: 7 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ Update your settings.json file with the following configuration:
<!-- ALL-SETTINGS:START -->

```jsonc
// settings.json, generated at Thu Jul 25 2024 10:50:22 GMT+0800 (Singapore Standard Time)
// settings.json, generated at Wed Jul 31 2024 10:10:31 GMT+0800 (Singapore Standard Time)
// Zed settings
//
// For information on how to configure Zed, see the Zed
Expand Down Expand Up @@ -77,8 +77,8 @@ Update your settings.json file with the following configuration:
"version": "1",
"provider": {
"default_model": {
// Run `ollama pull llama3:latest` to download the model
"name": "llama3:latest",
// Run `ollama pull llama3.1:latest` to download the model
"name": "llama3.1:latest",
"max_tokens": 2048,
"keep_alive": -1,
},
Expand Down Expand Up @@ -165,7 +165,7 @@ Update your keymap.json file with the following key bindings:
<!-- ALL-KEYMAPS:START -->

```jsonc
// keymap.json, generated at Thu Jul 25 2024 10:50:22 GMT+0800 (Singapore Standard Time)
// keymap.json, generated at Wed Jul 31 2024 10:10:31 GMT+0800 (Singapore Standard Time)
[
{
"context": "Editor && (vim_mode == normal || vim_mode == visual) && !VimWaiting && !menu",
Expand All @@ -192,6 +192,9 @@ Update your keymap.json file with the following key bindings:
"space f p": "projects::OpenRecent",
// Search word under cursor
"space s w": "pane::DeploySearch",

// Chat with AI
"space a c": "assistant::ToggleFocus",
// Go to file with `gf`
"g f": "editor::OpenExcerpts",
},
Expand Down
3 changes: 3 additions & 0 deletions keymap.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@
"space f p": "projects::OpenRecent",
// Search word under cursor
"space s w": "pane::DeploySearch",

// Chat with AI
"space a c": "assistant::ToggleFocus",
// Go to file with `gf`
"g f": "editor::OpenExcerpts"
}
Expand Down
4 changes: 2 additions & 2 deletions settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@
"version": "1",
"provider": {
"default_model": {
// Run `ollama pull llama3:latest` to download the model
"name": "llama3:latest",
// Run `ollama pull llama3.1:latest` to download the model
"name": "llama3.1:latest",
"max_tokens": 2048,
"keep_alive": -1
},
Expand Down

0 comments on commit 74bf114

Please sign in to comment.