system_message_template="You are a helpful {{filetype}} programming assistant. Analyze the question and any provided sample code and give thourough detailed explanations.",
user_message_template="I have a question about the following {{language}} code: ```{{filetype}}\n{{text_selection}}```\n {{command_args}}",
},
["explain"]={
system_message_template="You are a helpful {{filetype}} pair programming assistant. Help the user understand source code. Explain as if you were explaining to an other developer.",
user_message_template="Explain the following {{language}} code: ```{{filetype}}\n{{text_selection}}```\n {{command_args}}",
callback_type="text_popup",
temperature=0.6
},
["implement"]={
callback_type="code_popup",
system_message_template="You are a {{filetype}} software pair assistant AI. Answer my questions. Think step by step out loud.",
user_message_template="I have a question about the following {{language}} code: ```{{filetype}} {{text_selection}}``` {{command_args}}"
system_message_template="You are a {{filetype}} programming assistant. Complete or implement the feature from the provided description. Think step by step before answering. Use {{filetype}} best practicies. Only output code snippets.",
user_message_template="I have the following specification for a {{language}} project: ```{{filetype}} {{text_selection}}``` {{command_args}}"
},
["tests"]={
@ -21,19 +51,21 @@ M.setup = function()
python="Use pytest framework."
}
},
["code4"]={
system_message_template="You are a Programming pair Assistant AI. You are helpful with improving and optimizing source code using the best idiomatic practicies.",
model="gpt-4",
doc={
system_message_template="You are a {{language}} programming assistant specialized in documenting source code.",
user_message_template="I have the following {{language}} code:\n```{{filetype}}\n{{text_selection}}\n```\nWrite good idiomatic documentation using the target language docstring. {{language_instructions}} {{command_args}}",
},
["completion"]={
system_message_template="You are a Programming pair Assistant AI. You are helpful with improving and optimizing source code using the idiomatic practicies.",
user_message_template="I have the following {{language}} code: ```{{filetype}}\n{{text_selection}}```\n{{command_args}}. {{language_instructions}} Think step by step then only return the code snippet and nothing else."
},
["docu4"]={
["pydoc"]={
language_instructions={
python="Use docstings to document the code. This project uses Sphinx. Use the google style python docstrings. Add sphinx directives if needed."
},
system_message_template="You are a technical documentation assistant to a software developer. Help the user write clean detailed and easy to read project documentation.",
user_message_template="Create or improve the documentation for: ```{{text_selection}}```\n. Use a professional tone. {{language_instructions}} {{command_args}}",