Skip to content

Commit

Permalink
Added an example for helix
Browse files Browse the repository at this point in the history
  • Loading branch information
SilasMarvin committed Aug 6, 2024
1 parent b722613 commit f4d277a
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions examples/helix/anthropic-in-editor-chatting.toml
Original file line number Diff line number Diff line change
@@ -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"]
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit f4d277a

Please sign in to comment.