From f4d277ac78df4a1143ea597c667d74be5aba1c84 Mon Sep 17 00:00:00 2001 From: Silas Marvin <19626586+SilasMarvin@users.noreply.github.com> Date: Mon, 5 Aug 2024 19:41:40 -0700 Subject: [PATCH] Added an example for helix --- .../helix/anthropic-in-editor-chatting.toml | 35 +++++++++++++++++++ ...oml => llama-cpp-fim-code-completion.toml} | 0 ....toml => mistral-fim-code-completion.toml} | 0 ....toml => openai-chat-code-completion.toml} | 0 4 files changed, 35 insertions(+) create mode 100644 examples/helix/anthropic-in-editor-chatting.toml rename examples/helix/{llama-cpp-fim.toml => llama-cpp-fim-code-completion.toml} (100%) rename examples/helix/{mistral-fim.toml => mistral-fim-code-completion.toml} (100%) rename examples/helix/{openai-chat.toml => openai-chat-code-completion.toml} (100%) diff --git a/examples/helix/anthropic-in-editor-chatting.toml b/examples/helix/anthropic-in-editor-chatting.toml new file mode 100644 index 0000000..e8eaffa --- /dev/null +++ b/examples/helix/anthropic-in-editor-chatting.toml @@ -0,0 +1,35 @@ +################################ +### Configuration for lsp-ai ### +################################ + +[language-server.lsp-ai] +command = "lsp-ai" + +[language-server.lsp-ai.config.memory] +file_store = { } + +[language-server.lsp-ai.config.models.model1] +type = "anthropic" +chat_endpoint = "https://api.anthropic.com/v1/messages" +model = "claude-3-5-sonnet-20240620" +auth_token_env_var_name = "ANTHROPIC_API_KEY" + +[[language-server.lsp-ai.config.chat]] +trigger = "!C" +action_display_name = "Chat" +model = "model1" + +[language-server.lsp-ai.config.chat.parameters] +max_context = 4096 +max_tokens = 1024 +system = "You are a code assistant chatbot. The user will ask you for assistance coding and you will do you best to answer succinctly and accurately" + +################################# +## Configuration for languages ## +################################# + +## Every file type we intend to chat in needs to have lsp-ai enabled + +[[language]] +name = "markdown" +language-servers = ["lsp-ai"] diff --git a/examples/helix/llama-cpp-fim.toml b/examples/helix/llama-cpp-fim-code-completion.toml similarity index 100% rename from examples/helix/llama-cpp-fim.toml rename to examples/helix/llama-cpp-fim-code-completion.toml diff --git a/examples/helix/mistral-fim.toml b/examples/helix/mistral-fim-code-completion.toml similarity index 100% rename from examples/helix/mistral-fim.toml rename to examples/helix/mistral-fim-code-completion.toml diff --git a/examples/helix/openai-chat.toml b/examples/helix/openai-chat-code-completion.toml similarity index 100% rename from examples/helix/openai-chat.toml rename to examples/helix/openai-chat-code-completion.toml