feat: repo map (#496)

* feat: repo map

* chore: remove breakline

* chore: remove spaces

* fix: golang public method

* feat: mentions for editing input
This commit is contained in:
yetone
2024-09-23 18:52:26 +08:00
committed by GitHub
parent 8dbfe85dd4
commit 8e1018fef7
15 changed files with 1191 additions and 64 deletions

View File

@@ -1,4 +1,6 @@
{%- if use_xml_format -%}
<filepath>{{filepath}}</filepath>
{%- if selected_code -%}
<context>
```{{code_lang}}
@@ -19,6 +21,8 @@
</code>
{%- endif %}
{% else %}
FILEPATH: {{filepath}}
{%- if selected_code -%}
CONTEXT:
```{{code_lang}}

View File

@@ -17,6 +17,7 @@ Your task is to suggest code modifications at the cursor position. Follow these
{% endraw %}
3. When suggesting suggested code:
- DO NOT include three backticks: {%raw%}```{%endraw%} in your suggestion. Treat the suggested code AS IS.
- Each element in the returned list is a COMPLETE and INDEPENDENT code snippet.
- MUST be a valid json format. Don't be lazy!
- Only return the new code to be inserted.
@@ -29,4 +30,3 @@ Your task is to suggest code modifications at the cursor position. Follow these
Remember to ONLY RETURN the suggested code snippet, without any additional formatting or explanation.
{% endblock %}